summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-08-07 11:31:25 +0530
committerAkshay Deep <akshaydeepiitr@gmail.com>2016-08-15 06:50:20 +0000
commitf8f68042597cd38b8dab7413baadb093c4a01a00 (patch)
tree257188a0843259ff2712d434d5a7bb31da6ca05a /sfx2
parent95abd2fcc7acc9faaf00812f9e808a86baae6bea (diff)
tdf#101141 Show only template files in start center and template manager
Change-Id: I7869a65ba0d036d8a4373bdb736909a2ea9d1285 Reviewed-on: https://gerrit.libreoffice.org/27929 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templatelocalview.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 86ee344304a2..ca0b3897e489 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -47,7 +47,10 @@ using namespace ::com::sun::star::frame;
bool ViewFilter_Application::isFilteredExtension(FILTER_APPLICATION filter, const OUString &rExt)
{
- bool bRet = true;
+ bool bRet = rExt == "ott" || rExt == "stw" || rExt == "oth" || rExt == "dot" || rExt == "dotx" || rExt == "otm"
+ || rExt == "ots" || rExt == "stc" || rExt == "xlt" || rExt == "xltm" || rExt == "xltx"
+ || rExt == "otp" || rExt == "sti" || rExt == "pot" || rExt == "potm" || rExt == "potx"
+ || rExt == "otg" || rExt == "std";
if (filter == FILTER_APPLICATION::WRITER)
{