summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-06-28 07:53:59 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-06-28 14:21:31 +0200
commit58f0144ae2136e07f6a6b9c22b6c0059fc4cb0c6 (patch)
treeae051a413764cf214a5bcf42b9750de83a395a0f /sd/source/ui/inc
parentb0b1dbfb1d6b28339c2cdd79b765ec3eb5ce5aaf (diff)
Related tdf#125748 Reintroduce clickable image maps in sd
Clicking on image maps had been inadvertently removed in 41a1a91b6ec08d78449a199ec300ff73c85dd148. The context menu solution used for interactions doesn't quite work here, since only parts of an image are clickable. So we make those parts clickable again, but additionally we respect the setting whether Ctrl-Click is required to follow hyperlinks. Also the tooltip now indicates whether Ctrl-Click is required to follow hyperlinks. This is now consistent with sc and sw. Change-Id: I04030ef0c2b1350afbc349176a3e1e87f3187393 Reviewed-on: https://gerrit.libreoffice.org/74830 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source/ui/inc')
-rw-r--r--sd/source/ui/inc/fudraw.hxx1
-rw-r--r--sd/source/ui/inc/fusel.hxx2
2 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/inc/fudraw.hxx b/sd/source/ui/inc/fudraw.hxx
index 9e64300928a6..11158738ff82 100644
--- a/sd/source/ui/inc/fudraw.hxx
+++ b/sd/source/ui/inc/fudraw.hxx
@@ -47,6 +47,7 @@ public:
virtual void DoubleClick(const MouseEvent& rMEvt);
+ bool SetPointer(SdrObject* pObj, const Point& rPos);
bool SetHelpText(SdrObject* pObj, const Point& rPos, const SdrViewEvent& rVEvt);
void SetPermanent(bool bSet) { bPermanent = bSet; }
diff --git a/sd/source/ui/inc/fusel.hxx b/sd/source/ui/inc/fusel.hxx
index 5806cb2e8d66..6f48ed9a4860 100644
--- a/sd/source/ui/inc/fusel.hxx
+++ b/sd/source/ui/inc/fusel.hxx
@@ -50,6 +50,8 @@ public:
void SetEditMode(sal_uInt16 nMode);
sal_uInt16 GetEditMode() { return nEditMode; }
+ bool HandleImageMapClick(SdrObject* pObj, const Point& rPos);
+
/** is called when the current function should be aborted. <p>
This is used when a function gets a KEY_ESCAPE but can also
be called directly.