diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 15:06:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-28 21:36:53 +0200 |
commit | ff4a22b003f836b9f5c8d5526d733d9d86871de0 (patch) | |
tree | e15f6dd2357c9b059a0adf1c1cb35d9e6494a17f /sc | |
parent | 32894034ea7b283d6c60cb77ef5d8b43a9c15d65 (diff) |
add calc rtf filter test hook
Change-Id: Ib15f1094929e1670537657b4c19cc1e0bfd39bbd
Reviewed-on: https://gerrit.libreoffice.org/40537
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excel.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx index b6087bf30715..8abbd30a71b5 100644 --- a/sc/source/filter/excel/excel.cxx +++ b/sc/source/filter/excel/excel.cxx @@ -227,6 +227,15 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportQPW(SvStream &rStream) return ScFormatFilter::Get().ScImportQuattroPro(&rStream, &aDocument) == ERRCODE_NONE; } +extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportCalcRTF(SvStream &rStream) +{ + ScDLL::Init(); + ScDocument aDocument; + aDocument.MakeTable(0); + ScRange aRange; + return ScFormatFilter::Get().ScImportRTF(rStream, OUString(), &aDocument, aRange) == ERRCODE_NONE; +} + extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportXLS(const OUString &rURL) { ScDLL::Init(); |