diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-08 16:02:24 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-08 19:57:55 -0430 |
commit | 0088d0362381596f64e4218e1aa8af54b3db36e5 (patch) | |
tree | 476ba014781074ec8ccf5857bb547c097a07867d /sfx2 | |
parent | 7c98ed8f2673c02d3f424e56b7a6f5d887ad89f0 (diff) |
Hide template toolbar when we close overlay and templates are selected.
Change-Id: I8ccff40fcb7d214ce368d5c3dc9577f76c1b2929
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index ed607da54069..e9d57cbc818c 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -272,7 +272,13 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,ViewDrawsHdl) void SfxTemplateManagerDlg::MouseButtonDown( const MouseEvent& rMEvt ) { if (!maView->GetActiveClipRegion().IsInside(rMEvt.GetPosPixel()) && maView->isOverlayVisible()) + { + maSelTemplates.clear(); + mpTemplateBar->Hide(); + mpViewBar->Show(); + maView->showOverlay(false); + } } IMPL_LINK_NOARG (SfxTemplateManagerDlg, CloseHdl) @@ -281,9 +287,12 @@ IMPL_LINK_NOARG (SfxTemplateManagerDlg, CloseHdl) return 0; } - IMPL_LINK_NOARG(SfxTemplateManagerDlg, CloseOverlayHdl) { + maSelTemplates.clear(); + mpTemplateBar->Hide(); + mpViewBar->Show(); + maView->showOverlay(false); return 0; } |