summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-01-18 22:47:58 +0400
committerThorsten Behrens <tbehrens@suse.com>2012-01-23 12:37:07 +0100
commit924d0bdd47ed895592332714be8ee32afe1acebb (patch)
treefd13afecd66162d0b53ad95b9fba51d26a6ce1a2 /sfx2
parent67073c6bc870aceede4652fffd0571da584a4679 (diff)
add the "Send Feedback..." help menu item
Diffstat (limited to 'sfx2')
-rwxr-xr-xsfx2/inc/sfx2/sfxsids.hrc1
-rwxr-xr-xsfx2/sdi/appslots.sdi4
-rwxr-xr-xsfx2/sdi/sfx.sdi25
-rw-r--r--sfx2/source/appl/appserv.cxx16
4 files changed, 46 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/sfxsids.hrc b/sfx2/inc/sfx2/sfxsids.hrc
index da4c57bfff8d..f7cb90b59135 100755
--- a/sfx2/inc/sfx2/sfxsids.hrc
+++ b/sfx2/inc/sfx2/sfxsids.hrc
@@ -127,6 +127,7 @@
#define SID_HELP_ZOOMOUT (SID_SFX_START + 418)
#define SID_HELP_HELPFILEBOX (SID_SFX_START + 419)
#define SID_HELP_HELPFILEBOX_SELECTED (SID_SFX_START + 420)
+#define SID_SEND_FEEDBACK (SID_SFX_START + 421)
#define SID_SHOW_LICENSE (SID_SFX_START + 1683)
#define SID_SHOW_CREDITS (SID_SFX_START + 1711)
#define SID_HELP_TUTORIALS (SID_SFX_START + 1695)
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi
index 39d26692ceb4..d6d4a8508d80 100755
--- a/sfx2/sdi/appslots.sdi
+++ b/sfx2/sdi/appslots.sdi
@@ -167,6 +167,10 @@ interface Application
ExecMethod = MiscExec_Impl ;
StateMethod = MiscState_Impl ;
]
+ SID_SEND_FEEDBACK
+ [
+ ExecMethod = MiscExec_Impl ;
+ ]
SID_SHOW_LICENSE
[
ExecMethod = MiscExec_Impl ;
diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi
index 47577eaf0048..6b197c719b2e 100755
--- a/sfx2/sdi/sfx.sdi
+++ b/sfx2/sdi/sfx.sdi
@@ -7287,6 +7287,31 @@ SfxVoidItem UpdateConfiguration SID_UPDATE_CONFIG
]
//--------------------------------------------------------------------------
+SfxVoidItem SendFeedback SID_SEND_FEEDBACK
+()
+[
+ /* flags: */
+ AutoUpdate = FALSE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Synchron;
+
+ /* config: */
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_APPLICATION;
+]
+
+//--------------------------------------------------------------------------
SfxVoidItem ShowLicense SID_SHOW_LICENSE
()
[
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 9199dafbbd86..bc4b1f416884 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -359,6 +359,22 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
break;
}
+ case SID_SEND_FEEDBACK:
+ {
+ ::rtl::OUString sURL(RTL_CONSTASCII_USTRINGPARAM("http://hub.libreoffice.org/file-a-bug/"));
+ try
+ {
+ uno::Reference< com::sun::star::system::XSystemShellExecute > xSystemShellExecute(
+ ::comphelper::getProcessServiceFactory()->createInstance(
+ DEFINE_CONST_UNICODE("com.sun.star.system.SystemShellExecute") ), uno::UNO_QUERY_THROW );
+ xSystemShellExecute->execute( sURL, ::rtl::OUString(), com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
+ }
+ catch ( uno::Exception& )
+ {
+ }
+ break;
+ }
+
case SID_SHOW_LICENSE:
{
ModalDialog aDialog( NULL, SfxResId( DLG_HELP_LICENSING ) );