Update ooo320-m1
[ooovba.git] / svx / inc / drawitem.hxx
blob6acf482ef52b4ba08b68747678c5e70b36ad1620
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: drawitem.hxx,v $
10 * $Revision: 1.7 $
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 ************************************************************************/
30 #ifndef _SVX_DRAWITEM_HXX
31 #define _SVX_DRAWITEM_HXX
33 // include ---------------------------------------------------------------
35 #include <svtools/poolitem.hxx>
36 #include <com/sun/star/uno/Sequence.hxx>
37 #include <com/sun/star/drawing/LineDash.hpp>
38 #include "svx/svxdllapi.h"
40 //==================================================================
41 // SvxColorTableItem
42 //==================================================================
44 class XColorTable;
46 class SVX_DLLPUBLIC SvxColorTableItem: public SfxPoolItem
48 XColorTable* pColorTable;
50 public:
51 TYPEINFO();
52 SvxColorTableItem();
53 SvxColorTableItem( XColorTable* pTable,
54 USHORT nWhich );
55 SvxColorTableItem( const SvxColorTableItem& );
57 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
58 SfxMapUnit eCoreMetric,
59 SfxMapUnit ePresMetric,
60 String &rText, const IntlWrapper * = 0 ) const;
62 virtual int operator==( const SfxPoolItem& ) const;
63 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
64 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
65 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
67 XColorTable* GetColorTable() const { return pColorTable; }
68 void SetColorTable( XColorTable* pTable ) {
69 pColorTable = pTable; }
73 //==================================================================
74 // SvxGradientListItem
75 //==================================================================
78 class XGradientList;
80 class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
82 XGradientList* pGradientList;
84 public:
85 TYPEINFO();
86 SvxGradientListItem();
87 SvxGradientListItem( XGradientList* pList,
88 USHORT nWhich );
89 SvxGradientListItem( const SvxGradientListItem& );
91 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
92 SfxMapUnit eCoreMetric,
93 SfxMapUnit ePresMetric,
94 String &rText, const IntlWrapper * = 0 ) const;
96 virtual int operator==( const SfxPoolItem& ) const;
97 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
98 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
99 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
101 XGradientList* GetGradientList() const { return pGradientList; }
102 void SetGradientList( XGradientList* pList ) {
103 pGradientList = pList; }
108 //==================================================================
109 // SvxHatchListItem
110 //==================================================================
113 class XHatchList;
115 class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem
117 XHatchList* pHatchList;
119 public:
120 TYPEINFO();
121 SvxHatchListItem();
122 SvxHatchListItem( XHatchList* pList,
123 USHORT nWhich );
124 SvxHatchListItem( const SvxHatchListItem& );
126 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
127 SfxMapUnit eCoreMetric,
128 SfxMapUnit ePresMetric,
129 String &rText, const IntlWrapper * = 0 ) const;
131 virtual int operator==( const SfxPoolItem& ) const;
132 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
133 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
134 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
136 XHatchList* GetHatchList() const { return pHatchList; }
137 void SetHatchList( XHatchList* pList ) {
138 pHatchList = pList; }
143 //==================================================================
144 // SvxBitmapListItem
145 //==================================================================
148 class XBitmapList;
150 class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem
152 XBitmapList* pBitmapList;
154 public:
155 TYPEINFO();
156 SvxBitmapListItem();
157 SvxBitmapListItem( XBitmapList* pBL,
158 USHORT nWhich );
159 SvxBitmapListItem( const SvxBitmapListItem& );
161 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
162 SfxMapUnit eCoreMetric,
163 SfxMapUnit ePresMetric,
164 String &rText, const IntlWrapper * = 0 ) const;
166 virtual int operator==( const SfxPoolItem& ) const;
167 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
168 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
169 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
171 XBitmapList* GetBitmapList() const { return pBitmapList; }
172 void SetBitmapList( XBitmapList* pList ) {
173 pBitmapList = pList; }
178 //==================================================================
179 // SvxDashListItem
180 //==================================================================
183 class XDashList;
185 class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem
187 XDashList* pDashList;
189 public:
190 TYPEINFO();
191 SvxDashListItem();
192 SvxDashListItem( XDashList* pList,
193 USHORT nWhich );
194 SvxDashListItem( const SvxDashListItem& );
196 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
197 SfxMapUnit eCoreMetric,
198 SfxMapUnit ePresMetric,
199 String &rText, const IntlWrapper * = 0 ) const;
201 virtual int operator==( const SfxPoolItem& ) const;
202 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
203 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
204 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
206 XDashList* GetDashList() const { return pDashList; }
207 void SetDashList( XDashList* pList );
212 //==================================================================
213 // SvxLineEndListItem
214 //==================================================================
217 class XLineEndList;
219 class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem
221 XLineEndList* pLineEndList;
223 public:
224 TYPEINFO();
225 SvxLineEndListItem();
226 SvxLineEndListItem( XLineEndList* pList,
227 USHORT nWhich );
228 SvxLineEndListItem( const SvxLineEndListItem& );
230 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
231 SfxMapUnit eCoreMetric,
232 SfxMapUnit ePresMetric,
233 String &rText, const IntlWrapper * = 0 ) const;
235 virtual int operator==( const SfxPoolItem& ) const;
236 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
237 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
238 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId );
240 XLineEndList* GetLineEndList() const { return pLineEndList; }
241 void SetLineEndList( XLineEndList* pList ) {
242 pLineEndList = pList; }
248 #endif