diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2013-08-14 15:53:13 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-08-30 12:35:12 +0000 |
commit | f8426f505316d08f35d8a7cf8dbfd6a3c60db3db (patch) | |
tree | 9585cfd661d7d25214c710c65689633868b6f079 /sfx2/source/control/templateabstractview.cxx | |
parent | 40ff64b93fc4c4c2e2710853e9f71e35811b9362 (diff) |
startcenter: Add toggle to view templates in Start Center
Change-Id: I17aa3bfbb7f4b0eca525dd15d6866c6951d5d20f
Reviewed-on: https://gerrit.libreoffice.org/5543
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'sfx2/source/control/templateabstractview.cxx')
-rw-r--r-- | sfx2/source/control/templateabstractview.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx index d9119174ea52..9eb0a0136ba0 100644 --- a/sfx2/source/control/templateabstractview.cxx +++ b/sfx2/source/control/templateabstractview.cxx @@ -142,6 +142,18 @@ TemplateAbstractView::TemplateAbstractView(Window *pParent, const ResId &rResId, maFTName.Hide(); } +TemplateAbstractView::TemplateAbstractView(Window *pParent) + : ThumbnailView(pParent), + mnCurRegionId(0), + maAllButton(this, SfxResId(BTN_ALL_TEMPLATES)), + maFTName(this, SfxResId(FT_NAME)) +{ + maAllButton.Hide(); + maAllButton.SetStyle(maAllButton.GetStyle() | WB_FLATBUTTON); + maAllButton.SetClickHdl(LINK(this,TemplateAbstractView,ShowRootRegionHdl)); + maFTName.Hide(); +} + TemplateAbstractView::~TemplateAbstractView () { } |