diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-07-03 14:54:18 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-07-03 14:54:18 +0200 |
commit | 9c47fae01bac6374c24cb8e3653becbfc773e0e7 (patch) | |
tree | 7770fef1c1160d7ec1dc668b30175f6cd3f97926 /sfx2 | |
parent | b12ad0815468d9f12517da8c12a53c6f3687d8cc (diff) |
Template dialog: show the menu entry when enabling experimental features
Change-Id: Idfd57169d40e9bb60d72559f3ca09f7d34cf60df
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/sdi/appslots.sdi | 1 | ||||
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sfx2/sdi/appslots.sdi b/sfx2/sdi/appslots.sdi index 11d7e3aefa93..0d7c7a0c72c3 100644 --- a/sfx2/sdi/appslots.sdi +++ b/sfx2/sdi/appslots.sdi @@ -130,6 +130,7 @@ interface Application SID_TEMPLATE_MANAGER // ole(no) api(final/play/rec) [ ExecMethod = MiscExec_Impl ; + StateMethod = MiscState_Impl ; ] SID_ORGANIZER // ole(no) api(final/play/rec) [ diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index ad6012ff55d8..5e83a9f4ecf9 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -53,6 +53,7 @@ #include "comphelper/configurationhelper.hxx" #include <svtools/addresstemplate.hxx> +#include <svtools/miscopt.hxx> #include <svl/visitem.hxx> #include <unotools/intlwrapper.hxx> @@ -778,6 +779,17 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) rSet.DisableItem(SID_SHOW_IME_STATUS_WINDOW); break; + case SID_TEMPLATE_MANAGER: + { + SvtMiscOptions aMiscOptions; + if ( !aMiscOptions.IsExperimentalMode() ) + { + rSet.DisableItem( nWhich ); + rSet.Put( SfxVisibilityItem( nWhich, sal_False ) ); + } + } + break; + default: break; } |