Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef INCLUDED_SVX_DRAWITEM_HXX
20 : #define INCLUDED_SVX_DRAWITEM_HXX
21 :
22 : #include <svl/poolitem.hxx>
23 : #include <svx/xtable.hxx>
24 : #include <com/sun/star/uno/Sequence.hxx>
25 : #include <com/sun/star/drawing/LineDash.hpp>
26 : #include <svx/svxdllapi.h>
27 :
28 :
29 : // SvxColorListItem
30 :
31 :
32 0 : class SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem
33 : {
34 : XColorListRef pColorList;
35 :
36 : public:
37 : TYPEINFO_OVERRIDE();
38 : SvxColorListItem();
39 : SvxColorListItem( XColorListRef pTable,
40 : sal_uInt16 nWhich );
41 : SvxColorListItem( const SvxColorListItem& );
42 :
43 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
44 : SfxMapUnit eCoreMetric,
45 : SfxMapUnit ePresMetric,
46 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
47 :
48 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
49 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
50 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
51 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
52 :
53 0 : XColorListRef GetColorList() const { return pColorList; }
54 : void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
55 : };
56 :
57 :
58 :
59 : // SvxGradientListItem
60 :
61 :
62 0 : class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
63 : {
64 : XGradientListRef pGradientList;
65 :
66 : public:
67 : TYPEINFO_OVERRIDE();
68 : SvxGradientListItem();
69 : SvxGradientListItem( XGradientListRef pList,
70 : sal_uInt16 nWhich );
71 : SvxGradientListItem( const SvxGradientListItem& );
72 :
73 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
74 : SfxMapUnit eCoreMetric,
75 : SfxMapUnit ePresMetric,
76 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
77 :
78 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
79 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
80 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
81 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
82 :
83 0 : XGradientListRef GetGradientList() const { return pGradientList; }
84 : void SetGradientList( XGradientListRef pList ) {
85 : pGradientList = pList; }
86 : };
87 :
88 :
89 :
90 : // SvxHatchListItem
91 :
92 0 : class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem
93 : {
94 : XHatchListRef pHatchList;
95 :
96 : public:
97 : TYPEINFO_OVERRIDE();
98 : SvxHatchListItem();
99 : SvxHatchListItem( XHatchListRef pList,
100 : sal_uInt16 nWhich );
101 : SvxHatchListItem( const SvxHatchListItem& );
102 :
103 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
104 : SfxMapUnit eCoreMetric,
105 : SfxMapUnit ePresMetric,
106 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
107 :
108 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
109 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
110 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
111 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
112 :
113 0 : XHatchListRef GetHatchList() const { return pHatchList; }
114 : void SetHatchList( XHatchListRef pList ) {
115 : pHatchList = pList; }
116 : };
117 :
118 :
119 :
120 :
121 : // SvxBitmapListItem
122 :
123 0 : class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem
124 : {
125 : XBitmapListRef pBitmapList;
126 :
127 : public:
128 : TYPEINFO_OVERRIDE();
129 : SvxBitmapListItem();
130 : SvxBitmapListItem( XBitmapListRef pBL,
131 : sal_uInt16 nWhich );
132 : SvxBitmapListItem( const SvxBitmapListItem& );
133 :
134 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
135 : SfxMapUnit eCoreMetric,
136 : SfxMapUnit ePresMetric,
137 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
138 :
139 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
140 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
141 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
142 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
143 :
144 0 : XBitmapListRef GetBitmapList() const { return pBitmapList; }
145 : void SetBitmapList( XBitmapListRef pList ) {
146 : pBitmapList = pList; }
147 : };
148 :
149 :
150 :
151 :
152 : // SvxDashListItem
153 :
154 0 : class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem
155 : {
156 : XDashListRef pDashList;
157 :
158 : public:
159 : TYPEINFO_OVERRIDE();
160 : SvxDashListItem();
161 : SvxDashListItem( XDashListRef pList,
162 : sal_uInt16 nWhich );
163 : SvxDashListItem( const SvxDashListItem& );
164 :
165 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
166 : SfxMapUnit eCoreMetric,
167 : SfxMapUnit ePresMetric,
168 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
169 :
170 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
171 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
172 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
173 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
174 :
175 0 : XDashListRef GetDashList() const { return pDashList; }
176 : };
177 :
178 :
179 :
180 : // SvxLineEndListItem
181 :
182 0 : class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem
183 : {
184 : XLineEndListRef pLineEndList;
185 :
186 : public:
187 : TYPEINFO_OVERRIDE();
188 : SvxLineEndListItem();
189 : SvxLineEndListItem( XLineEndListRef pList,
190 : sal_uInt16 nWhich );
191 : SvxLineEndListItem( const SvxLineEndListItem& );
192 :
193 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
194 : SfxMapUnit eCoreMetric,
195 : SfxMapUnit ePresMetric,
196 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
197 :
198 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
199 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
200 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
201 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
202 :
203 0 : XLineEndListRef GetLineEndList() const { return pLineEndList; }
204 : void SetLineEndList( XLineEndListRef pList ) {
205 : pLineEndList = pList; }
206 : };
207 :
208 :
209 :
210 :
211 : #endif
212 :
213 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|