sd/source/ui/func/fusel.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 5a96d3e88560609540191bff95fae5ad80845012 Author: Szymon KÅos <szymon.k...@collabora.com> Date: Tue Nov 28 20:15:47 2017 +0100 tdf#76646 Ctrl-click required for hyperlinks in draw/impress If "Ctrl-click required to follow hyperlinks" is set in Options -> LibreOffice -> Security -> Options open the link only with Ctrl key pressed. Change-Id: Icf57b4deedabd51f31f04021ba3f6bddc3829931 Reviewed-on: https://gerrit.libreoffice.org/45437 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Szymon KÅos <szymon.k...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/45554 Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de> Tested-by: Thorsten Behrens <thorsten.behr...@cib.de> diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 2979c9099416..425a4d9c857d 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -27,6 +27,7 @@ #include <svtools/imapobj.hxx> #include <svl/urihelper.hxx> #include <unotools/localfilehelper.hxx> +#include <unotools/securityoptions.hxx> #include <svx/svxids.hrc> #include <svx/xfillit0.hxx> #include <sfx2/app.hxx> @@ -269,6 +270,11 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) aVEvt.eEvent == SDREVENT_EXECUTEURL ) { mpWindow->ReleaseMouse(); + + SvtSecurityOptions aSecOpt; + if (!rMEvt.IsMod1() && aSecOpt.IsOptionSet(SvtSecurityOptions::E_CTRLCLICK_HYPERLINK)) + return true; + SfxStringItem aStrItem(SID_FILE_NAME, aVEvt.pURLField->GetURL()); SfxStringItem aReferer(SID_REFERER, mpDocSh->GetMedium()->GetName()); SfxBoolItem aBrowseItem( SID_BROWSE, true );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits