/src/libreoffice/include/svx/drawitem.hxx
Line | Count | Source |
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 <svx/svxdllapi.h> |
25 | | |
26 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxColorListItem final : public SfxPoolItem |
27 | | { |
28 | | XColorListRef m_pColorList; |
29 | | |
30 | | public: |
31 | | static SfxPoolItem* CreateDefault(); |
32 | | |
33 | | DECLARE_ITEM_TYPE_FUNCTION(SvxColorListItem) |
34 | | SvxColorListItem(); |
35 | | SvxColorListItem( XColorListRef pTable, |
36 | | TypedWhichId<SvxColorListItem> nWhich ); |
37 | | SvxColorListItem( const SvxColorListItem& ); |
38 | | |
39 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
40 | | MapUnit eCoreMetric, |
41 | | MapUnit ePresMetric, |
42 | | OUString &rText, const IntlWrapper& ) const override; |
43 | | |
44 | | virtual bool operator==( const SfxPoolItem& ) const override; |
45 | | virtual SvxColorListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
46 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
47 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
48 | | |
49 | 0 | const XColorListRef& GetColorList() const { return m_pColorList; } |
50 | | }; |
51 | | |
52 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxGradientListItem final : public SfxPoolItem |
53 | | { |
54 | | XGradientListRef m_pGradientList; |
55 | | |
56 | | public: |
57 | | static SfxPoolItem* CreateDefault(); |
58 | | |
59 | | DECLARE_ITEM_TYPE_FUNCTION(SvxGradientListItem) |
60 | | SvxGradientListItem(); |
61 | | SvxGradientListItem( XGradientListRef pList, |
62 | | TypedWhichId<SvxGradientListItem> nWhich ); |
63 | | SvxGradientListItem( const SvxGradientListItem& ); |
64 | | |
65 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
66 | | MapUnit eCoreMetric, |
67 | | MapUnit ePresMetric, |
68 | | OUString &rText, const IntlWrapper& ) const override; |
69 | | |
70 | | virtual bool operator==( const SfxPoolItem& ) const override; |
71 | | virtual SvxGradientListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
72 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
73 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
74 | | |
75 | 0 | const XGradientListRef& GetGradientList() const { return m_pGradientList; } |
76 | | }; |
77 | | |
78 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxHatchListItem final : public SfxPoolItem |
79 | | { |
80 | | XHatchListRef m_pHatchList; |
81 | | |
82 | | public: |
83 | | static SfxPoolItem* CreateDefault(); |
84 | | DECLARE_ITEM_TYPE_FUNCTION(SvxHatchListItem) |
85 | | SvxHatchListItem(); |
86 | | SvxHatchListItem( XHatchListRef pList, |
87 | | TypedWhichId<SvxHatchListItem> nWhich ); |
88 | | SvxHatchListItem( const SvxHatchListItem& ); |
89 | | |
90 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
91 | | MapUnit eCoreMetric, |
92 | | MapUnit ePresMetric, |
93 | | OUString &rText, const IntlWrapper& ) const override; |
94 | | |
95 | | virtual bool operator==( const SfxPoolItem& ) const override; |
96 | | virtual SvxHatchListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
97 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
98 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
99 | | |
100 | 0 | const XHatchListRef& GetHatchList() const { return m_pHatchList; } |
101 | | }; |
102 | | |
103 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxBitmapListItem final : public SfxPoolItem |
104 | | { |
105 | | XBitmapListRef m_pBitmapList; |
106 | | |
107 | | public: |
108 | | static SfxPoolItem* CreateDefault(); |
109 | | |
110 | | DECLARE_ITEM_TYPE_FUNCTION(SvxBitmapListItem) |
111 | | SvxBitmapListItem(); |
112 | | SvxBitmapListItem( XBitmapListRef pBL, |
113 | | TypedWhichId<SvxBitmapListItem> nWhich ); |
114 | | SvxBitmapListItem( const SvxBitmapListItem& ); |
115 | | |
116 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
117 | | MapUnit eCoreMetric, |
118 | | MapUnit ePresMetric, |
119 | | OUString &rText, const IntlWrapper& ) const override; |
120 | | |
121 | | virtual bool operator==( const SfxPoolItem& ) const override; |
122 | | virtual SvxBitmapListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
123 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
124 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
125 | | |
126 | 0 | const XBitmapListRef& GetBitmapList() const { return m_pBitmapList; } |
127 | | }; |
128 | | |
129 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxPatternListItem final : public SfxPoolItem |
130 | | { |
131 | | XPatternListRef m_pPatternList; |
132 | | |
133 | | public: |
134 | | static SfxPoolItem* CreateDefault(); |
135 | | |
136 | | DECLARE_ITEM_TYPE_FUNCTION(SvxPatternListItem) |
137 | | SvxPatternListItem(); |
138 | | SvxPatternListItem( XPatternListRef pBL, |
139 | | TypedWhichId<SvxPatternListItem> nWhich ); |
140 | | SvxPatternListItem( const SvxPatternListItem& ); |
141 | | |
142 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
143 | | MapUnit eCoreMetric, |
144 | | MapUnit ePresMetric, |
145 | | OUString &rText, const IntlWrapper& ) const override; |
146 | | virtual bool operator==( const SfxPoolItem& ) const override; |
147 | | virtual SvxPatternListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
148 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
149 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
150 | | |
151 | 0 | const XPatternListRef& GetPatternList() const { return m_pPatternList; } |
152 | | }; |
153 | | |
154 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxDashListItem final : public SfxPoolItem |
155 | | { |
156 | | XDashListRef m_pDashList; |
157 | | |
158 | | public: |
159 | | static SfxPoolItem* CreateDefault(); |
160 | | |
161 | | DECLARE_ITEM_TYPE_FUNCTION(SvxDashListItem) |
162 | | SvxDashListItem(); |
163 | | SvxDashListItem( XDashListRef pList, |
164 | | TypedWhichId<SvxDashListItem> nWhich ); |
165 | | SvxDashListItem( const SvxDashListItem& ); |
166 | | |
167 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
168 | | MapUnit eCoreMetric, |
169 | | MapUnit ePresMetric, |
170 | | OUString &rText, const IntlWrapper& ) const override; |
171 | | |
172 | | virtual bool operator==( const SfxPoolItem& ) const override; |
173 | | virtual SvxDashListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
174 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
175 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
176 | | |
177 | 0 | const XDashListRef& GetDashList() const { return m_pDashList; } |
178 | | }; |
179 | | |
180 | | class SAL_WARN_UNUSED SVXCORE_DLLPUBLIC SvxLineEndListItem final : public SfxPoolItem |
181 | | { |
182 | | XLineEndListRef m_pLineEndList; |
183 | | |
184 | | public: |
185 | | static SfxPoolItem* CreateDefault(); |
186 | | |
187 | | DECLARE_ITEM_TYPE_FUNCTION(SvxLineEndListItem) |
188 | | SvxLineEndListItem(); |
189 | | SvxLineEndListItem( XLineEndListRef pList, |
190 | | TypedWhichId<SvxLineEndListItem> nWhich ); |
191 | | SvxLineEndListItem( const SvxLineEndListItem& ); |
192 | | |
193 | | virtual bool GetPresentation( SfxItemPresentation ePres, |
194 | | MapUnit eCoreMetric, |
195 | | MapUnit ePresMetric, |
196 | | OUString &rText, const IntlWrapper& ) const override; |
197 | | |
198 | | virtual bool operator==( const SfxPoolItem& ) const override; |
199 | | virtual SvxLineEndListItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
200 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
201 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
202 | | |
203 | 0 | const XLineEndListRef& GetLineEndList() const { return m_pLineEndList; } |
204 | | }; |
205 | | |
206 | | #endif |
207 | | |
208 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |