diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2013-03-27 17:03:02 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2013-03-28 00:21:14 -0430 |
commit | a544f366867cb03ccc3a90703fc437e81fabc7a2 (patch) | |
tree | 2d7bb5d7ca42b97c3bb18a6b0f141d3928b33eba /sfx2/inc | |
parent | Display create template folder only when its allowed. (diff) | |
download | core-a544f366867cb03ccc3a90703fc437e81fabc7a2.tar.gz core-a544f366867cb03ccc3a90703fc437e81fabc7a2.zip |
fdo#60581 Display import templates only when its allowed.
Change-Id: I004b50118b1b261de4807660012b55eeecff41a3
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/sfx2/templateabstractview.hxx | 3 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templatelocalview.hxx | 2 | ||||
-rw-r--r-- | sfx2/inc/sfx2/templateremoteview.hxx | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/templateabstractview.hxx b/sfx2/inc/sfx2/templateabstractview.hxx index 2e3914430e6d..564978e6d04a 100644 --- a/sfx2/inc/sfx2/templateabstractview.hxx +++ b/sfx2/inc/sfx2/templateabstractview.hxx @@ -99,6 +99,9 @@ public: // Return if we can have regions inside the current region virtual bool isNestedRegionAllowed () const = 0; + // Return if we can import templates to the current region + virtual bool isImportAllowed () const = 0; + sal_uInt16 getCurRegionId () const; const OUString& getCurRegionName () const; diff --git a/sfx2/inc/sfx2/templatelocalview.hxx b/sfx2/inc/sfx2/templatelocalview.hxx index 297735402aa6..902b7cfee5cf 100644 --- a/sfx2/inc/sfx2/templatelocalview.hxx +++ b/sfx2/inc/sfx2/templatelocalview.hxx @@ -57,6 +57,8 @@ public: virtual bool isNestedRegionAllowed () const; + virtual bool isImportAllowed () const; + bool removeRegion (const sal_uInt16 nItemId); bool removeTemplate (const sal_uInt16 nItemId, const sal_uInt16 nSrcItemId); diff --git a/sfx2/inc/sfx2/templateremoteview.hxx b/sfx2/inc/sfx2/templateremoteview.hxx index 915f422473f1..bcb2b68fc0a4 100644 --- a/sfx2/inc/sfx2/templateremoteview.hxx +++ b/sfx2/inc/sfx2/templateremoteview.hxx @@ -35,6 +35,8 @@ public: virtual bool isNestedRegionAllowed () const; + virtual bool isImportAllowed () const; + private: com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xCmdEnv; |