Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_svx / drawitem.hxx
blobb632f439b553237442d8d7773d40061f39410b23
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.6 $
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 namespace binfilter {
37 //==================================================================
38 // SvxColorTableItem
39 //==================================================================
41 #ifdef ITEMID_COLOR_TABLE
42 class XColorTable;
44 class SvxColorTableItem: public SfxPoolItem
46 XColorTable* pColorTable;
48 public:
49 TYPEINFO();
50 SvxColorTableItem();
51 SvxColorTableItem( XColorTable* pTable,
52 USHORT nWhich = ITEMID_COLOR_TABLE );
53 SvxColorTableItem( const SvxColorTableItem& );
56 virtual int operator==( const SfxPoolItem& ) const;
57 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
59 XColorTable* GetColorTable() const { return pColorTable; }
60 void SetColorTable( XColorTable* pTable ) {
61 pColorTable = pTable; }
64 #endif
66 //==================================================================
67 // SvxGradientListItem
68 //==================================================================
70 #ifdef ITEMID_GRADIENT_LIST
71 class XGradientList;
73 class SvxGradientListItem: public SfxPoolItem
75 XGradientList* pGradientList;
77 public:
78 TYPEINFO();
79 SvxGradientListItem();
80 SvxGradientListItem( XGradientList* pList,
81 USHORT nWhich = ITEMID_GRADIENT_LIST );
82 SvxGradientListItem( const SvxGradientListItem& );
85 virtual int operator==( const SfxPoolItem& ) const;
86 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
88 XGradientList* GetGradientList() const { return pGradientList; }
89 void SetGradientList( XGradientList* pList ) {
90 pGradientList = pList; }
93 #endif
95 //==================================================================
96 // SvxHatchListItem
97 //==================================================================
99 #ifdef ITEMID_HATCH_LIST
100 class XHatchList;
102 class SvxHatchListItem: public SfxPoolItem
104 XHatchList* pHatchList;
106 public:
107 TYPEINFO();
108 SvxHatchListItem();
109 SvxHatchListItem( XHatchList* pList,
110 USHORT nWhich = ITEMID_HATCH_LIST );
111 SvxHatchListItem( const SvxHatchListItem& );
114 virtual int operator==( const SfxPoolItem& ) const;
115 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
117 XHatchList* GetHatchList() const { return pHatchList; }
118 void SetHatchList( XHatchList* pList ) {
119 pHatchList = pList; }
122 #endif
124 //==================================================================
125 // SvxBitmapListItem
126 //==================================================================
128 #ifdef ITEMID_BITMAP_LIST
129 class XBitmapList;
131 class SvxBitmapListItem: public SfxPoolItem
133 XBitmapList* pBitmapList;
135 public:
136 TYPEINFO();
137 SvxBitmapListItem();
138 SvxBitmapListItem( XBitmapList* pBL,
139 USHORT nWhich = ITEMID_BITMAP_LIST );
140 SvxBitmapListItem( const SvxBitmapListItem& );
143 virtual int operator==( const SfxPoolItem& ) const;
144 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
146 XBitmapList* GetBitmapList() const { return pBitmapList; }
147 void SetBitmapList( XBitmapList* pList ) {
148 pBitmapList = pList; }
151 #endif
153 //==================================================================
154 // SvxDashListItem
155 //==================================================================
157 #ifdef ITEMID_DASH_LIST
158 class XDashList;
160 class SvxDashListItem: public SfxPoolItem
162 XDashList* pDashList;
164 public:
165 TYPEINFO();
166 SvxDashListItem();
167 SvxDashListItem( XDashList* pList,
168 USHORT nWhich = ITEMID_DASH_LIST );
169 SvxDashListItem( const SvxDashListItem& );
172 virtual int operator==( const SfxPoolItem& ) const;
173 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
175 XDashList* GetDashList() const { return pDashList; }
176 void SetDashList( XDashList* pList ) {
177 pDashList = pList; }
180 #endif
182 //==================================================================
183 // SvxLineEndListItem
184 //==================================================================
186 #ifdef ITEMID_LINEEND_LIST
187 class XLineEndList;
189 class SvxLineEndListItem: public SfxPoolItem
191 XLineEndList* pLineEndList;
193 public:
194 TYPEINFO();
195 SvxLineEndListItem();
196 SvxLineEndListItem( XLineEndList* pList,
197 USHORT nWhich = ITEMID_LINEEND_LIST );
198 SvxLineEndListItem( const SvxLineEndListItem& );
201 virtual int operator==( const SfxPoolItem& ) const;
202 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
204 XLineEndList* GetLineEndList() const { return pLineEndList; }
205 void SetLineEndList( XLineEndList* pList ) {
206 pLineEndList = pList; }
209 #endif
211 }//end of namespace binfilter
212 #endif