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: drawitem.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 ************************************************************************/
30 #ifndef _SVX_DRAWITEM_HXX
31 #define _SVX_DRAWITEM_HXX
33 // include ---------------------------------------------------------------
37 //==================================================================
39 //==================================================================
41 #ifdef ITEMID_COLOR_TABLE
44 class SvxColorTableItem
: public SfxPoolItem
46 XColorTable
* pColorTable
;
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
; }
66 //==================================================================
67 // SvxGradientListItem
68 //==================================================================
70 #ifdef ITEMID_GRADIENT_LIST
73 class SvxGradientListItem
: public SfxPoolItem
75 XGradientList
* pGradientList
;
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
; }
95 //==================================================================
97 //==================================================================
99 #ifdef ITEMID_HATCH_LIST
102 class SvxHatchListItem
: public SfxPoolItem
104 XHatchList
* pHatchList
;
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
; }
124 //==================================================================
126 //==================================================================
128 #ifdef ITEMID_BITMAP_LIST
131 class SvxBitmapListItem
: public SfxPoolItem
133 XBitmapList
* pBitmapList
;
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
; }
153 //==================================================================
155 //==================================================================
157 #ifdef ITEMID_DASH_LIST
160 class SvxDashListItem
: public SfxPoolItem
162 XDashList
* pDashList
;
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
) {
182 //==================================================================
183 // SvxLineEndListItem
184 //==================================================================
186 #ifdef ITEMID_LINEEND_LIST
189 class SvxLineEndListItem
: public SfxPoolItem
191 XLineEndList
* pLineEndList
;
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
; }
211 }//end of namespace binfilter