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/source/control/templatelocalview.cxx | |
parent | 57ca68147e6e6df358fcb7a991847513aa0efe9d (diff) |
fdo#60581 Display import templates only when its allowed.
Change-Id: I004b50118b1b261de4807660012b55eeecff41a3
Diffstat (limited to 'sfx2/source/control/templatelocalview.cxx')
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 611f9085afdb..a73fa23ce3b9 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -263,6 +263,11 @@ bool TemplateLocalView::isNestedRegionAllowed() const return !mnCurRegionId; } +bool TemplateLocalView::isImportAllowed() const +{ + return mnCurRegionId; +} + bool TemplateLocalView::removeRegion(const sal_uInt16 nItemId) { sal_uInt16 nRegionId = USHRT_MAX; |