summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-02 20:43:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-03 10:30:23 +0100
commita60d7fde5455a4c19ef36411e9f15cbded45175e (patch)
treec4bb597268b5310e8aec0c8c877651df6fdd915f /starmath
parente6e74b0609f3eb849f4ced0c6ca760f226625bc9 (diff)
Add mathtype to fftester
Change-Id: If082fc85d943c5b2537800456dcebbce3cb10791 Reviewed-on: https://gerrit.libreoffice.org/45730 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 'starmath')
-rw-r--r--starmath/source/mathtype.cxx7
-rw-r--r--starmath/source/mathtype.hxx2
2 files changed, 8 insertions, 1 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 9f58ee1ece4a..3843bc0d1da7 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -3336,4 +3336,11 @@ void MathType::HandleText(SmNode *pNode)
}
}
+extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportMathType(SvStream &rStream)
+{
+ OUString sText;
+ MathType aEquation(sText);
+ return aEquation.Parse(&rStream);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx
index 577196aac565..25d80de86b8c 100644
--- a/starmath/source/mathtype.hxx
+++ b/starmath/source/mathtype.hxx
@@ -98,7 +98,7 @@ public:
}
bool Parse(SotStorage* pStor);
- bool Parse(SvStream* pStor);
+ bool Parse(SvStream* pStream);
bool ConvertFromStarMath( SfxMedium& rMedium );
private: