diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-05-30 01:57:00 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-01 14:03:40 +0000 |
commit | bb8040595c9b6f0ccde39e6833f27a50abb891d8 (patch) | |
tree | 648623177d6ef56e12305239cabbee3cf19dedae /include/sfx2/templatedlg.hxx | |
parent | 6a8407d82d71083c8bdec6a106ba9092a5196cbe (diff) |
Impress: Replace Presentation Wizard with Template Manager
Drop the Presentation wizard and show the Template Manager instead
when starting Impress.
1. Opens a blank template with Template Manager.
2. If user selects a template, load it over the blank template.
3. SfxTemplateSelectionDlg for impress integration.
Change-Id: Ia9c3cafc973e3741c6ea9f838018a35956f37f4a
Reviewed-on: https://gerrit.libreoffice.org/25642
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2/templatedlg.hxx')
-rw-r--r-- | include/sfx2/templatedlg.hxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx index ce95841dd6d9..d7920753575d 100644 --- a/include/sfx2/templatedlg.hxx +++ b/include/sfx2/templatedlg.hxx @@ -53,7 +53,7 @@ public: void setDocumentModel (const css::uno::Reference<css::frame::XModel> &rModel); -private: +protected: void getApplicationSpecificSettings(); @@ -137,7 +137,7 @@ private: /// Return filter according to the currently selected application filter. FILTER_APPLICATION getCurrentApplicationFilter(); -private: +protected: VclPtr<Edit> mpSearchFilter; VclPtr<ListBox> mpCBApp; @@ -209,6 +209,27 @@ public: virtual void dispose() override; }; + +// class SfxTemplateSelectionDialog ------------------------------------------------------------------- + +class SFX2_DLLPUBLIC SfxTemplateSelectionDlg : public SfxTemplateManagerDlg +{ +public: + SfxTemplateSelectionDlg(vcl::Window *parent = nullptr); + + virtual ~SfxTemplateSelectionDlg(); + virtual void dispose() override; + virtual short Execute() override; + + inline OUString getTemplatePath() const { return msTemplatePath; }; + +private: + DECL_LINK_TYPED(OpenTemplateHdl, ThumbnailViewItem*, void); + + OUString msTemplatePath; +}; + + #endif // INCLUDED_SFX2_INC_TEMPLATEDLG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |