/src/libreoffice/include/sfx2/watermarkitem.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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/. |
8 | | */ |
9 | | #ifndef INCLUDED_SFX2_WATERMARKITEM_HXX |
10 | | #define INCLUDED_SFX2_WATERMARKITEM_HXX |
11 | | |
12 | | #include <sfx2/dllapi.h> |
13 | | #include <svl/poolitem.hxx> |
14 | | #include <tools/color.hxx> |
15 | | |
16 | | class SFX2_DLLPUBLIC SfxWatermarkItem final : public SfxPoolItem |
17 | | { |
18 | | public: |
19 | | static SfxPoolItem* CreateDefault(); |
20 | | DECLARE_ITEM_TYPE_FUNCTION(SfxWatermarkItem) |
21 | | SfxWatermarkItem(); |
22 | | virtual SfxWatermarkItem* Clone( SfxItemPool *pPool = nullptr ) const override; |
23 | | virtual bool operator==( const SfxPoolItem& ) const override; |
24 | | virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |
25 | | virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; |
26 | | |
27 | 0 | OUString const & GetText() const { return m_aText; } |
28 | 0 | void SetText(const OUString& aText) { m_aText = aText; } |
29 | 0 | OUString const & GetFont() const { return m_aFont; } |
30 | 0 | void SetFont(const OUString& aFont) { m_aFont = aFont; } |
31 | 0 | sal_Int16 GetAngle() const { return m_nAngle; } |
32 | 0 | void SetAngle(const sal_Int16 nAngle) { m_nAngle = nAngle; } |
33 | 0 | sal_Int16 GetTransparency() const { return m_nTransparency; } |
34 | 0 | void SetTransparency(const sal_Int16 nTransparency) { m_nTransparency = nTransparency; } |
35 | 0 | Color GetColor() const { return m_nColor; } |
36 | 0 | void SetColor(Color nColor) { m_nColor = nColor; } |
37 | | |
38 | | private: |
39 | | OUString m_aText; |
40 | | OUString m_aFont; |
41 | | sal_Int16 m_nAngle; |
42 | | sal_Int16 m_nTransparency; |
43 | | Color m_nColor; |
44 | | }; |
45 | | |
46 | | #endif |
47 | | |
48 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |