Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SVX_DRAWITEM_HXX
29 : : #define _SVX_DRAWITEM_HXX
30 : :
31 : : #include <svl/poolitem.hxx>
32 : : #include <svx/xtable.hxx>
33 : : #include <com/sun/star/uno/Sequence.hxx>
34 : : #include <com/sun/star/drawing/LineDash.hpp>
35 : : #include "svx/svxdllapi.h"
36 : :
37 : : //==================================================================
38 : : // SvxColorListItem
39 : : //==================================================================
40 : :
41 [ - + ]: 2569 : class SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem
42 : : {
43 : : XColorListRef pColorList;
44 : :
45 : : public:
46 : : TYPEINFO();
47 : : SvxColorListItem();
48 : : SvxColorListItem( XColorListRef pTable,
49 : : sal_uInt16 nWhich );
50 : : SvxColorListItem( const SvxColorListItem& );
51 : :
52 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
53 : : SfxMapUnit eCoreMetric,
54 : : SfxMapUnit ePresMetric,
55 : : String &rText, const IntlWrapper * = 0 ) const;
56 : :
57 : : virtual int operator==( const SfxPoolItem& ) const;
58 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
59 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
60 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
61 : :
62 : 1615 : XColorListRef GetColorList() const { return pColorList; }
63 : : void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
64 : : };
65 : :
66 : :
67 : : //==================================================================
68 : : // SvxGradientListItem
69 : : //==================================================================
70 : :
71 [ - + ]: 2132 : class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
72 : : {
73 : : XGradientListRef pGradientList;
74 : :
75 : : public:
76 : : TYPEINFO();
77 : : SvxGradientListItem();
78 : : SvxGradientListItem( XGradientListRef pList,
79 : : sal_uInt16 nWhich );
80 : : SvxGradientListItem( const SvxGradientListItem& );
81 : :
82 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
83 : : SfxMapUnit eCoreMetric,
84 : : SfxMapUnit ePresMetric,
85 : : String &rText, const IntlWrapper * = 0 ) const;
86 : :
87 : : virtual int operator==( const SfxPoolItem& ) const;
88 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
89 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
90 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
91 : :
92 : 0 : XGradientListRef GetGradientList() const { return pGradientList; }
93 : : void SetGradientList( XGradientListRef pList ) {
94 : : pGradientList = pList; }
95 : : };
96 : :
97 : :
98 : : //==================================================================
99 : : // SvxHatchListItem
100 : : //==================================================================
101 [ - + ]: 2132 : class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem
102 : : {
103 : : XHatchListRef pHatchList;
104 : :
105 : : public:
106 : : TYPEINFO();
107 : : SvxHatchListItem();
108 : : SvxHatchListItem( XHatchListRef pList,
109 : : sal_uInt16 nWhich );
110 : : SvxHatchListItem( const SvxHatchListItem& );
111 : :
112 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
113 : : SfxMapUnit eCoreMetric,
114 : : SfxMapUnit ePresMetric,
115 : : String &rText, const IntlWrapper * = 0 ) const;
116 : :
117 : : virtual int operator==( const SfxPoolItem& ) const;
118 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
119 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
120 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
121 : :
122 : 0 : XHatchListRef GetHatchList() const { return pHatchList; }
123 : : void SetHatchList( XHatchListRef pList ) {
124 : : pHatchList = pList; }
125 : : };
126 : :
127 : :
128 : :
129 : : //==================================================================
130 : : // SvxBitmapListItem
131 : : //==================================================================
132 [ - + ]: 2132 : class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem
133 : : {
134 : : XBitmapListRef pBitmapList;
135 : :
136 : : public:
137 : : TYPEINFO();
138 : : SvxBitmapListItem();
139 : : SvxBitmapListItem( XBitmapListRef pBL,
140 : : sal_uInt16 nWhich );
141 : : SvxBitmapListItem( const SvxBitmapListItem& );
142 : :
143 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
144 : : SfxMapUnit eCoreMetric,
145 : : SfxMapUnit ePresMetric,
146 : : String &rText, const IntlWrapper * = 0 ) const;
147 : :
148 : : virtual int operator==( const SfxPoolItem& ) const;
149 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
150 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
151 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
152 : :
153 : 0 : XBitmapListRef GetBitmapList() const { return pBitmapList; }
154 : : void SetBitmapList( XBitmapListRef pList ) {
155 : : pBitmapList = pList; }
156 : : };
157 : :
158 : :
159 : :
160 : : //==================================================================
161 : : // SvxDashListItem
162 : : //==================================================================
163 [ - + ]: 2132 : class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem
164 : : {
165 : : XDashListRef pDashList;
166 : :
167 : : public:
168 : : TYPEINFO();
169 : : SvxDashListItem();
170 : : SvxDashListItem( XDashListRef pList,
171 : : sal_uInt16 nWhich );
172 : : SvxDashListItem( const SvxDashListItem& );
173 : :
174 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
175 : : SfxMapUnit eCoreMetric,
176 : : SfxMapUnit ePresMetric,
177 : : String &rText, const IntlWrapper * = 0 ) const;
178 : :
179 : : virtual int operator==( const SfxPoolItem& ) const;
180 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
181 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
182 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
183 : :
184 : 0 : XDashListRef GetDashList() const { return pDashList; }
185 : : };
186 : :
187 : :
188 : : //==================================================================
189 : : // SvxLineEndListItem
190 : : //==================================================================
191 [ - + ]: 2132 : class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem
192 : : {
193 : : XLineEndListRef pLineEndList;
194 : :
195 : : public:
196 : : TYPEINFO();
197 : : SvxLineEndListItem();
198 : : SvxLineEndListItem( XLineEndListRef pList,
199 : : sal_uInt16 nWhich );
200 : : SvxLineEndListItem( const SvxLineEndListItem& );
201 : :
202 : : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
203 : : SfxMapUnit eCoreMetric,
204 : : SfxMapUnit ePresMetric,
205 : : String &rText, const IntlWrapper * = 0 ) const;
206 : :
207 : : virtual int operator==( const SfxPoolItem& ) const;
208 : : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
209 : : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
210 : : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
211 : :
212 : 0 : XLineEndListRef GetLineEndList() const { return pLineEndList; }
213 : : void SetLineEndList( XLineEndListRef pList ) {
214 : : pLineEndList = pList; }
215 : : };
216 : :
217 : :
218 : :
219 : :
220 : : #endif
221 : :
222 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|