summaryrefslogtreecommitdiff
path: root/sc/source/filter/orcus/filterdetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/orcus/filterdetect.cxx')
-rw-r--r--sc/source/filter/orcus/filterdetect.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/filter/orcus/filterdetect.cxx b/sc/source/filter/orcus/filterdetect.cxx
index 137585384e48..32bac167063f 100644
--- a/sc/source/filter/orcus/filterdetect.cxx
+++ b/sc/source/filter/orcus/filterdetect.cxx
@@ -80,8 +80,16 @@ OUString OrcusFormatDetect::detect(css::uno::Sequence<css::beans::PropertyValue>
}
orcus::format_t eFormat = orcus::detect(reinterpret_cast<const unsigned char*>(aContent.getStr()), aContent.getLength());
- if (eFormat == orcus::format_t::gnumeric)
- return OUString("Gnumeric XML");
+
+ switch (eFormat)
+ {
+ case orcus::format_t::gnumeric:
+ return OUString("Gnumeric XML");
+ case orcus::format_t::xls_xml:
+ return OUString("calc_MS_Excel_2003_XML");
+ default:
+ ;
+ }
return OUString();
}