bump product version to 4.1.6.2
[LibreOffice.git] / include / svx / drawitem.hxx
blob16447dce67ccf093c22887d6a1ced7a370071c75
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 _SVX_DRAWITEM_HXX
20 #define _SVX_DRAWITEM_HXX
22 #include <svl/poolitem.hxx>
23 #include <svx/xtable.hxx>
24 #include <com/sun/star/uno/Sequence.hxx>
25 #include <com/sun/star/drawing/LineDash.hpp>
26 #include "svx/svxdllapi.h"
28 //==================================================================
29 // SvxColorListItem
30 //==================================================================
32 class SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem
34 XColorListRef pColorList;
36 public:
37 TYPEINFO();
38 SvxColorListItem();
39 SvxColorListItem( XColorListRef pTable,
40 sal_uInt16 nWhich );
41 SvxColorListItem( const SvxColorListItem& );
43 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
44 SfxMapUnit eCoreMetric,
45 SfxMapUnit ePresMetric,
46 OUString &rText, const IntlWrapper * = 0 ) const;
48 virtual int operator==( const SfxPoolItem& ) const;
49 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
50 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
51 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
53 XColorListRef GetColorList() const { return pColorList; }
54 void SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
58 //==================================================================
59 // SvxGradientListItem
60 //==================================================================
62 class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
64 XGradientListRef pGradientList;
66 public:
67 TYPEINFO();
68 SvxGradientListItem();
69 SvxGradientListItem( XGradientListRef pList,
70 sal_uInt16 nWhich );
71 SvxGradientListItem( const SvxGradientListItem& );
73 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
74 SfxMapUnit eCoreMetric,
75 SfxMapUnit ePresMetric,
76 OUString &rText, const IntlWrapper * = 0 ) const;
78 virtual int operator==( const SfxPoolItem& ) const;
79 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
80 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
81 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
83 XGradientListRef GetGradientList() const { return pGradientList; }
84 void SetGradientList( XGradientListRef pList ) {
85 pGradientList = pList; }
89 //==================================================================
90 // SvxHatchListItem
91 //==================================================================
92 class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem
94 XHatchListRef pHatchList;
96 public:
97 TYPEINFO();
98 SvxHatchListItem();
99 SvxHatchListItem( XHatchListRef pList,
100 sal_uInt16 nWhich );
101 SvxHatchListItem( const SvxHatchListItem& );
103 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
104 SfxMapUnit eCoreMetric,
105 SfxMapUnit ePresMetric,
106 OUString &rText, const IntlWrapper * = 0 ) const;
108 virtual int operator==( const SfxPoolItem& ) const;
109 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
110 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
111 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
113 XHatchListRef GetHatchList() const { return pHatchList; }
114 void SetHatchList( XHatchListRef pList ) {
115 pHatchList = pList; }
120 //==================================================================
121 // SvxBitmapListItem
122 //==================================================================
123 class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem
125 XBitmapListRef pBitmapList;
127 public:
128 TYPEINFO();
129 SvxBitmapListItem();
130 SvxBitmapListItem( XBitmapListRef pBL,
131 sal_uInt16 nWhich );
132 SvxBitmapListItem( const SvxBitmapListItem& );
134 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
135 SfxMapUnit eCoreMetric,
136 SfxMapUnit ePresMetric,
137 OUString &rText, const IntlWrapper * = 0 ) const;
139 virtual int operator==( const SfxPoolItem& ) const;
140 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
141 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
142 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
144 XBitmapListRef GetBitmapList() const { return pBitmapList; }
145 void SetBitmapList( XBitmapListRef pList ) {
146 pBitmapList = pList; }
151 //==================================================================
152 // SvxDashListItem
153 //==================================================================
154 class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem
156 XDashListRef pDashList;
158 public:
159 TYPEINFO();
160 SvxDashListItem();
161 SvxDashListItem( XDashListRef pList,
162 sal_uInt16 nWhich );
163 SvxDashListItem( const SvxDashListItem& );
165 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
166 SfxMapUnit eCoreMetric,
167 SfxMapUnit ePresMetric,
168 OUString &rText, const IntlWrapper * = 0 ) const;
170 virtual int operator==( const SfxPoolItem& ) const;
171 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
172 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
173 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
175 XDashListRef GetDashList() const { return pDashList; }
179 //==================================================================
180 // SvxLineEndListItem
181 //==================================================================
182 class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem
184 XLineEndListRef pLineEndList;
186 public:
187 TYPEINFO();
188 SvxLineEndListItem();
189 SvxLineEndListItem( XLineEndListRef pList,
190 sal_uInt16 nWhich );
191 SvxLineEndListItem( const SvxLineEndListItem& );
193 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
194 SfxMapUnit eCoreMetric,
195 SfxMapUnit ePresMetric,
196 OUString &rText, const IntlWrapper * = 0 ) const;
198 virtual int operator==( const SfxPoolItem& ) const;
199 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
200 virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
201 virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
203 XLineEndListRef GetLineEndList() const { return pLineEndList; }
204 void SetLineEndList( XLineEndListRef pList ) {
205 pLineEndList = pList; }
211 #endif
213 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */