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 
30 public:
31  static SfxPoolItem* CreateDefault();
32 
34  SvxColorListItem( XColorListRef const & pTable,
35  sal_uInt16 nWhich );
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 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;
47 
48  const XColorListRef& GetColorList() const { return pColorList; }
49 };
50 
52 {
54 
55 public:
56  static SfxPoolItem* CreateDefault();
57 
60  sal_uInt16 nWhich );
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 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;
72 
73  const XGradientListRef& GetGradientList() const { return pGradientList; }
74 };
75 
77 {
79 
80 public:
81  static SfxPoolItem* CreateDefault();
83  SvxHatchListItem( XHatchListRef const & pList,
84  sal_uInt16 nWhich );
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 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;
96 
97  const XHatchListRef& GetHatchList() const { return pHatchList; }
98 };
99 
101 {
103 
104 public:
105  static SfxPoolItem* CreateDefault();
106 
108  SvxBitmapListItem( XBitmapListRef const & pBL,
109  sal_uInt16 nWhich );
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 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;
121 
122  const XBitmapListRef& GetBitmapList() const { return pBitmapList; }
123 };
124 
126 {
128 
129 public:
130  static SfxPoolItem* CreateDefault();
131 
133  SvxPatternListItem( XPatternListRef const & pBL,
134  sal_uInt16 nWhich );
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 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;
145 
146  const XPatternListRef& GetPatternList() const { return pPatternList; }
147 };
148 
150 {
152 
153 public:
154  static SfxPoolItem* CreateDefault();
155 
156  SvxDashListItem();
157  SvxDashListItem( XDashListRef const & pList,
158  sal_uInt16 nWhich );
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 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;
170 
171  const XDashListRef& GetDashList() const { return pDashList; }
172 };
173 
175 {
177 
178 public:
179  static SfxPoolItem* CreateDefault();
180 
182  SvxLineEndListItem( XLineEndListRef const & pList,
183  sal_uInt16 nWhich );
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 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;
195 
196  const XLineEndListRef& GetLineEndList() const { return pLineEndList; }
197 };
198 
199 #endif
200 
201 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const XPatternListRef & GetPatternList() const
Definition: drawitem.hxx:146
virtual bool operator==(const SfxPoolItem &) const =0
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
XGradientListRef pGradientList
Definition: drawitem.hxx:53
const XGradientListRef & GetGradientList() const
Definition: drawitem.hxx:73
const XLineEndListRef & GetLineEndList() const
Definition: drawitem.hxx:196
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
XHatchListRef pHatchList
Definition: drawitem.hxx:78
const XHatchListRef & GetHatchList() const
Definition: drawitem.hxx:97
XColorListRef pColorList
Definition: drawitem.hxx:28
const XDashListRef & GetDashList() const
Definition: drawitem.hxx:171
SfxItemPresentation
const XColorListRef & GetColorList() const
Definition: drawitem.hxx:48
const XBitmapListRef & GetBitmapList() const
Definition: drawitem.hxx:122
XPatternListRef pPatternList
Definition: drawitem.hxx:127
#define SAL_WARN_UNUSED
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
unsigned char sal_uInt8
XLineEndListRef pLineEndList
Definition: drawitem.hxx:176
MapUnit
XBitmapListRef pBitmapList
Definition: drawitem.hxx:102
XDashListRef pDashList
Definition: drawitem.hxx:151