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/drawing/LineDash.hpp>
25 #include <svx/svxdllapi.h>
27 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxColorListItem
: public SfxPoolItem
29 XColorListRef pColorList
;
32 static SfxPoolItem
* CreateDefault();
35 SvxColorListItem( XColorListRef
const & pTable
,
37 SvxColorListItem( const SvxColorListItem
& );
39 virtual bool GetPresentation( SfxItemPresentation ePres
,
42 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
44 virtual bool operator==( const SfxPoolItem
& ) const override
;
45 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
46 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
47 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
49 const XColorListRef
& GetColorList() const { return pColorList
; }
52 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxGradientListItem
: public SfxPoolItem
54 XGradientListRef pGradientList
;
57 static SfxPoolItem
* CreateDefault();
59 SvxGradientListItem();
60 SvxGradientListItem( XGradientListRef
const & pList
,
62 SvxGradientListItem( const SvxGradientListItem
& );
64 virtual bool GetPresentation( SfxItemPresentation ePres
,
67 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
69 virtual bool operator==( const SfxPoolItem
& ) const override
;
70 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
71 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
72 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
74 const XGradientListRef
& GetGradientList() const { return pGradientList
; }
77 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxHatchListItem
: public SfxPoolItem
79 XHatchListRef pHatchList
;
82 static SfxPoolItem
* CreateDefault();
84 SvxHatchListItem( XHatchListRef
const & pList
,
86 SvxHatchListItem( const SvxHatchListItem
& );
88 virtual bool GetPresentation( SfxItemPresentation ePres
,
91 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
93 virtual bool operator==( const SfxPoolItem
& ) const override
;
94 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
95 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
96 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
98 const XHatchListRef
& GetHatchList() const { return pHatchList
; }
101 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxBitmapListItem
: public SfxPoolItem
103 XBitmapListRef pBitmapList
;
106 static SfxPoolItem
* CreateDefault();
109 SvxBitmapListItem( XBitmapListRef
const & pBL
,
111 SvxBitmapListItem( const SvxBitmapListItem
& );
113 virtual bool GetPresentation( SfxItemPresentation ePres
,
116 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
118 virtual bool operator==( const SfxPoolItem
& ) const override
;
119 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
120 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
121 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
123 const XBitmapListRef
& GetBitmapList() const { return pBitmapList
; }
126 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxPatternListItem
: public SfxPoolItem
128 XPatternListRef pPatternList
;
131 static SfxPoolItem
* CreateDefault();
133 SvxPatternListItem();
134 SvxPatternListItem( XPatternListRef
const & pBL
,
136 SvxPatternListItem( const SvxPatternListItem
& );
138 virtual bool GetPresentation( SfxItemPresentation ePres
,
141 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
142 virtual bool operator==( const SfxPoolItem
& ) const override
;
143 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
144 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
145 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
147 const XPatternListRef
& GetPatternList() const { return pPatternList
; }
150 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxDashListItem
: public SfxPoolItem
152 XDashListRef pDashList
;
155 static SfxPoolItem
* CreateDefault();
158 SvxDashListItem( XDashListRef
const & pList
,
160 SvxDashListItem( const SvxDashListItem
& );
162 virtual bool GetPresentation( SfxItemPresentation ePres
,
165 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
167 virtual bool operator==( const SfxPoolItem
& ) const override
;
168 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
169 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
170 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
172 const XDashListRef
& GetDashList() const { return pDashList
; }
175 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxLineEndListItem
: public SfxPoolItem
177 XLineEndListRef pLineEndList
;
180 static SfxPoolItem
* CreateDefault();
182 SvxLineEndListItem();
183 SvxLineEndListItem( XLineEndListRef
const & pList
,
185 SvxLineEndListItem( const SvxLineEndListItem
& );
187 virtual bool GetPresentation( SfxItemPresentation ePres
,
190 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
192 virtual bool operator==( const SfxPoolItem
& ) const override
;
193 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
194 virtual bool QueryValue( css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
195 virtual bool PutValue( const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
197 const XLineEndListRef
& GetLineEndList() const { return pLineEndList
; }
202 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */