Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / drawitem.hxx
blob8444ee1f887fa1defc75e55d8a351771c2d0f8ae
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 <com/sun/star/drawing/LineDash.hpp>
25 #include <svx/svxdllapi.h>
27 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem
29 XColorListRef pColorList;
31 public:
32 static SfxPoolItem* CreateDefault();
34 SvxColorListItem();
35 SvxColorListItem( XColorListRef const & pTable,
36 sal_uInt16 nWhich );
37 SvxColorListItem( const SvxColorListItem& );
39 virtual bool GetPresentation( SfxItemPresentation ePres,
40 MapUnit eCoreMetric,
41 MapUnit ePresMetric,
42 OUString &rText, const IntlWrapper * = nullptr ) const override;
44 virtual bool operator==( const SfxPoolItem& ) const override;
45 virtual SfxPoolItem* 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;
49 const XColorListRef& GetColorList() const { return pColorList; }
52 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxGradientListItem : public SfxPoolItem
54 XGradientListRef pGradientList;
56 public:
57 static SfxPoolItem* CreateDefault();
59 SvxGradientListItem();
60 SvxGradientListItem( XGradientListRef const & pList,
61 sal_uInt16 nWhich );
62 SvxGradientListItem( const SvxGradientListItem& );
64 virtual bool GetPresentation( SfxItemPresentation ePres,
65 MapUnit eCoreMetric,
66 MapUnit ePresMetric,
67 OUString &rText, const IntlWrapper * = nullptr ) const override;
69 virtual bool operator==( const SfxPoolItem& ) const override;
70 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
71 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
72 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
74 const XGradientListRef& GetGradientList() const { return pGradientList; }
77 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxHatchListItem : public SfxPoolItem
79 XHatchListRef pHatchList;
81 public:
82 static SfxPoolItem* CreateDefault();
83 SvxHatchListItem();
84 SvxHatchListItem( XHatchListRef const & pList,
85 sal_uInt16 nWhich );
86 SvxHatchListItem( const SvxHatchListItem& );
88 virtual bool GetPresentation( SfxItemPresentation ePres,
89 MapUnit eCoreMetric,
90 MapUnit ePresMetric,
91 OUString &rText, const IntlWrapper * = nullptr ) const override;
93 virtual bool operator==( const SfxPoolItem& ) const override;
94 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
95 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
96 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
98 const XHatchListRef& GetHatchList() const { return pHatchList; }
101 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapListItem : public SfxPoolItem
103 XBitmapListRef pBitmapList;
105 public:
106 static SfxPoolItem* CreateDefault();
108 SvxBitmapListItem();
109 SvxBitmapListItem( XBitmapListRef const & pBL,
110 sal_uInt16 nWhich );
111 SvxBitmapListItem( const SvxBitmapListItem& );
113 virtual bool GetPresentation( SfxItemPresentation ePres,
114 MapUnit eCoreMetric,
115 MapUnit ePresMetric,
116 OUString &rText, const IntlWrapper * = nullptr ) const override;
118 virtual bool operator==( const SfxPoolItem& ) const override;
119 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
120 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
121 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
123 const XBitmapListRef& GetBitmapList() const { return pBitmapList; }
126 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxPatternListItem : public SfxPoolItem
128 XPatternListRef pPatternList;
130 public:
131 static SfxPoolItem* CreateDefault();
133 SvxPatternListItem();
134 SvxPatternListItem( XPatternListRef const & pBL,
135 sal_uInt16 nWhich );
136 SvxPatternListItem( const SvxPatternListItem& );
138 virtual bool GetPresentation( SfxItemPresentation ePres,
139 MapUnit eCoreMetric,
140 MapUnit ePresMetric,
141 OUString &rText, const IntlWrapper * = nullptr ) const override;
142 virtual bool operator==( const SfxPoolItem& ) const override;
143 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
144 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
145 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
147 const XPatternListRef& GetPatternList() const { return pPatternList; }
150 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxDashListItem : public SfxPoolItem
152 XDashListRef pDashList;
154 public:
155 static SfxPoolItem* CreateDefault();
157 SvxDashListItem();
158 SvxDashListItem( XDashListRef const & pList,
159 sal_uInt16 nWhich );
160 SvxDashListItem( const SvxDashListItem& );
162 virtual bool GetPresentation( SfxItemPresentation ePres,
163 MapUnit eCoreMetric,
164 MapUnit ePresMetric,
165 OUString &rText, const IntlWrapper * = nullptr ) const override;
167 virtual bool operator==( const SfxPoolItem& ) const override;
168 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
169 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
170 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
172 const XDashListRef& GetDashList() const { return pDashList; }
175 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndListItem : public SfxPoolItem
177 XLineEndListRef pLineEndList;
179 public:
180 static SfxPoolItem* CreateDefault();
182 SvxLineEndListItem();
183 SvxLineEndListItem( XLineEndListRef const & pList,
184 sal_uInt16 nWhich );
185 SvxLineEndListItem( const SvxLineEndListItem& );
187 virtual bool GetPresentation( SfxItemPresentation ePres,
188 MapUnit eCoreMetric,
189 MapUnit ePresMetric,
190 OUString &rText, const IntlWrapper * = nullptr ) const override;
192 virtual bool operator==( const SfxPoolItem& ) const override;
193 virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
194 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
195 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
197 const XLineEndListRef& GetLineEndList() const { return pLineEndList; }
200 #endif
202 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */