summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2013-10-27 13:26:39 +0200
committerKohei Yoshida <libreoffice@kohei.us>2013-10-28 13:54:25 +0000
commite08785bc0a5bf75d4866a23ee62c591611d475c5 (patch)
treed5dc3fd389a3ab6acf80b937b5814a7e0f7fc753
parent942aeb23bfdd7322ad9e239f19115ec9ceac6020 (diff)
fdo#68903 Import .tsv and .xls plain text files in Calc by default
Change-Id: I14115542d7f0401f4fa8face9f255b4512fc0ac3 Reviewed-on: https://gerrit.libreoffice.org/6448 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us> (cherry picked from commit 8a201be240b6d408d15166be7ffc576b9e123634) Reviewed-on: https://gerrit.libreoffice.org/6465
-rw-r--r--filter/source/textfilterdetect/filterdetect.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/source/textfilterdetect/filterdetect.cxx b/filter/source/textfilterdetect/filterdetect.cxx
index ef1a1d65eace..360d8d460730 100644
--- a/filter/source/textfilterdetect/filterdetect.cxx
+++ b/filter/source/textfilterdetect/filterdetect.cxx
@@ -87,6 +87,10 @@ OUString SAL_CALL PlainTextFilterDetect::detect(uno::Sequence<beans::PropertyVal
setPropValue(lDescriptor, nFilter, "FilterName", OUString(WRITER_TEXT_FILTER));
else if (aExt == "csv")
setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER));
+ else if (aExt == "tsv")
+ setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER));
+ else if (aExt == "xls")
+ setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER));
else if (aExt == "txt")
setPropValue(lDescriptor, nFilter, "FilterName", OUString(WRITER_TEXT_FILTER));
else