summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-29 22:35:50 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-29 23:34:32 -0430
commitda501ad185ee35ac85724866035b813fe08d8717 (patch)
treec544878418e4fa674647ef643fb810ed1efe9d67 /sfx2/source
parent250b0c95475aeb4c92b6917894fe5b22e8d18f7c (diff)
Show/Hide template delete action depending on the view.
Change-Id: Ia414e9c2ea8d1944b378e373e77607fad531b45f
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/templatedlg.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 3b327dfcb66a..9d0cd285183a 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -868,6 +868,9 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
mpViewBar->ShowItem(TBI_TEMPLATE_ONLINE);
mpViewBar->HideItem(TBI_TEMPLATE_LOCAL);
+ // Enable deleting items from the filesystem
+ mpTemplateBar->ShowItem(TBI_TEMPLATE_DELETE);
+
mpOnlineView->Hide();
maView->Show();
}
@@ -878,6 +881,9 @@ void SfxTemplateManagerDlg::switchMainView(bool bDisplayLocal)
mpViewBar->ShowItem(TBI_TEMPLATE_LOCAL);
mpViewBar->HideItem(TBI_TEMPLATE_ONLINE);
+ // Disable deleting items from remote repositories
+ mpTemplateBar->HideItem(TBI_TEMPLATE_DELETE);
+
maView->Hide();
mpOnlineView->Show();
}