summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/templateabstractview.hxx1
-rw-r--r--include/sfx2/templatelocalview.hxx2
-rw-r--r--include/sfx2/templateviewitem.hxx2
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,