sfx2/source/doc/templatedlg.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit fc8512b5dfa5b3977f1571f50b2700f790191f92 Author: Cédric Bosdonnat <cedric.bosdon...@free.fr> Date: Thu Jan 24 16:50:32 2013 +0100 Template Manager: remote repositories only for experimental mode Change-Id: I79501bdcd25f362065d9b95efd1a43f6be84577e Reviewed-on: https://gerrit.libreoffice.org/1847 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Miklos Vajna <vmik...@suse.cz> Reviewed-by: Noel Power <noel.po...@suse.com> Tested-by: Noel Power <noel.po...@suse.com> diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index f1e69f5..833e556 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();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits