update emoji autocorrect entries from po-files
[LibreOffice.git] / include / svx / drawitem.hxx
blobe22cac825864d393b9068e5ba6aaa571ef405039
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 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>
29 // SvxColorListItem
32 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxColorListItem: public SfxPoolItem
34 XColorListRef pColorList;
36 public:
37 TYPEINFO_OVERRIDE();
38 SvxColorListItem();
39 SvxColorListItem( XColorListRef pTable,
40 sal_uInt16 nWhich );
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;
62 public:
63 TYPEINFO_OVERRIDE();
64 SvxGradientListItem();
65 SvxGradientListItem( XGradientListRef pList,
66 sal_uInt16 nWhich );
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; }
86 // SvxHatchListItem
88 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxHatchListItem : public SfxPoolItem
90 XHatchListRef pHatchList;
92 public:
93 TYPEINFO_OVERRIDE();
94 SvxHatchListItem();
95 SvxHatchListItem( XHatchListRef pList,
96 sal_uInt16 nWhich );
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; }
117 // SvxBitmapListItem
119 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxBitmapListItem : public SfxPoolItem
121 XBitmapListRef pBitmapList;
123 public:
124 TYPEINFO_OVERRIDE();
125 SvxBitmapListItem();
126 SvxBitmapListItem( XBitmapListRef pBL,
127 sal_uInt16 nWhich );
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; }
148 // SvxDashListItem
150 class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxDashListItem : public SfxPoolItem
152 XDashListRef pDashList;
154 public:
155 TYPEINFO_OVERRIDE();
156 SvxDashListItem();
157 SvxDashListItem( XDashListRef pList,
158 sal_uInt16 nWhich );
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;
182 public:
183 TYPEINFO_OVERRIDE();
184 SvxLineEndListItem();
185 SvxLineEndListItem( XLineEndListRef pList,
186 sal_uInt16 nWhich );
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; }
207 #endif
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */