diff options
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 7586e64d3089..36df9ae505dc 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -96,6 +96,7 @@ #include <view.hxx> #include "mathtype.hxx" #include "ooxmlexport.hxx" +#include "ooxmlimport.hxx" #include "mathmlimport.hxx" #include "mathmlexport.hxx" #include <sfx2/sfxsids.hrc> @@ -998,6 +999,15 @@ bool SmDocShell::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, return aEquation.ConvertFromStarMath( m_pSerializer ); } +bool SmDocShell::readFormulaOoxml( ooxmlformulaimport::XmlStream& stream ) +{ + RTL_LOGFILE_CONTEXT( aLog, "starmath: SmDocShell::readFormulaOoxml" ); + + SmOoxmlImport aEquation( stream ); + SetText( aEquation.ConvertToStarMath()); + return true; // TODO just void? +} + sal_Bool SmDocShell::SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage ) { RTL_LOGFILE_CONTEXT( aLog, "starmath: SmDocShell::SaveCompleted" ); |