follow org.freedesktop.appearance.color-scheme setting
[LibreOffice.git] / include / sfx2 / watermarkitem.hxx
blobc298894bb51897f205bddaf3b4a3aaacb695886e
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.
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
12 #include <sfx2/dllapi.h>
13 #include <svl/poolitem.hxx>
14 #include <tools/color.hxx>
16 class SFX2_DLLPUBLIC SfxWatermarkItem final : public SfxPoolItem
18 public:
19 static SfxPoolItem* CreateDefault();
20 SfxWatermarkItem();
21 virtual SfxWatermarkItem* Clone( SfxItemPool *pPool = nullptr ) const override;
22 virtual bool operator==( const SfxPoolItem& ) const override;
23 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
24 virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
26 OUString const & GetText() const { return m_aText; }
27 void SetText(const OUString& aText) { m_aText = aText; }
28 OUString const & GetFont() const { return m_aFont; }
29 void SetFont(const OUString& aFont) { m_aFont = aFont; }
30 sal_Int16 GetAngle() const { return m_nAngle; }
31 void SetAngle(const sal_Int16 nAngle) { m_nAngle = nAngle; }
32 sal_Int16 GetTransparency() const { return m_nTransparency; }
33 void SetTransparency(const sal_Int16 nTransparency) { m_nTransparency = nTransparency; }
34 Color GetColor() const { return m_nColor; }
35 void SetColor(Color nColor) { m_nColor = nColor; }
37 private:
38 OUString m_aText;
39 OUString m_aFont;
40 sal_Int16 m_nAngle;
41 sal_Int16 m_nTransparency;
42 Color m_nColor;
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */