diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-08 05:22:13 +0530 |
---|---|---|
committer | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-09 20:54:04 +0000 |
commit | a7220f6a19556b982bedb52c87d8d345eab85118 (patch) | |
tree | 30902200b2826e63522ea8d230ce8d932c3c8582 /include/sfx2 | |
parent | 741077bf1cdb0c9240ee3e90f07a42bef5bb7a8f (diff) |
Templates: Display titles and category as tooltips
Tooltip text:
1. Template Manager:
All Categories: Title + Category
Category: Title
2. Start center: Title
Conflicts:
sfx2/source/doc/doc.hrc
Conflicts:
sfx2/source/doc/templatedlg.cxx
Change-Id: I0bfd5e78120f13338f88c1b0617df3a057cce02f
Reviewed-on: https://gerrit.libreoffice.org/26040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/templateabstractview.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/templatedefaultview.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/templatelocalview.hxx | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx index 79ec353792e1..68faee3fa143 100644 --- a/include/sfx2/templateabstractview.hxx +++ b/include/sfx2/templateabstractview.hxx @@ -74,7 +74,7 @@ public: virtual void dispose() override; // Fill view with new item list - void insertItems (const std::vector<TemplateItemProperties> &rTemplates, bool isRegionSelected = true); + void insertItems (const std::vector<TemplateItemProperties> &rTemplates, bool isRegionSelected = true, bool bShowCategoryInTooltip = false); // Fill view with template folders thumbnails virtual void Populate () { } diff --git a/include/sfx2/templatedefaultview.hxx b/include/sfx2/templatedefaultview.hxx index 6d2fcdfab0e2..4438536c9a2e 100644 --- a/include/sfx2/templatedefaultview.hxx +++ b/include/sfx2/templatedefaultview.hxx @@ -19,6 +19,8 @@ public: virtual void reload() override; + virtual void showAllTemplates () override; + virtual void KeyInput( const KeyEvent& rKEvt ) override; void createContextMenu(); diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx index db5c1b65919a..735e897f7721 100644 --- a/include/sfx2/templatelocalview.hxx +++ b/include/sfx2/templatelocalview.hxx @@ -87,7 +87,7 @@ public: virtual bool renameItem(ThumbnailViewItem* pItem, const OUString& sNewTitle) override; -private: +protected: SfxDocumentTemplates *mpDocTemplates; std::vector<TemplateContainerItem* > maRegions; |