summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2018-10-02 12:16:39 +0200
committerHeiko Tietze <tietze.heiko@gmail.com>2018-10-09 16:09:20 +0200
commite0aa9310299181cea87c5723a933ffd5ee4afe22 (patch)
tree194f2d1aeb8a24e84a355cbbf876569b648dbadd /sfx2
parentb0a0a3dddb9dc46c07b334eeba3f92df662563be (diff)
tdf#120264 - Access to "Get Involved"
UNO command SID_GETINVOLVED added with access to the website from all main menus under Help Dispensable ellipsis removed from other UNO commands around Help Change-Id: I79536be3de31f55a7b208bcdd5a243e05b3d3668 Reviewed-on: https://gerrit.libreoffice.org/61238 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/sdi/appslots.sdi4
-rw-r--r--sfx2/sdi/sfx.sdi15
-rw-r--r--sfx2/source/appl/appserv.cxx7
3 files changed, 26 insertions, 0 deletions
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi
index da6d084403fe..e46e29741243 100644
--- a/sfx2/sdi/appslots.sdi
+++ b/sfx2/sdi/appslots.sdi
@@ -132,6 +132,10 @@ interface Application
[
ExecMethod = MiscExec_Impl ;
]
+ SID_GETINVOLVED
+ [
+ ExecMethod = MiscExec_Impl ;
+ ]
SID_SHOW_LICENSE
[
ExecMethod = MiscExec_Impl ;
diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi
index 235544588174..11225f17868e 100644
--- a/sfx2/sdi/sfx.sdi
+++ b/sfx2/sdi/sfx.sdi
@@ -4912,6 +4912,21 @@ SfxVoidItem Donation SID_DONATION
MenuConfig = TRUE,
GroupId = SfxGroupId::Application;
]
+SfxVoidItem GetInvolved SID_GETINVOLVED
+()
+[
+ AutoUpdate = FALSE,
+ FastCall = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ GroupId = SfxGroupId::Application;
+]
SfxVoidItem ShowLicense SID_SHOW_LICENSE
()
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index fb111b64a935..2917dfcd0a11 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -549,6 +549,13 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
sfx2::openUriExternally(sURL, false);
break;
}
+ case SID_GETINVOLVED:
+ {
+ // Open get involved/join us page based on locales
+ OUString sURL("https://hub.libreoffice.org/joinus/?LOlocale=" + utl::ConfigManager::getLocale());
+ sfx2::openUriExternally(sURL, false);
+ break;
+ }
case SID_DONATION:
{
// Open donation page based on language + script (BCP47) with language as fall back.