summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-08-18 11:51:41 -0430
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-08-20 06:40:48 +0200
commit6bd26237fddf4aeef091204c7ab52b8b6df90bbc (patch)
tree70d12fb2c78fb33db4011681e466f6b701634978 /sfx2
parentRemove unused functions. (diff)
downloadcore-6bd26237fddf4aeef091204c7ab52b8b6df90bbc.tar.gz
core-6bd26237fddf4aeef091204c7ab52b8b6df90bbc.zip
Hide template export option for remote repositories.
Change-Id: I065e6bb271d4fb646feaaf99a211fedff7edc83c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/templatedlg.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 34e5713e27f2..e96283864544 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -1258,7 +1258,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
mpViewBar->HideItem(TBI_TEMPLATE_FOLDER_DEL);
- // Enable deleting items from the filesystem
+ // Enable deleting and exporting items from the filesystem
+ mpTemplateBar->ShowItem(TBI_TEMPLATE_EXPORT);
mpTemplateBar->ShowItem(TBI_TEMPLATE_DELETE);
mpOnlineView->Hide();
@@ -1270,7 +1271,8 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
mpViewBar->ShowItem(TBI_TEMPLATE_FOLDER_DEL);
- // Disable deleting items from remote repositories
+ // Disable deleting and exporting items from remote repositories
+ mpTemplateBar->HideItem(TBI_TEMPLATE_EXPORT);
mpTemplateBar->HideItem(TBI_TEMPLATE_DELETE);
maView->Hide();