summaryrefslogtreecommitdiff
path: root/sw/inc/frmfmt.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-03-31 14:27:40 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-03-31 15:59:46 +0200
commit9caf6e4a3ac05a9d2e9d695e59d4ae048bf078b2 (patch)
treede039fdd89d7a250a269825269fee82c74ac3c55 /sw/inc/frmfmt.hxx
parentbfb6c4c65781a610d21409d974227d73f264f41a (diff)
sw fly frames: add Tooltip uno property
This is somewhat similar to commit 1acf8e3cfaf1ef92008e39514a32ace0d036e552 (sw fields: add Title uno property, 2022-03-24), except that this is for images, and images already had a Title, which is persisted to ODT. So add a new Tooltip property which has priority over the tooltip generated for URLs, in case the tooltip is non-empty. This helps in case the URL is long / non-readable / confusing and a more helpful popup text can be provided instead. Change-Id: Ife34dab5e4490eb1682c55fb7c01f7509d0057fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132361 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/inc/frmfmt.hxx')
-rw-r--r--sw/inc/frmfmt.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx
index 59aee54a2f4a..12795bf10428 100644
--- a/sw/inc/frmfmt.hxx
+++ b/sw/inc/frmfmt.hxx
@@ -191,6 +191,8 @@ class SW_DLLPUBLIC SwFlyFrameFormat final : public SwFrameFormat
friend class SwDoc;
OUString msTitle;
OUString msDesc;
+ /// A tooltip has priority over an SwFormatURL and is not persisted to files.
+ OUString msTooltip;
/** Both not existent.
it stores the previous position of Prt rectangle from RequestObjectResize
@@ -220,6 +222,10 @@ public:
OUString GetObjTitle() const;
void SetObjTitle( const OUString& rTitle, bool bBroadcast = false );
+
+ OUString GetObjTooltip() const;
+ void SetObjTooltip(const OUString& rTooltip);
+
OUString GetObjDescription() const;
void SetObjDescription( const OUString& rDescription, bool bBroadcast = false );