summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/templatedlg.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-02-07 13:36:51 +0100
committerJan Holesovsky <kendy@collabora.com>2014-02-07 13:58:08 +0100
commit014c5761e2132ba65138f86f0fe0b42d4b858c26 (patch)
tree2ddf44251f5ab04d9f66f8734233c3267678330d /sfx2/source/doc/templatedlg.cxx
parentd05f9012572b6648f2be44e80686cc2573dd81f2 (diff)
templatemanager: Nobody calls setSaveMode(false).
Change-Id: Ia1844523c3ed5544b4e250c7607d2148f1c4d3cd
Diffstat (limited to 'sfx2/source/doc/templatedlg.cxx')
-rw-r--r--sfx2/source/doc/templatedlg.cxx38
1 files changed, 15 insertions, 23 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 3020d579f9a7..1464b1480e39 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -316,33 +316,25 @@ SfxTemplateManagerDlg::~SfxTemplateManagerDlg ()
mpSearchView->setItemStateHdl(Link());
}
-void SfxTemplateManagerDlg::setSaveMode(bool bMode)
+void SfxTemplateManagerDlg::setSaveMode()
{
- mbIsSaveMode = bMode;
+ mbIsSaveMode = true;
+
mpTabControl->Clear();
mpCurView->filterItems(ViewFilter_Application(FILTER_APP_NONE));
- if (bMode)
- {
- mpViewBar->ShowItem(VIEWBAR_SAVE);
- mpViewBar->HideItem(VIEWBAR_IMPORT);
- mpViewBar->HideItem(VIEWBAR_REPOSITORY);
-
- mpTemplateBar->ShowItem(TEMPLATEBAR_SAVE);
- mpTemplateBar->ShowItem(TEMPLATEBAR_PROPERTIES);
- mpTemplateBar->ShowItem(TEMPLATEBAR_DEFAULT);
- mpTemplateBar->HideItem(TEMPLATEBAR_OPEN);
- mpTemplateBar->HideItem(TEMPLATEBAR_EDIT);
- mpTemplateBar->HideItem(TEMPLATEBAR_MOVE);
- mpTemplateBar->HideItem(TEMPLATEBAR_EXPORT);
- mpTemplateBar->HideItem(TEMPLATEBAR_DELETE);
- }
- else
- {
- mpViewBar->HideItem(VIEWBAR_SAVE);
- mpViewBar->ShowItem(VIEWBAR_IMPORT);
- mpViewBar->ShowItem(VIEWBAR_REPOSITORY);
- }
+ mpViewBar->ShowItem(VIEWBAR_SAVE);
+ mpViewBar->HideItem(VIEWBAR_IMPORT);
+ mpViewBar->HideItem(VIEWBAR_REPOSITORY);
+
+ mpTemplateBar->ShowItem(TEMPLATEBAR_SAVE);
+ mpTemplateBar->ShowItem(TEMPLATEBAR_PROPERTIES);
+ mpTemplateBar->ShowItem(TEMPLATEBAR_DEFAULT);
+ mpTemplateBar->HideItem(TEMPLATEBAR_OPEN);
+ mpTemplateBar->HideItem(TEMPLATEBAR_EDIT);
+ mpTemplateBar->HideItem(TEMPLATEBAR_MOVE);
+ mpTemplateBar->HideItem(TEMPLATEBAR_EXPORT);
+ mpTemplateBar->HideItem(TEMPLATEBAR_DELETE);
}
void SfxTemplateManagerDlg::setDocumentModel(const uno::Reference<frame::XModel> &rModel)