[Libreoffice-commits] core.git: filter/source
Maxim Monastirsky
momonasmon at gmail.com
Mon Oct 28 05:35:06 PDT 2013
filter/source/textfilterdetect/filterdetect.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 8a201be240b6d408d15166be7ffc576b9e123634
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Sun Oct 27 13:26:39 2013 +0200
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 at kohei.us>
Tested-by: Kohei Yoshida <libreoffice at kohei.us>
diff --git a/filter/source/textfilterdetect/filterdetect.cxx b/filter/source/textfilterdetect/filterdetect.cxx
index ef1a1d6..360d8d4 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
More information about the Libreoffice-commits
mailing list