summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-13 14:14:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-13 22:18:23 +0100
commita097077e1f3d433ab7cbc84c408c96f9adce1534 (patch)
treee704968b3f4492b6078a1046057977e4d3a01fff /sc
parent9aa9bdb7eae18a8c821b7701b356fe0f5cee1873 (diff)
speed up slk fuzzing
Change-Id: If026585ff39a42467dcf7dc4cf116035995f88f1 Reviewed-on: https://gerrit.libreoffice.org/49659 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/document.hxx2
-rw-r--r--sc/source/filter/qpro/qpro.cxx2
-rw-r--r--sc/source/ui/docshell/docsh.cxx3
3 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index baddf99786c4..26d82e631683 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -2027,7 +2027,7 @@ public:
void SetInsertingFromOtherDoc( bool bVal ) { bInsertingFromOtherDoc = bVal; }
bool IsInsertingFromOtherDoc() const { return bInsertingFromOtherDoc; }
void SetLoadingMedium( bool bVal );
- void SetImportingXML( bool bVal );
+ SC_DLLPUBLIC void SetImportingXML( bool bVal );
bool IsImportingXML() const { return bImportingXML; }
bool IsCalcingAfterLoad() const { return bCalcingAfterLoad; }
void SetNoListening( bool bVal ) { bNoListening = bVal; }
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 5ac793a0efec..71c04172437c 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -244,6 +244,8 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportQPW(SvStream &rStream)
aDocument.MakeTable(0);
aDocument.EnableExecuteLink(false);
aDocument.SetInsertingFromOtherDoc(true);
+ aDocument.SetImportingXML(true);
+ aDocument.EnableUndo(false);
ScQProReader aReader(&rStream);
ErrCode eRet = aReader.parse(&aDocument);
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 1e56605c1d78..f794bf89e98d 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -3262,6 +3262,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportSLK(SvStream &rStream)
aDocument.MakeTable(0);
aDocument.EnableExecuteLink(false);
aDocument.SetInsertingFromOtherDoc(true);
+ aDocument.SetImportingXML(true);
+ aDocument.EnableUndo(false);
+
ScImportExport aImpEx(&aDocument);
return aImpEx.ImportStream(rStream, OUString(), SotClipboardFormatId::SYLK);
}