Kaydet (Commit) 0c566771 authored tarafından Caolán McNamara's avatar Caolán McNamara

let mathtype import take a SvStream of the contents

Change-Id: I3c02dbee53554aa644b78f8a425b6a4333f2b95d
Reviewed-on: https://gerrit.libreoffice.org/45729Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 8c89cfe3
......@@ -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;
......
......@@ -97,7 +97,8 @@ public:
Init();
}
bool Parse( SotStorage* pStor );
bool Parse(SotStorage* pStor);
bool Parse(SvStream* pStor);
bool ConvertFromStarMath( SfxMedium& rMedium );
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment