Bump version to 6.4-15
[LibreOffice.git] / include / svx / drawitem.hxx
blobf49c0833a2527b0fd124084e9ab597f3b6dbf990
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVX_DRAWITEM_HXX
20 #define INCLUDED_SVX_DRAWITEM_HXX
22 #include <svl/poolitem.hxx>
23 #include <svx/xtable.hxx>
24 #include <svx/svxdllapi.h>
26 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxColorListItem final : public SfxPoolItem
28 XColorListRef pColorList;
30 public:
31 static SfxPoolItem* CreateDefault();
33 SvxColorListItem();
34 SvxColorListItem( XColorListRef const & pTable,
35 sal_uInt16 nWhich );
36 SvxColorListItem( const SvxColorListItem& );
38 virtual bool GetPresentation( SfxItemPresentation ePres,
39 MapUnit eCoreMetric,
40 MapUnit ePresMetric,
41 OUString &rText, const IntlWrapper& ) const override;
43 virtual bool operator==( const SfxPoolItem& ) const override;
44 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
45 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
46 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
48 const XColorListRef& GetColorList() const { return pColorList; }
51 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxGradientListItem final : public SfxPoolItem
53 XGradientListRef pGradientList;
55 public:
56 static SfxPoolItem* CreateDefault();
58 SvxGradientListItem();
59 SvxGradientListItem( XGradientListRef const & pList,
60 sal_uInt16 nWhich );
61 SvxGradientListItem( const SvxGradientListItem& );
63 virtual bool GetPresentation( SfxItemPresentation ePres,
64 MapUnit eCoreMetric,
65 MapUnit ePresMetric,
66 OUString &rText, const IntlWrapper& ) const override;
68 virtual bool operator==( const SfxPoolItem& ) const override;
69 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
70 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
71 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
73 const XGradientListRef& GetGradientList() const { return pGradientList; }
76 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxHatchListItem final : public SfxPoolItem
78 XHatchListRef pHatchList;
80 public:
81 static SfxPoolItem* CreateDefault();
82 SvxHatchListItem();
83 SvxHatchListItem( XHatchListRef const & pList,
84 sal_uInt16 nWhich );
85 SvxHatchListItem( const SvxHatchListItem& );
87 virtual bool GetPresentation( SfxItemPresentation ePres,
88 MapUnit eCoreMetric,
89 MapUnit ePresMetric,
90 OUString &rText, const IntlWrapper& ) const override;
92 virtual bool operator==( const SfxPoolItem& ) const override;
93 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
94 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
95 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
97 const XHatchListRef& GetHatchList() const { return pHatchList; }
100 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapListItem final : public SfxPoolItem
102 XBitmapListRef pBitmapList;
104 public:
105 static SfxPoolItem* CreateDefault();
107 SvxBitmapListItem();
108 SvxBitmapListItem( XBitmapListRef const & pBL,
109 sal_uInt16 nWhich );
110 SvxBitmapListItem( const SvxBitmapListItem& );
112 virtual bool GetPresentation( SfxItemPresentation ePres,
113 MapUnit eCoreMetric,
114 MapUnit ePresMetric,
115 OUString &rText, const IntlWrapper& ) const override;
117 virtual bool operator==( const SfxPoolItem& ) const override;
118 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
119 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
120 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
122 const XBitmapListRef& GetBitmapList() const { return pBitmapList; }
125 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxPatternListItem final : public SfxPoolItem
127 XPatternListRef pPatternList;
129 public:
130 static SfxPoolItem* CreateDefault();
132 SvxPatternListItem();
133 SvxPatternListItem( XPatternListRef const & pBL,
134 sal_uInt16 nWhich );
135 SvxPatternListItem( const SvxPatternListItem& );
137 virtual bool GetPresentation( SfxItemPresentation ePres,
138 MapUnit eCoreMetric,
139 MapUnit ePresMetric,
140 OUString &rText, const IntlWrapper& ) const override;
141 virtual bool operator==( const SfxPoolItem& ) const override;
142 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
143 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
144 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
146 const XPatternListRef& GetPatternList() const { return pPatternList; }
149 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxDashListItem final : public SfxPoolItem
151 XDashListRef pDashList;
153 public:
154 static SfxPoolItem* CreateDefault();
156 SvxDashListItem();
157 SvxDashListItem( XDashListRef const & pList,
158 sal_uInt16 nWhich );
159 SvxDashListItem( const SvxDashListItem& );
161 virtual bool GetPresentation( SfxItemPresentation ePres,
162 MapUnit eCoreMetric,
163 MapUnit ePresMetric,
164 OUString &rText, const IntlWrapper& ) const override;
166 virtual bool operator==( const SfxPoolItem& ) const override;
167 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
168 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
169 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
171 const XDashListRef& GetDashList() const { return pDashList; }
174 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndListItem final : public SfxPoolItem
176 XLineEndListRef pLineEndList;
178 public:
179 static SfxPoolItem* CreateDefault();
181 SvxLineEndListItem();
182 SvxLineEndListItem( XLineEndListRef const & pList,
183 sal_uInt16 nWhich );
184 SvxLineEndListItem( const SvxLineEndListItem& );
186 virtual bool GetPresentation( SfxItemPresentation ePres,
187 MapUnit eCoreMetric,
188 MapUnit ePresMetric,
189 OUString &rText, const IntlWrapper& ) const override;
191 virtual bool operator==( const SfxPoolItem& ) const override;
192 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
193 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
194 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
196 const XLineEndListRef& GetLineEndList() const { return pLineEndList; }
199 #endif
201 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */