[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sfx2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 25 06:23:49 PST 2013
sfx2/source/doc/templatedlg.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 54617ada5c91c442e73f0b652a6e50f8c27ac107
Author: Cédric Bosdonnat <cedric.bosdonnat at 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 <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Reviewed-by: Noel Power <noel.power at suse.com>
Tested-by: Noel Power <noel.power at 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();
More information about the Libreoffice-commits
mailing list