summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-31 09:00:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-08-31 09:01:20 +0100
commit91c6fecc208f8242d2ff04c17ec56b4a5e2c1620 (patch)
treec65bb9c436dc766c90c930588d51272a73a867bc /sc/source/ui/docshell
parentb75e6efdd04fa1128dd2cef6e28b1ad172464143 (diff)
ofz#2896 turn off auto look up col/row names for import testing
Change-Id: I346a9760c0692449ce5301f5075b3de0271fdadf
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/docsh.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 3c9d8c5d3c73..c6fd2f0ea317 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -125,6 +125,7 @@
#include "cellsuno.hxx"
#include "dpobject.hxx"
#include "markdata.hxx"
+#include "optuno.hxx"
#include "orcusfilters.hxx"
#include <datastream.hxx>
#include <documentlinkmgr.hxx>
@@ -3244,6 +3245,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportSLK(SvStream &rStream)
{
ScDLL::Init();
ScDocument aDocument;
+ ScDocOptions aDocOpt = aDocument.GetDocOptions();
+ aDocOpt.SetLookUpColRowNames(false);
+ aDocument.SetDocOptions(aDocOpt);
aDocument.MakeTable(0);
ScImportExport aImpEx(&aDocument);
return aImpEx.ImportStream(rStream, OUString(), SotClipboardFormatId::SYLK);