diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-09 15:36:03 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-13 01:54:35 -0400 |
commit | 0552a09b95010d0f622688c2508a0684803a3fa5 (patch) | |
tree | 7bc34a9a805cddd9686a3ff5614ca92771cf05c2 /framework | |
parent | 938d2f9502359f696b0680f249c8e644cd1caba0 (diff) |
Manage to use orcus to import ods, xlsx, and csv.
But this occasionally crashes.
Change-Id: I0a18d0e210639b43b89b966a54de541b9a43e329
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 86646d58ec4e..c82422218c59 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -744,7 +744,6 @@ bool queryOrcusTypeAndFilter(const uno::Sequence<beans::PropertyValue>& rDescrip rFilter = "gnumeric"; return true; } -#if 0 else if (aURL.endsWith(".xlsx")) { rType = "generic_Text"; @@ -757,7 +756,12 @@ bool queryOrcusTypeAndFilter(const uno::Sequence<beans::PropertyValue>& rDescrip rFilter = "ods"; return true; } -#endif + else if (aURL.endsWith(".csv")) + { + rType = "generic_Text"; + rFilter = "csv"; + return true; + } return false; } |