[PATCH] Change in core[libreoffice-4-0-0]: Template Manager: remote repositories only for experimental ...

Bosdonnat Cedric (via Code Review) gerrit at gerrit.libreoffice.org
Thu Jan 24 07:58:41 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1847

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/47/1847/1

Template Manager: remote repositories only for experimental mode

Change-Id: I79501bdcd25f362065d9b95efd1a43f6be84577e
---
M sfx2/source/doc/templatedlg.cxx
1 file changed, 8 insertions(+), 0 deletions(-)



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 @@
 
     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();
 

-- 
To view, visit https://gerrit.libreoffice.org/1847
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I79501bdcd25f362065d9b95efd1a43f6be84577e
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0-0
Gerrit-Owner: Bosdonnat Cedric <cedric.bosdonnat at free.fr>



More information about the LibreOffice mailing list