From f7c47eddc9d736ec59772106cada2e4adde9c82c Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Thu, 28 Mar 2013 00:01:40 -0430 Subject: Show search and extra buttons when a template is selected. Change-Id: I8e331849aa4d973ed905e9afee5d08e9b6bbc230 --- sfx2/source/doc/templatedlg.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 8ce5420d1b9f..e547c127b59a 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -353,7 +353,7 @@ void SfxTemplateManagerDlg::Resize() long nToolbarsHeight = std::max(std::max(aViewSize.getHeight(), aActionSize.getHeight()), aTemplateSize.getHeight()); - aActionSize.setWidth(3*aActionSize.getWidth()); + aActionSize.setWidth(2.5*aActionSize.getWidth()); aViewSize.setWidth(aWinSize.getWidth()-aActionSize.getWidth()-mpViewBar->GetPosPixel().X()); aTemplateSize.setWidth(aWinSize.getWidth()); @@ -773,7 +773,6 @@ void SfxTemplateManagerDlg::OnTemplateState (const ThumbnailViewItem *pItem) if (maSelTemplates.empty()) { mpViewBar->Show(false); - mpActionBar->Show(false); mpTemplateBar->Show(); } else if (maSelTemplates.size() != 1 || !bInSelection) @@ -799,7 +798,6 @@ void SfxTemplateManagerDlg::OnTemplateState (const ThumbnailViewItem *pItem) { mpTemplateBar->Show(false); mpViewBar->Show(); - mpActionBar->Show(); } else if (maSelTemplates.size() == 1) { -- cgit