[Libreoffice-commits] core.git: sc/inc sc/source
Caolán McNamara
caolanm at redhat.com
Tue Feb 13 21:18:46 UTC 2018
sc/inc/document.hxx | 2 +-
sc/source/filter/qpro/qpro.cxx | 2 ++
sc/source/ui/docshell/docsh.cxx | 3 +++
3 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit a097077e1f3d433ab7cbc84c408c96f9adce1534
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 13 14:14:22 2018 +0000
speed up slk fuzzing
Change-Id: If026585ff39a42467dcf7dc4cf116035995f88f1
Reviewed-on: https://gerrit.libreoffice.org/49659
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list