LibreOffice Module sfx2 (master) 1
watermarkitem.hxx
Go to the documentation of this file.
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
17{
18public:
19 static SfxPoolItem* CreateDefault();
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;
25
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; }
36
37private:
38 OUString m_aText;
39 OUString m_aFont;
40 sal_Int16 m_nAngle;
41 sal_Int16 m_nTransparency;
43};
44
45#endif
46
47/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual bool operator==(const SfxPoolItem &) const=0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
void SetFont(const OUString &aFont)
sal_Int16 m_nTransparency
sal_Int16 GetTransparency() const
OUString const & GetFont() const
void SetAngle(const sal_Int16 nAngle)
OUString const & GetText() const
void SetTransparency(const sal_Int16 nTransparency)
void SetColor(Color nColor)
void SetText(const OUString &aText)
sal_Int16 GetAngle() const
Color GetColor() const
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
Font m_aFont
unsigned char sal_uInt8