diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2016-06-07 08:44:18 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-07 06:10:03 +0000 |
commit | 916b3e30099ee01f6c33ba01c7a8adc24cf965cc (patch) | |
tree | 07f7e666d257483b8e4e53cee385ab7f2e5ee244 /include | |
parent | 397ad4d4b844d0c1a24fceb20cde460554b9910f (diff) |
Reset Default in Context Menu for default templates
Change-Id: Ifedb4f5b4dada0e9e0ac40ffcaed4c2821df501d
Reviewed-on: https://gerrit.libreoffice.org/25995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/templateabstractview.hxx | 1 | ||||
-rw-r--r-- | include/sfx2/templatelocalview.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/templateviewitem.hxx | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx index e6029685d05d..a220f5a5edaa 100644 --- a/include/sfx2/templateabstractview.hxx +++ b/include/sfx2/templateabstractview.hxx @@ -124,6 +124,7 @@ protected: virtual void OnItemDblClicked(ThumbnailViewItem *pItem) override; +public: static bool IsDefaultTemplate(const OUString& rPath); protected: diff --git a/include/sfx2/templatelocalview.hxx b/include/sfx2/templatelocalview.hxx index d05f33869c17..db5c1b65919a 100644 --- a/include/sfx2/templatelocalview.hxx +++ b/include/sfx2/templatelocalview.hxx @@ -47,7 +47,7 @@ public: void showRegion (const OUString &rName); - void createContextMenu(); + void createContextMenu(const bool bIsDefault ); DECL_LINK_TYPED(ContextMenuSelectHdl, Menu*, bool); diff --git a/include/sfx2/templateviewitem.hxx b/include/sfx2/templateviewitem.hxx index 10d4634e4d52..c6bcbfb656dc 100644 --- a/include/sfx2/templateviewitem.hxx +++ b/include/sfx2/templateviewitem.hxx @@ -26,6 +26,8 @@ public: void showDefaultIcon(bool bVal) { mbIsDefaultTemplate = bVal; } + bool IsDefaultTemplate() const { return mbIsDefaultTemplate; } + Rectangle getDefaultIconArea() const; virtual void Paint (drawinglayer::processor2d::BaseProcessor2D *pProcessor, |