summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-05-19 00:18:15 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-06-01 08:10:00 +0200
commit489597d339af14a6403ee079bea35908112720ec (patch)
tree86fff09ced71a625e030cdc2325e1644ba5c1cd3 /include
parentabf39e521178e3438dc507167e18a24d160b3fd5 (diff)
Watermark: extended configuration
* it is possible to set font family, color, angle and transparency Change-Id: Idea2fb9ee748394bb3d706fa790e109238584cdb Reviewed-on: https://gerrit.libreoffice.org/37793 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sfxsids.hrc8
-rw-r--r--include/sfx2/watermarkitem.hxx16
2 files changed, 18 insertions, 6 deletions
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index dbd8ab6ef39d..cfc59403d198 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -344,7 +344,10 @@
#define SID_INSERT_FLOATINGFRAME (SID_SFX_START + 563)
#define SID_CLASSIFICATION_APPLY (SID_SFX_START + 672)
#define SID_WATERMARK (SID_SFX_START + 676)
-// FREE (SID_SFX_START + 677)
+#define SID_WATERMARK_FONT (SID_SFX_START + 677)
+#define SID_WATERMARK_TRANSPARENCY (SID_SFX_START + 805)
+#define SID_WATERMARK_COLOR (SID_SFX_START + 806)
+#define SID_WATERMARK_ANGLE (SID_SFX_START + 807)
#define SID_HYPERLINK_DIALOG (SID_SFX_START + 678)
@@ -411,9 +414,6 @@
#define SID_PASTE_ONLY_TEXT (SID_SFX_START + 802)
#define SID_PASTE_ONLY_FORMULA (SID_SFX_START + 803)
#define SID_PASTE_ONLY_VALUE (SID_SFX_START + 804)
- // FREE: SID_SFX_START + 805
- // FREE: SID_SFX_START + 806
- // FREE: SID_SFX_START + 807
// FREE: SID_SFX_START + 808
// FREE: SID_SFX_START + 809
// FREE: SID_SFX_START + 810
diff --git a/include/sfx2/watermarkitem.hxx b/include/sfx2/watermarkitem.hxx
index 760aab3b0285..9fd7a91415a4 100644
--- a/include/sfx2/watermarkitem.hxx
+++ b/include/sfx2/watermarkitem.hxx
@@ -17,17 +17,29 @@ class SFX2_DLLPUBLIC SfxWatermarkItem: public SfxPoolItem
public:
static SfxPoolItem* CreateDefault();
SfxWatermarkItem();
- SfxWatermarkItem( sal_uInt16 nWhich, const OUString &rText );
SfxWatermarkItem( const SfxWatermarkItem& );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
- const OUString& GetText() const { return m_aText; }
+ const OUString GetText() const { return m_aText; }
+ void SetText(const OUString& aText) { m_aText = aText; }
+ const OUString GetFont() const { return m_aFont; }
+ void SetFont(const OUString& aFont) { m_aFont = aFont; }
+ sal_Int16 GetAngle() const { return m_nAngle; }
+ void SetAngle(const sal_Int16 nAngle) { m_nAngle = nAngle; }
+ sal_Int16 GetTransparency() const { return m_nTransparency; }
+ void SetTransparency(const sal_Int16 nTransparency) { m_nTransparency = nTransparency; }
+ sal_uInt32 GetColor() const { return m_nColor; }
+ void SetColor(const sal_uInt32 nColor) { m_nColor = nColor; }
private:
OUString m_aText;
+ OUString m_aFont;
+ sal_Int16 m_nAngle;
+ sal_Int16 m_nTransparency;
+ sal_uInt32 m_nColor;
};
#endif