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 <svx/svxdllapi.h>
26 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxColorListItem final
: public SfxPoolItem
28 XColorListRef pColorList
;
31 static SfxPoolItem
* CreateDefault();
34 SvxColorListItem( XColorListRef
const & pTable
,
36 SvxColorListItem( const SvxColorListItem
& );
38 virtual bool GetPresentation( SfxItemPresentation ePres
,
41 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
48 const XColorListRef
& GetColorList() const { return pColorList
; }
51 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxGradientListItem final
: public SfxPoolItem
53 XGradientListRef pGradientList
;
56 static SfxPoolItem
* CreateDefault();
58 SvxGradientListItem();
59 SvxGradientListItem( XGradientListRef
const & pList
,
61 SvxGradientListItem( const SvxGradientListItem
& );
63 virtual bool GetPresentation( SfxItemPresentation ePres
,
66 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
73 const XGradientListRef
& GetGradientList() const { return pGradientList
; }
76 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxHatchListItem final
: public SfxPoolItem
78 XHatchListRef pHatchList
;
81 static SfxPoolItem
* CreateDefault();
83 SvxHatchListItem( XHatchListRef
const & pList
,
85 SvxHatchListItem( const SvxHatchListItem
& );
87 virtual bool GetPresentation( SfxItemPresentation ePres
,
90 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
97 const XHatchListRef
& GetHatchList() const { return pHatchList
; }
100 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapListItem final
: public SfxPoolItem
102 XBitmapListRef pBitmapList
;
105 static SfxPoolItem
* CreateDefault();
108 SvxBitmapListItem( XBitmapListRef
const & pBL
,
110 SvxBitmapListItem( const SvxBitmapListItem
& );
112 virtual bool GetPresentation( SfxItemPresentation ePres
,
115 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
122 const XBitmapListRef
& GetBitmapList() const { return pBitmapList
; }
125 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxPatternListItem final
: public SfxPoolItem
127 XPatternListRef pPatternList
;
130 static SfxPoolItem
* CreateDefault();
132 SvxPatternListItem();
133 SvxPatternListItem( XPatternListRef
const & pBL
,
135 SvxPatternListItem( const SvxPatternListItem
& );
137 virtual bool GetPresentation( SfxItemPresentation ePres
,
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
;
146 const XPatternListRef
& GetPatternList() const { return pPatternList
; }
149 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxDashListItem final
: public SfxPoolItem
151 XDashListRef pDashList
;
154 static SfxPoolItem
* CreateDefault();
157 SvxDashListItem( XDashListRef
const & pList
,
159 SvxDashListItem( const SvxDashListItem
& );
161 virtual bool GetPresentation( SfxItemPresentation ePres
,
164 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
171 const XDashListRef
& GetDashList() const { return pDashList
; }
174 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndListItem final
: public SfxPoolItem
176 XLineEndListRef pLineEndList
;
179 static SfxPoolItem
* CreateDefault();
181 SvxLineEndListItem();
182 SvxLineEndListItem( XLineEndListRef
const & pList
,
184 SvxLineEndListItem( const SvxLineEndListItem
& );
186 virtual bool GetPresentation( SfxItemPresentation ePres
,
189 OUString
&rText
, const IntlWrapper
& ) const override
;
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
;
196 const XLineEndListRef
& GetLineEndList() const { return pLineEndList
; }
201 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */