diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2013-12-11 20:25:57 +0200 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2013-12-11 21:33:38 +0000 |
commit | 511a59ef2c1b580a4391fa6e5d95cc6826420d65 (patch) | |
tree | b2e883cc8b4c0e54554a16df90fc976305f0b6ab /filter/source/textfilterdetect | |
parent | defc4faef618d4273ee5056359f4b8e5eed24a7c (diff) |
Open .tab files with Calc
.tab extension is a known extension for tab-separated values
according to Wikipedia.
Also add .tsv .tab files to the list of known text files, so XML
detection code won't run on it, and won't output errors to console.
Change-Id: Ifb8edc40900cb4669264e1e989c01efd61ff24bf
Reviewed-on: https://gerrit.libreoffice.org/7038
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'filter/source/textfilterdetect')
-rw-r--r-- | filter/source/textfilterdetect/filterdetect.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/source/textfilterdetect/filterdetect.cxx b/filter/source/textfilterdetect/filterdetect.cxx index 360d8d460730..deaeecd8dcf1 100644 --- a/filter/source/textfilterdetect/filterdetect.cxx +++ b/filter/source/textfilterdetect/filterdetect.cxx @@ -89,6 +89,8 @@ OUString SAL_CALL PlainTextFilterDetect::detect(uno::Sequence<beans::PropertyVal setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER)); else if (aExt == "tsv") setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER)); + else if (aExt == "tab") + setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER)); else if (aExt == "xls") setPropValue(lDescriptor, nFilter, "FilterName", OUString(CALC_TEXT_FILTER)); else if (aExt == "txt") |