diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2013-01-24 16:50:32 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-01-25 10:34:17 +0000 |
commit | fc8512b5dfa5b3977f1571f50b2700f790191f92 (patch) | |
tree | b8372b6c20bf6ad0726f6742d88bcf5b1c556b26 | |
parent | 65141b7c80026fdb9858af6229de83c0b6824e10 (diff) |
Template Manager: remote repositories only for experimental mode
Change-Id: I79501bdcd25f362065d9b95efd1a43f6be84577e
Reviewed-on: https://gerrit.libreoffice.org/1847
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
-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 f1e69f595b5b..833e556b9821 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> @@ -177,6 +178,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(); |