diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-12-02 00:05:14 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-12-03 18:28:39 +0100 |
commit | 6b5ca41c5d78e6a45f7a39d99c5a7ae283d243de (patch) | |
tree | 80169faaec0b7fd72adc8a11db3b61f8c2ae8a60 /forms | |
parent | c7bf00e09d37b6d30f267b6971ff6dbeafb47aff (diff) |
tdf#46579: fix form fields 'Image Button' in Forms
urls have this form:
.uno:FormController/moveToFirst
.uno:FormController/moveToPrev
etc.
So we must use these links for hyperlinks
+ interceptor with ControlFeatureInterception
+ includes https://gerrit.libreoffice.org/c/core/+/107158
Change-Id: I9cff19833d859624239ca6c76152cc88f9cbb278
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107037
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit 07be45d03f80fa681c697ca9f5a13084a81c7a26)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107098
Tested-by: Jenkins
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/clickableimage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx index 68861e42cf30..bc2a2ba739e5 100644 --- a/forms/source/component/clickableimage.cxx +++ b/forms/source/component/clickableimage.cxx @@ -310,9 +310,9 @@ namespace frm } else { - URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURLFromAscii( ".uno:OpenHyperlink" ); + URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURL(aURL.Complete); - Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY_THROW)->queryDispatch(aHyperLink, OUString() , 0); + Reference< XDispatch > xDisp = m_pFeatureInterception->queryDispatch(aHyperLink); if ( xDisp.is() ) { |