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: chmod3d.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 ************************************************************************/
32 #ifndef SCH_CHARTMODEL_3D_OBJECTS
33 #define SCH_CHARTMODEL_3D_OBJECTS
36 //Ableitungen der 3D-Objekte, um #52277# zu beheben.
37 //Ueberladen der NbcSetAttributes um Attr abzufangen und in das ChartModel zu leiten
39 #ifndef _E3D_EXTRUD3D_HXX //autogen
40 #include <bf_svx/extrud3d.hxx>
42 #ifndef _E3D_POLYGON3D_HXX //autogen
43 #include <bf_svx/polygn3d.hxx>
45 #ifndef _E3D_DEFLT3D_HXX //autogen
46 #include <bf_svx/deflt3d.hxx>
48 #ifndef _SVDORECT_HXX //autogen
49 #include <bf_svx/svdorect.hxx>
51 #ifndef _E3D_LATHE3D_HXX //autogen
52 #include <bf_svx/lathe3d.hxx>
54 #define CHART_SHAPE3D_IGNORE -2 //intern! (GetChartShapeStyle()!)
55 #define CHART_SHAPE3D_ANY -1 //undefinierter Typ (GetChartShapeStyle()!)
56 #define CHART_SHAPE3D_SQUARE 0
57 #define CHART_SHAPE3D_CYLINDER 1
58 #define CHART_SHAPE3D_CONE 2
59 #define CHART_SHAPE3D_PYRAMID 3 //reserved
60 #define CHART_SHAPE3D_HANOI 4
64 class SchE3dLatheObj
: public E3dLatheObj
67 SchE3dLatheObj(E3dDefaultAttributes
& rDefault
, const PolyPolygon
& rPP
)
68 :E3dLatheObj(rDefault
,rPP
){};
72 //-/ virtual void NbcSetAttributes(const SfxItemSet& rAttr, FASTBOOL bReplaceAll);
73 virtual void SetItem(const SfxPoolItem
& rItem
);
74 virtual void SetItemSet(const SfxItemSet
& rSet
);
78 class SchE3dExtrudeObj
: public E3dExtrudeObj
82 SchE3dExtrudeObj(E3dDefaultAttributes
& rDefault
, const PolyPolygon
& rPP
, double fDepth
)
83 :E3dExtrudeObj(rDefault
,rPP
,fDepth
){};
84 SchE3dExtrudeObj(E3dDefaultAttributes
& rDefault
, const XPolyPolygon
& rXPP
, double fDepth
)
85 :E3dExtrudeObj(rDefault
,rXPP
,fDepth
){};
89 //-/ virtual void NbcSetAttributes(const SfxItemSet& rAttr, FASTBOOL bReplaceAll);
90 virtual void SetItem(const SfxPoolItem
& rItem
);
91 virtual void SetItemSet(const SfxItemSet
& rSet
);
94 class SchE3dPolygonObj
: public E3dPolygonObj
97 SchE3dPolygonObj(E3dDefaultAttributes
& rDefault
, const PolyPolygon3D
& rPoly3D
,
99 :E3dPolygonObj(rDefault
,rPoly3D
,bLinOnly
){};
101 SchE3dPolygonObj(E3dDefaultAttributes
& rDefault
, const PolyPolygon3D
& rPoly3D
,
102 const PolyPolygon3D
& rVector3D
, BOOL bLinOnly
=FALSE
)
103 :E3dPolygonObj(rDefault
,rPoly3D
,rVector3D
,bLinOnly
){};
105 SchE3dPolygonObj(E3dDefaultAttributes
& rDefault
, const Vector3D
& rP1
,
106 const Vector3D
& rP2
, BOOL bLinOnly
=TRUE
)
107 : E3dPolygonObj(rDefault
,rP1
,rP2
,bLinOnly
){};
109 SchE3dPolygonObj() : E3dPolygonObj(){};
111 //-/ virtual void NbcSetAttributes(const SfxItemSet& rAttr, FASTBOOL bReplaceAll);
112 virtual void SetItem(const SfxPoolItem
& rItem
);
113 virtual void SetItemSet(const SfxItemSet
& rSet
);
117 class SchE3dObject
: public E3dObject
124 //-/ virtual void NbcSetAttributes(const SfxItemSet& rAttr, FASTBOOL bReplaceAll);
125 virtual void SetItemSet(const SfxItemSet
& rSet
);
127 class SchRectObj
: public SdrRectObj
130 SchRectObj(SdrObjKind eNewTextKind
, const Rectangle
& rRect
)
131 :SdrRectObj(eNewTextKind
,rRect
){};
132 SchRectObj(const Rectangle
& rRect
): SdrRectObj(rRect
){};
134 virtual void NbcSetOutlinerParaObject(OutlinerParaObject
* pTextObject
);
135 //-/ virtual void NbcSetAttributes(const SfxItemSet& rAttr, FASTBOOL bReplaceAll);
136 virtual void SetItemSet(const SfxItemSet
& rSet
);
139 } //namespace binfilter