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 26650 : class SVX_DLLPUBLIC SAL_WARN_UNUSED 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 bool 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 566 : XColorListRef GetColorList() const { return pColorList; }
54 : void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
55 : };
56 :
57 : // SvxGradientListItem
58 25351 : class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxGradientListItem : public SfxPoolItem
59 : {
60 : XGradientListRef pGradientList;
61 :
62 : public:
63 : TYPEINFO_OVERRIDE();
64 : SvxGradientListItem();
65 : SvxGradientListItem( XGradientListRef pList,
66 : sal_uInt16 nWhich );
67 : SvxGradientListItem( const SvxGradientListItem& );
68 :
69 : virtual bool GetPresentation( SfxItemPresentation ePres,
70 : SfxMapUnit eCoreMetric,
71 : SfxMapUnit ePresMetric,
72 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
73 :
74 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
75 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
76 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
77 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
78 :
79 0 : XGradientListRef GetGradientList() const { return pGradientList; }
80 : void SetGradientList( XGradientListRef pList ) {
81 : pGradientList = pList; }
82 : };
83 :
84 :
85 :
86 : // SvxHatchListItem
87 :
88 25351 : class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxHatchListItem : public SfxPoolItem
89 : {
90 : XHatchListRef pHatchList;
91 :
92 : public:
93 : TYPEINFO_OVERRIDE();
94 : SvxHatchListItem();
95 : SvxHatchListItem( XHatchListRef pList,
96 : sal_uInt16 nWhich );
97 : SvxHatchListItem( const SvxHatchListItem& );
98 :
99 : virtual bool GetPresentation( SfxItemPresentation ePres,
100 : SfxMapUnit eCoreMetric,
101 : SfxMapUnit ePresMetric,
102 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
103 :
104 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
105 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
106 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
107 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
108 :
109 0 : XHatchListRef GetHatchList() const { return pHatchList; }
110 : void SetHatchList( XHatchListRef pList ) {
111 : pHatchList = pList; }
112 : };
113 :
114 :
115 :
116 :
117 : // SvxBitmapListItem
118 :
119 25351 : class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxBitmapListItem : public SfxPoolItem
120 : {
121 : XBitmapListRef pBitmapList;
122 :
123 : public:
124 : TYPEINFO_OVERRIDE();
125 : SvxBitmapListItem();
126 : SvxBitmapListItem( XBitmapListRef pBL,
127 : sal_uInt16 nWhich );
128 : SvxBitmapListItem( const SvxBitmapListItem& );
129 :
130 : virtual bool GetPresentation( SfxItemPresentation ePres,
131 : SfxMapUnit eCoreMetric,
132 : SfxMapUnit ePresMetric,
133 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
134 :
135 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
136 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
137 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
138 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
139 :
140 0 : XBitmapListRef GetBitmapList() const { return pBitmapList; }
141 : void SetBitmapList( XBitmapListRef pList ) {
142 : pBitmapList = pList; }
143 : };
144 :
145 :
146 :
147 :
148 : // SvxDashListItem
149 :
150 12349 : class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxDashListItem : public SfxPoolItem
151 : {
152 : XDashListRef pDashList;
153 :
154 : public:
155 : TYPEINFO_OVERRIDE();
156 : SvxDashListItem();
157 : SvxDashListItem( XDashListRef pList,
158 : sal_uInt16 nWhich );
159 : SvxDashListItem( const SvxDashListItem& );
160 :
161 : virtual bool GetPresentation( SfxItemPresentation ePres,
162 : SfxMapUnit eCoreMetric,
163 : SfxMapUnit ePresMetric,
164 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
165 :
166 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
167 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
168 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
169 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
170 :
171 1 : XDashListRef GetDashList() const { return pDashList; }
172 : };
173 :
174 :
175 :
176 : // SvxLineEndListItem
177 :
178 12349 : class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxLineEndListItem : public SfxPoolItem
179 : {
180 : XLineEndListRef pLineEndList;
181 :
182 : public:
183 : TYPEINFO_OVERRIDE();
184 : SvxLineEndListItem();
185 : SvxLineEndListItem( XLineEndListRef pList,
186 : sal_uInt16 nWhich );
187 : SvxLineEndListItem( const SvxLineEndListItem& );
188 :
189 : virtual bool GetPresentation( SfxItemPresentation ePres,
190 : SfxMapUnit eCoreMetric,
191 : SfxMapUnit ePresMetric,
192 : OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
193 :
194 : virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
195 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
196 : virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
197 : virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) SAL_OVERRIDE;
198 :
199 1 : XLineEndListRef GetLineEndList() const { return pLineEndList; }
200 : void SetLineEndList( XLineEndListRef pList ) {
201 : pLineEndList = pList; }
202 : };
203 :
204 :
205 :
206 :
207 : #endif
208 :
209 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|