1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 //==================================================================
30 //==================================================================
32 class SVX_DLLPUBLIC SvxColorListItem
: public SfxPoolItem
34 XColorListRef pColorList
;
39 SvxColorListItem( XColorListRef pTable
,
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
;
68 SvxGradientListItem();
69 SvxGradientListItem( XGradientListRef pList
,
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 //==================================================================
91 //==================================================================
92 class SVX_DLLPUBLIC SvxHatchListItem
: public SfxPoolItem
94 XHatchListRef pHatchList
;
99 SvxHatchListItem( XHatchListRef pList
,
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 //==================================================================
122 //==================================================================
123 class SVX_DLLPUBLIC SvxBitmapListItem
: public SfxPoolItem
125 XBitmapListRef pBitmapList
;
130 SvxBitmapListItem( XBitmapListRef pBL
,
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 //==================================================================
153 //==================================================================
154 class SVX_DLLPUBLIC SvxDashListItem
: public SfxPoolItem
156 XDashListRef pDashList
;
161 SvxDashListItem( XDashListRef pList
,
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
;
188 SvxLineEndListItem();
189 SvxLineEndListItem( XLineEndListRef pList
,
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
; }
213 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */