diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-01-24 16:50:32 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-01-24 16:54:28 +0100 |
commit | 23baf527ffc9c082dcbc6a328019760725cc0c08 (patch) | |
tree | d3df498e12f79a4219a0ac8111cce0795cf2160d /sfx2 | |
parent | 5af61a8bb6fa890349334b6a22eb02a0dd79a90a (diff) |
Template Manager: remote repositories only for experimental mode
Change-Id: I79501bdcd25f362065d9b95efd1a43f6be84577e
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 11fddc2ae20d..824cfc1527df 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -30,6 +30,7 @@ #include <sfx2/thumbnailviewitem.hxx> #include <sot/storage.hxx> #include <svtools/imagemgr.hxx> +#include <svtools/miscopt.hxx> #include <svtools/PlaceEditDialog.hxx> #include <tools/urlobj.hxx> #include <unotools/moduleoptions.hxx> @@ -178,6 +179,13 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent) maTabControl.SetActivatePageHdl(LINK(this,SfxTemplateManagerDlg,ActivatePageHdl)); + SvtMiscOptions aMiscOptions; + if ( !aMiscOptions.IsExperimentalMode() ) + { + sal_uInt16 nPos = mpViewBar->GetItemId(TBI_TEMPLATE_REPOSITORY); + mpViewBar->RemoveItem(nPos); + } + mpViewBar->Show(); mpActionBar->Show(); |