xref: /trunk/main/svx/inc/svx/drawitem.hxx (revision c7be74b1)
13334a7e6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
33334a7e6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
43334a7e6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
53334a7e6SAndrew Rist  * distributed with this work for additional information
63334a7e6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
73334a7e6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
83334a7e6SAndrew Rist  * "License"); you may not use this file except in compliance
93334a7e6SAndrew Rist  * with the License.  You may obtain a copy of the License at
103334a7e6SAndrew Rist  *
113334a7e6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
123334a7e6SAndrew Rist  *
133334a7e6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
143334a7e6SAndrew Rist  * software distributed under the License is distributed on an
153334a7e6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
163334a7e6SAndrew Rist  * KIND, either express or implied.  See the License for the
173334a7e6SAndrew Rist  * specific language governing permissions and limitations
183334a7e6SAndrew Rist  * under the License.
193334a7e6SAndrew Rist  *
203334a7e6SAndrew Rist  *************************************************************/
213334a7e6SAndrew Rist 
223334a7e6SAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_DRAWITEM_HXX
24cdf0e10cSrcweir #define _SVX_DRAWITEM_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <svl/poolitem.hxx>
29cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
30cdf0e10cSrcweir #include <com/sun/star/drawing/LineDash.hpp>
31cdf0e10cSrcweir #include "svx/svxdllapi.h"
32*c7be74b1SArmin Le Grand #include <boost/shared_ptr.hpp>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir //==================================================================
35cdf0e10cSrcweir //	SvxColorTableItem
36cdf0e10cSrcweir //==================================================================
37cdf0e10cSrcweir 
3897e8a929SArmin Le Grand class XColorList;
39*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XColorList > XColorListSharedPtr;
40cdf0e10cSrcweir 
41*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxColorTableItem : public SfxPoolItem
42cdf0e10cSrcweir {
43*c7be74b1SArmin Le Grand 	XColorListSharedPtr     maColorTable;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir public:
46cdf0e10cSrcweir 							TYPEINFO();
47cdf0e10cSrcweir 							SvxColorTableItem();
48*c7be74b1SArmin Le Grand 							SvxColorTableItem( XColorListSharedPtr aTable, sal_uInt16 nWhich );
49cdf0e10cSrcweir 							SvxColorTableItem( const SvxColorTableItem& );
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
52cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
53cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
54cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
57cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
58cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
59cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
60cdf0e10cSrcweir 
GetColorTable() const61*c7be74b1SArmin Le Grand     XColorListSharedPtr GetColorTable() const { return maColorTable; }
SetColorTable(XColorListSharedPtr aTable)62*c7be74b1SArmin Le Grand     void SetColorTable( XColorListSharedPtr aTable ) { maColorTable = aTable; }
63cdf0e10cSrcweir };
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 
66cdf0e10cSrcweir //==================================================================
67cdf0e10cSrcweir //	SvxGradientListItem
68cdf0e10cSrcweir //==================================================================
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 
71cdf0e10cSrcweir class XGradientList;
72*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XGradientList > XGradientListSharedPtr;
73cdf0e10cSrcweir 
74*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxGradientListItem : public SfxPoolItem
75cdf0e10cSrcweir {
76*c7be74b1SArmin Le Grand 	XGradientListSharedPtr  maGradientList;
77cdf0e10cSrcweir 
78cdf0e10cSrcweir public:
79cdf0e10cSrcweir 							TYPEINFO();
80cdf0e10cSrcweir 							SvxGradientListItem();
81*c7be74b1SArmin Le Grand 							SvxGradientListItem( XGradientListSharedPtr aList, sal_uInt16 nWhich  );
82cdf0e10cSrcweir 							SvxGradientListItem( const SvxGradientListItem& );
83cdf0e10cSrcweir 
84cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
85cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
86cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
87cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
88cdf0e10cSrcweir 
89cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
90cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
91cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
92cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
93cdf0e10cSrcweir 
GetGradientList() const94*c7be74b1SArmin Le Grand     XGradientListSharedPtr GetGradientList() const { return maGradientList; }
SetGradientList(XGradientListSharedPtr aList)95*c7be74b1SArmin Le Grand     void SetGradientList(XGradientListSharedPtr aList ) { maGradientList = aList; }
96cdf0e10cSrcweir };
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 
99cdf0e10cSrcweir 
100cdf0e10cSrcweir //==================================================================
101cdf0e10cSrcweir //	SvxHatchListItem
102cdf0e10cSrcweir //==================================================================
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 
105cdf0e10cSrcweir class XHatchList;
106*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XHatchList > XHatchListSharedPtr;
107cdf0e10cSrcweir 
108*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxHatchListItem : public SfxPoolItem
109cdf0e10cSrcweir {
110*c7be74b1SArmin Le Grand 	XHatchListSharedPtr     maHatchList;
111cdf0e10cSrcweir 
112cdf0e10cSrcweir public:
113cdf0e10cSrcweir 							TYPEINFO();
114cdf0e10cSrcweir 							SvxHatchListItem();
115*c7be74b1SArmin Le Grand 							SvxHatchListItem( XHatchListSharedPtr aList, sal_uInt16 nWhich  );
116cdf0e10cSrcweir 							SvxHatchListItem( const SvxHatchListItem& );
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
119cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
120cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
121cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
124cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
125cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
126cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
127cdf0e10cSrcweir 
GetHatchList() const128*c7be74b1SArmin Le Grand     XHatchListSharedPtr GetHatchList() const { return maHatchList; }
SetHatchList(XHatchListSharedPtr aList)129*c7be74b1SArmin Le Grand     void SetHatchList(XHatchListSharedPtr aList ) { maHatchList = aList; }
130cdf0e10cSrcweir };
131cdf0e10cSrcweir 
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 
134cdf0e10cSrcweir //==================================================================
135cdf0e10cSrcweir //	SvxBitmapListItem
136cdf0e10cSrcweir //==================================================================
137cdf0e10cSrcweir 
138cdf0e10cSrcweir 
139cdf0e10cSrcweir class XBitmapList;
140*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XBitmapList > XBitmapListSharedPtr;
141cdf0e10cSrcweir 
142*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxBitmapListItem : public SfxPoolItem
143cdf0e10cSrcweir {
144*c7be74b1SArmin Le Grand 	XBitmapListSharedPtr    maBitmapList;
145cdf0e10cSrcweir 
146cdf0e10cSrcweir public:
147cdf0e10cSrcweir 							TYPEINFO();
148cdf0e10cSrcweir 							SvxBitmapListItem();
149*c7be74b1SArmin Le Grand 							SvxBitmapListItem( XBitmapListSharedPtr aBL, sal_uInt16 nWhich  );
150cdf0e10cSrcweir 							SvxBitmapListItem( const SvxBitmapListItem& );
151cdf0e10cSrcweir 
152cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
153cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
154cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
155cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
156cdf0e10cSrcweir 
157cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
158cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
159cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
160cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
161cdf0e10cSrcweir 
GetBitmapList() const162*c7be74b1SArmin Le Grand     XBitmapListSharedPtr GetBitmapList() const { return maBitmapList; }
SetBitmapList(XBitmapListSharedPtr aList)163*c7be74b1SArmin Le Grand     void SetBitmapList(XBitmapListSharedPtr aList ) { maBitmapList = aList; }
164cdf0e10cSrcweir };
165cdf0e10cSrcweir 
166cdf0e10cSrcweir 
167cdf0e10cSrcweir 
168cdf0e10cSrcweir //==================================================================
169cdf0e10cSrcweir //	SvxDashListItem
170cdf0e10cSrcweir //==================================================================
171cdf0e10cSrcweir 
172cdf0e10cSrcweir 
173cdf0e10cSrcweir class XDashList;
174*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XDashList > XDashListSharedPtr;
175cdf0e10cSrcweir 
176*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxDashListItem : public SfxPoolItem
177cdf0e10cSrcweir {
178*c7be74b1SArmin Le Grand 	XDashListSharedPtr      maDashList;
179cdf0e10cSrcweir 
180cdf0e10cSrcweir public:
181cdf0e10cSrcweir 							TYPEINFO();
182cdf0e10cSrcweir 							SvxDashListItem();
183*c7be74b1SArmin Le Grand 							SvxDashListItem( XDashListSharedPtr aList, sal_uInt16 nWhich  );
184cdf0e10cSrcweir 							SvxDashListItem( const SvxDashListItem& );
185cdf0e10cSrcweir 
186cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
187cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
188cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
189cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
190cdf0e10cSrcweir 
191cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
192cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
193cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
194cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
195cdf0e10cSrcweir 
GetDashList() const196*c7be74b1SArmin Le Grand     XDashListSharedPtr GetDashList() const { return maDashList; }
SetDashList(XDashListSharedPtr aList)197*c7be74b1SArmin Le Grand     void SetDashList(XDashListSharedPtr aList) { maDashList = aList; }
198cdf0e10cSrcweir };
199cdf0e10cSrcweir 
200cdf0e10cSrcweir 
201cdf0e10cSrcweir 
202cdf0e10cSrcweir //==================================================================
203cdf0e10cSrcweir //	SvxLineEndListItem
204cdf0e10cSrcweir //==================================================================
205cdf0e10cSrcweir 
206cdf0e10cSrcweir 
207cdf0e10cSrcweir class XLineEndList;
208*c7be74b1SArmin Le Grand typedef ::boost::shared_ptr< XLineEndList > XLineEndListSharedPtr;
209cdf0e10cSrcweir 
210*c7be74b1SArmin Le Grand class SVX_DLLPUBLIC SvxLineEndListItem : public SfxPoolItem
211cdf0e10cSrcweir {
212*c7be74b1SArmin Le Grand 	XLineEndListSharedPtr   maLineEndList;
213cdf0e10cSrcweir 
214cdf0e10cSrcweir public:
215cdf0e10cSrcweir 							TYPEINFO();
216cdf0e10cSrcweir 							SvxLineEndListItem();
217*c7be74b1SArmin Le Grand 							SvxLineEndListItem( XLineEndListSharedPtr aList, sal_uInt16 nWhich  );
218cdf0e10cSrcweir 							SvxLineEndListItem( const SvxLineEndListItem& );
219cdf0e10cSrcweir 
220cdf0e10cSrcweir 	virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
221cdf0e10cSrcweir 									SfxMapUnit eCoreMetric,
222cdf0e10cSrcweir 									SfxMapUnit ePresMetric,
223cdf0e10cSrcweir                                     String &rText, const IntlWrapper * = 0 ) const;
224cdf0e10cSrcweir 
225cdf0e10cSrcweir 	virtual int 			operator==( const SfxPoolItem& ) const;
226cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool *pPool = 0 ) const;
227cdf0e10cSrcweir 	virtual	sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
228cdf0e10cSrcweir     virtual sal_Bool        PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
229cdf0e10cSrcweir 
GetLineEndList() const230*c7be74b1SArmin Le Grand     XLineEndListSharedPtr GetLineEndList() const { return maLineEndList; }
SetLineEndList(XLineEndListSharedPtr aList)231*c7be74b1SArmin Le Grand     void SetLineEndList(XLineEndListSharedPtr aList ) { maLineEndList = aList; }
232cdf0e10cSrcweir };
233cdf0e10cSrcweir 
234cdf0e10cSrcweir 
235cdf0e10cSrcweir 
236cdf0e10cSrcweir 
237cdf0e10cSrcweir #endif
238cdf0e10cSrcweir 
239