LibreOffice Module svx (master) 1
drawitem.hxx
Go to the documentation of this file.
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
27{
29
30public:
31 static SfxPoolItem* CreateDefault();
32
37
38 virtual bool GetPresentation( SfxItemPresentation ePres,
39 MapUnit eCoreMetric,
40 MapUnit ePresMetric,
41 OUString &rText, const IntlWrapper& ) const override;
42
43 virtual bool operator==( const SfxPoolItem& ) const override;
44 virtual SvxColorListItem* 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;
47
48 const XColorListRef& GetColorList() const { return pColorList; }
49};
50
52{
54
55public:
56 static SfxPoolItem* CreateDefault();
57
62
63 virtual bool GetPresentation( SfxItemPresentation ePres,
64 MapUnit eCoreMetric,
65 MapUnit ePresMetric,
66 OUString &rText, const IntlWrapper& ) const override;
67
68 virtual bool operator==( const SfxPoolItem& ) const override;
69 virtual SvxGradientListItem* 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;
72
73 const XGradientListRef& GetGradientList() const { return pGradientList; }
74};
75
77{
79
80public:
81 static SfxPoolItem* CreateDefault();
86
87 virtual bool GetPresentation( SfxItemPresentation ePres,
88 MapUnit eCoreMetric,
89 MapUnit ePresMetric,
90 OUString &rText, const IntlWrapper& ) const override;
91
92 virtual bool operator==( const SfxPoolItem& ) const override;
93 virtual SvxHatchListItem* 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;
96
97 const XHatchListRef& GetHatchList() const { return pHatchList; }
98};
99
101{
103
104public:
105 static SfxPoolItem* CreateDefault();
106
111
112 virtual bool GetPresentation( SfxItemPresentation ePres,
113 MapUnit eCoreMetric,
114 MapUnit ePresMetric,
115 OUString &rText, const IntlWrapper& ) const override;
116
117 virtual bool operator==( const SfxPoolItem& ) const override;
118 virtual SvxBitmapListItem* 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;
121
122 const XBitmapListRef& GetBitmapList() const { return pBitmapList; }
123};
124
126{
128
129public:
130 static SfxPoolItem* CreateDefault();
131
136
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 SvxPatternListItem* 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;
145
146 const XPatternListRef& GetPatternList() const { return pPatternList; }
147};
148
150{
152
153public:
154 static SfxPoolItem* CreateDefault();
155
160
161 virtual bool GetPresentation( SfxItemPresentation ePres,
162 MapUnit eCoreMetric,
163 MapUnit ePresMetric,
164 OUString &rText, const IntlWrapper& ) const override;
165
166 virtual bool operator==( const SfxPoolItem& ) const override;
167 virtual SvxDashListItem* 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;
170
171 const XDashListRef& GetDashList() const { return pDashList; }
172};
173
175{
177
178public:
179 static SfxPoolItem* CreateDefault();
180
185
186 virtual bool GetPresentation( SfxItemPresentation ePres,
187 MapUnit eCoreMetric,
188 MapUnit ePresMetric,
189 OUString &rText, const IntlWrapper& ) const override;
190
191 virtual bool operator==( const SfxPoolItem& ) const override;
192 virtual SvxLineEndListItem* 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;
195
196 const XLineEndListRef& GetLineEndList() const { return pLineEndList; }
197};
198
199#endif
200
201/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
virtual bool operator==(const SfxPoolItem &) const=0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
const XBitmapListRef & GetBitmapList() const
Definition: drawitem.hxx:122
XBitmapListRef pBitmapList
Definition: drawitem.hxx:102
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
XColorListRef pColorList
Definition: drawitem.hxx:28
const XColorListRef & GetColorList() const
Definition: drawitem.hxx:48
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
const XDashListRef & GetDashList() const
Definition: drawitem.hxx:171
XDashListRef pDashList
Definition: drawitem.hxx:151
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
const XGradientListRef & GetGradientList() const
Definition: drawitem.hxx:73
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
XGradientListRef pGradientList
Definition: drawitem.hxx:53
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
XHatchListRef pHatchList
Definition: drawitem.hxx:78
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
const XHatchListRef & GetHatchList() const
Definition: drawitem.hxx:97
const XLineEndListRef & GetLineEndList() const
Definition: drawitem.hxx:196
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
XLineEndListRef pLineEndList
Definition: drawitem.hxx:176
XPatternListRef pPatternList
Definition: drawitem.hxx:127
const XPatternListRef & GetPatternList() const
Definition: drawitem.hxx:146
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
MapUnit
SfxItemPresentation
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
unsigned char sal_uInt8
#define SAL_WARN_UNUSED