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 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/uno/Sequence.hxx>
25 #include <com/sun/star/drawing/LineDash.hpp>
26 #include <svx/svxdllapi.h>
32 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxColorListItem
: public SfxPoolItem
34 XColorListRef pColorList
;
39 SvxColorListItem( XColorListRef pTable
,
41 SvxColorListItem( const SvxColorListItem
& );
43 virtual bool GetPresentation( SfxItemPresentation ePres
,
44 SfxMapUnit eCoreMetric
,
45 SfxMapUnit ePresMetric
,
46 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
48 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
49 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
50 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
51 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
53 XColorListRef
GetColorList() const { return pColorList
; }
54 void SetColorList( const XColorListRef
&pTable
) { pColorList
= pTable
; }
57 // SvxGradientListItem
58 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxGradientListItem
: public SfxPoolItem
60 XGradientListRef pGradientList
;
64 SvxGradientListItem();
65 SvxGradientListItem( XGradientListRef pList
,
67 SvxGradientListItem( const SvxGradientListItem
& );
69 virtual bool GetPresentation( SfxItemPresentation ePres
,
70 SfxMapUnit eCoreMetric
,
71 SfxMapUnit ePresMetric
,
72 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
74 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
75 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
76 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
77 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
79 XGradientListRef
GetGradientList() const { return pGradientList
; }
80 void SetGradientList( XGradientListRef pList
) {
81 pGradientList
= pList
; }
88 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxHatchListItem
: public SfxPoolItem
90 XHatchListRef pHatchList
;
95 SvxHatchListItem( XHatchListRef pList
,
97 SvxHatchListItem( const SvxHatchListItem
& );
99 virtual bool GetPresentation( SfxItemPresentation ePres
,
100 SfxMapUnit eCoreMetric
,
101 SfxMapUnit ePresMetric
,
102 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
104 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
105 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
106 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
107 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
109 XHatchListRef
GetHatchList() const { return pHatchList
; }
110 void SetHatchList( XHatchListRef pList
) {
111 pHatchList
= pList
; }
119 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxBitmapListItem
: public SfxPoolItem
121 XBitmapListRef pBitmapList
;
126 SvxBitmapListItem( XBitmapListRef pBL
,
128 SvxBitmapListItem( const SvxBitmapListItem
& );
130 virtual bool GetPresentation( SfxItemPresentation ePres
,
131 SfxMapUnit eCoreMetric
,
132 SfxMapUnit ePresMetric
,
133 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
135 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
136 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
137 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
138 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
140 XBitmapListRef
GetBitmapList() const { return pBitmapList
; }
141 void SetBitmapList( XBitmapListRef pList
) {
142 pBitmapList
= pList
; }
150 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxDashListItem
: public SfxPoolItem
152 XDashListRef pDashList
;
157 SvxDashListItem( XDashListRef pList
,
159 SvxDashListItem( const SvxDashListItem
& );
161 virtual bool GetPresentation( SfxItemPresentation ePres
,
162 SfxMapUnit eCoreMetric
,
163 SfxMapUnit ePresMetric
,
164 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
166 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
167 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
168 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
169 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
171 XDashListRef
GetDashList() const { return pDashList
; }
176 // SvxLineEndListItem
178 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxLineEndListItem
: public SfxPoolItem
180 XLineEndListRef pLineEndList
;
184 SvxLineEndListItem();
185 SvxLineEndListItem( XLineEndListRef pList
,
187 SvxLineEndListItem( const SvxLineEndListItem
& );
189 virtual bool GetPresentation( SfxItemPresentation ePres
,
190 SfxMapUnit eCoreMetric
,
191 SfxMapUnit ePresMetric
,
192 OUString
&rText
, const IntlWrapper
* = 0 ) const SAL_OVERRIDE
;
194 virtual bool operator==( const SfxPoolItem
& ) const SAL_OVERRIDE
;
195 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const SAL_OVERRIDE
;
196 virtual bool QueryValue( com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const SAL_OVERRIDE
;
197 virtual bool PutValue( const com::sun::star::uno::Any
& rVal
, sal_uInt8 nMemberId
) SAL_OVERRIDE
;
199 XLineEndListRef
GetLineEndList() const { return pLineEndList
; }
200 void SetLineEndList( XLineEndListRef pList
) {
201 pLineEndList
= pList
; }
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */