diff options
Diffstat (limited to 'sfx2/source/doc/templatedlg.cxx')
-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(); |