diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-31 09:00:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-08-31 09:01:20 +0100 |
commit | 91c6fecc208f8242d2ff04c17ec56b4a5e2c1620 (patch) | |
tree | c65bb9c436dc766c90c930588d51272a73a867bc /sc/source/filter/excel/excel.cxx | |
parent | b75e6efdd04fa1128dd2cef6e28b1ad172464143 (diff) |
ofz#2896 turn off auto look up col/row names for import testing
Change-Id: I346a9760c0692449ce5301f5075b3de0271fdadf
Diffstat (limited to 'sc/source/filter/excel/excel.cxx')
-rw-r--r-- | sc/source/filter/excel/excel.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx index 8abbd30a71b5..7f3e30b2a42e 100644 --- a/sc/source/filter/excel/excel.cxx +++ b/sc/source/filter/excel/excel.cxx @@ -34,6 +34,7 @@ #include <svl/stritem.hxx> #include "filter.hxx" #include "document.hxx" +#include "optuno.hxx" #include "xistream.hxx" #include "scerrors.hxx" @@ -223,6 +224,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportQPW(SvStream &rStream) { ScDLL::Init(); ScDocument aDocument; + ScDocOptions aDocOpt = aDocument.GetDocOptions(); + aDocOpt.SetLookUpColRowNames(false); + aDocument.SetDocOptions(aDocOpt); aDocument.MakeTable(0); return ScFormatFilter::Get().ScImportQuattroPro(&rStream, &aDocument) == ERRCODE_NONE; } @@ -231,6 +235,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportCalcRTF(SvStream &rStrea { ScDLL::Init(); ScDocument aDocument; + ScDocOptions aDocOpt = aDocument.GetDocOptions(); + aDocOpt.SetLookUpColRowNames(false); + aDocument.SetDocOptions(aDocOpt); aDocument.MakeTable(0); ScRange aRange; return ScFormatFilter::Get().ScImportRTF(rStream, OUString(), &aDocument, aRange) == ERRCODE_NONE; @@ -241,6 +248,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportXLS(const OUString &rURL ScDLL::Init(); SfxMedium aMedium(rURL, StreamMode::READ); ScDocument aDocument; + ScDocOptions aDocOpt = aDocument.GetDocOptions(); + aDocOpt.SetLookUpColRowNames(false); + aDocument.SetDocOptions(aDocOpt); aDocument.MakeTable(0); return ScFormatFilter::Get().ScImportExcel(aMedium, &aDocument, EIF_AUTO) == ERRCODE_NONE; } |