summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/templatedlg.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 848aeb8733a2..2810ef5e79b7 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -127,7 +127,18 @@ public:
bRet = aExt == "otg" || aExt == "std";
}
- return bRet && rItem.aName.matchIgnoreAsciiCase(maKeyword);
+ return bRet && MatchSubstring(rItem.aName);
+ }
+
+ bool MatchSubstring( OUString sItemName )
+ {
+ if(maKeyword.isEmpty())
+ return false;
+ sItemName = sItemName.toAsciiLowerCase();
+ maKeyword = maKeyword.toAsciiLowerCase();
+ if(sItemName.indexOf(maKeyword) >= 0)
+ return true;
+ return false;
}
private: