summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathtype.cxx7
-rw-r--r--starmath/source/mathtype.hxx3
2 files changed, 8 insertions, 2 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index dda5523d8be7..9f58ee1ece4a 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -564,7 +564,12 @@ bool MathType::Parse(SotStorage *pStor)
StreamMode::STD_READ);
if ( (!xSrc.is()) || (ERRCODE_NONE != xSrc->GetError()))
return false;
- pS = xSrc.get();
+ return Parse(xSrc.get());
+}
+
+bool MathType::Parse(SvStream* pStream)
+{
+ pS = pStream;
pS->SetEndian( SvStreamEndian::LITTLE );
EQNOLEFILEHDR aHdr;
diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx
index caa651acbd75..6bf10cba01ad 100644
--- a/starmath/source/mathtype.hxx
+++ b/starmath/source/mathtype.hxx
@@ -97,7 +97,8 @@ public:
Init();
}
- bool Parse( SotStorage* pStor );
+ bool Parse(SotStorage* pStor);
+ bool Parse(SvStream* pStor);
bool ConvertFromStarMath( SfxMedium& rMedium );
private: