[Libreoffice-commits] core.git: sfx2/source

Akshay Deep akshaydeepiitr at gmail.com
Mon Aug 15 06:50:39 UTC 2016


 sfx2/source/control/templatelocalview.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit f8f68042597cd38b8dab7413baadb093c4a01a00
Author: Akshay Deep <akshaydeepiitr at gmail.com>
Date:   Sun Aug 7 11:31:25 2016 +0530

    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 at hotmail.com>
    Tested-by: Yousuf Philips <philipz85 at hotmail.com>
    Reviewed-by: Akshay Deep <akshaydeepiitr at gmail.com>

diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 86ee344..ca0b389 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)
     {


More information about the Libreoffice-commits mailing list