1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: chdescr.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SCH_CHTDESCR_HXX_
32 #define _SCH_CHTDESCR_HXX_
34 //STRIP008 class SdrObjList;
35 //STRIP008 class SchObjGroup;
36 //STRIP008 class ChartAxis;
38 #ifndef _SVDOBJ_HXX //autogen wg. SdrObject
39 #include <bf_svx/svdobj.hxx>
43 #include "tools/solar.h"
44 #ifndef _SV_GEN_HXX //autogen
45 #include <tools/gen.hxx>
47 #include "schattr.hxx"
48 #ifndef _SVX_CHRTITEM_HXX //autogen
49 #define ITEMID_DOUBLE 0
50 #define ITEMID_CHARTTEXTORDER SCHATTR_TEXT_ORDER
51 #define ITEMID_CHARTTEXTORIENT SCHATTR_TEXT_ORIENT
52 #define ITEMID_CHARTLEGENDPOS SCHATTR_LEGEND_POS
53 #define ITEMID_CHARTDATADESCR SCHATTR_DATADESCR_DESCR
54 #include <bf_svx/chrtitem.hxx>
56 #ifndef _SVX_VECTOR3D_HXX //autogen
57 #include <bf_goodies/vector3d.hxx>
60 #include <float.h> // for DBL_MIN
71 struct DataDescription
77 SvxChartDataDescr eDescr
;
83 DataDescription() : // (BM) default constructor
84 aTextPos3D( 0, 0, 0 ),
87 eDescr( CHDESCR_NONE
),
88 eAdjust( CHADJUST_CENTER_CENTER
),
95 class ChartDataDescription
101 SdrObjList
** mpDescrLists
;
103 DataDescription
* mpDescrArray
;
105 SchObjGroup
** mpDescrGroups
;
106 void Dirty2D(BOOL bRowDescr
);
110 BOOL
Enabled() { return mbEnable
; }
111 void Build( BOOL bRowDescr
=TRUE
); // insert data description in list (i.e. page)
113 void Build3D( ChartScene
* pScene
, Matrix4D
* pMatrix
=NULL
);
114 DataDescription
* Insert( long nCol
, long nRow
, const SfxItemSet
& rAttr
, Point aPos
,
115 BOOL bPercent
, ChartAdjust eAdjust
, ChartAxis
* pAxis
);
117 ChartDataDescription( long nCols
, long nRows
, SdrObjList
*pList
, ChartModel
* mpModel
, BOOL bEnable
=TRUE
);
118 ~ChartDataDescription();
121 } //namespace binfilter