summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2013-03-13 09:44:56 -0430
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-13 15:52:01 +0000
commit8d5c061cd66c2a0d41ceda7b61cacef1365f7c4f (patch)
tree0c9b47fcaa91e9daf5de7a1a9323a0e4d8bfa969 /sfx2/inc
parent9b080b47c69ed696cf0479be2f3acc030472cc01 (diff)
Add a button to create a new empty folder in template manager.
Change-Id: I13f77790f26c972bd74dac08c0cb8fd77b049dbf Reviewed-on: https://gerrit.libreoffice.org/2704 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/sfx2/templateabstractview.hxx2
-rw-r--r--sfx2/inc/sfx2/templatelocalview.hxx2
-rw-r--r--sfx2/inc/sfx2/templateremoteview.hxx2
-rw-r--r--sfx2/inc/templatedlg.hxx1
4 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/inc/sfx2/templateabstractview.hxx b/sfx2/inc/sfx2/templateabstractview.hxx
index 90dba099f375..bfbd2aa01bfb 100644
--- a/sfx2/inc/sfx2/templateabstractview.hxx
+++ b/sfx2/inc/sfx2/templateabstractview.hxx
@@ -87,6 +87,8 @@ public:
virtual void filterTemplatesByApp (const FILTER_APPLICATION &eApp);
+ virtual sal_uInt16 createRegion (const OUString &rName) = 0;
+
void showOverlay (bool bVisible);
void setItemDimensions (long ItemWidth, long ThumbnailHeight, long DisplayHeight, int itemPadding);
diff --git a/sfx2/inc/sfx2/templatelocalview.hxx b/sfx2/inc/sfx2/templatelocalview.hxx
index 432b008be60c..5fc14c931f60 100644
--- a/sfx2/inc/sfx2/templatelocalview.hxx
+++ b/sfx2/inc/sfx2/templatelocalview.hxx
@@ -42,7 +42,7 @@ public:
std::vector<TemplateItemProperties>
getFilteredItems (const boost::function<bool (const TemplateItemProperties&) > &rFunc) const;
- sal_uInt16 createRegion (const OUString &rName);
+ virtual sal_uInt16 createRegion (const OUString &rName);
bool removeRegion (const sal_uInt16 nItemId);
diff --git a/sfx2/inc/sfx2/templateremoteview.hxx b/sfx2/inc/sfx2/templateremoteview.hxx
index b760f009ae3c..34da0850c5f0 100644
--- a/sfx2/inc/sfx2/templateremoteview.hxx
+++ b/sfx2/inc/sfx2/templateremoteview.hxx
@@ -27,6 +27,8 @@ public:
bool loadRepository (TemplateRepository* pRepository, bool bRefresh);
+ virtual sal_uInt16 createRegion (const OUString &rName);
+
private:
com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv;
diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index 1cc9ae54d47e..53a70ff10e9d 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -84,6 +84,7 @@ private:
void OnTemplateDelete ();
void OnTemplateAsDefault ();
void OnTemplateExport ();
+ void OnFolderNew ();
void OnFolderDelete ();
void OnRepositoryDelete ();
void OnTemplateSaveAs ();