diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 8e8747d3c793..d13cd8218055 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -70,8 +70,8 @@ #include "ooxmlexport.hxx" #include "ooxmlimport.hxx" #include "rtfexport.hxx" -#include -#include +#include +#include #include #include #include @@ -594,8 +594,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium) InvalidateCursor(); } Reference xModel(GetModel()); - SmXMLImportWrapper aEquation(xModel); - aEquation.useHTMLMLEntities(true); + SmMLImportWrapper aEquation(xModel); bSuccess = ( ERRCODE_NONE == aEquation.Import(rMedium) ); } else @@ -655,7 +654,7 @@ bool SmDocShell::Load( SfxMedium& rMedium ) { // is this a fabulous math package ? Reference xModel(GetModel()); - SmXMLImportWrapper aEquation(xModel); + SmMLImportWrapper aEquation(xModel); auto nError = aEquation.Import(rMedium); bRet = ERRCODE_NONE == nError; SetError(nError); @@ -686,8 +685,8 @@ bool SmDocShell::Save() ArrangeFormula(); Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); - aEquation.SetFlat(false); + SmMLExportWrapper aEquation(xModel); + aEquation.setFlat(false); return aEquation.Export(*GetMedium()); } @@ -746,8 +745,8 @@ bool SmDocShell::SaveAs( SfxMedium& rMedium ) ArrangeFormula(); Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); - aEquation.SetFlat(false); + SmMLExportWrapper aEquation(xModel); + aEquation.setFlat(false); bRet = aEquation.Export(rMedium); } return bRet; @@ -768,16 +767,16 @@ bool SmDocShell::ConvertTo( SfxMedium &rMedium ) if(rFltName == STAROFFICE_XML) { Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); - aEquation.SetFlat(false); + SmMLExportWrapper aEquation(xModel); + aEquation.setFlat(false); bRet = aEquation.Export(rMedium); } else if(rFltName == MATHML_XML) { Reference xModel(GetModel()); - SmXMLExportWrapper aEquation(xModel); - aEquation.SetFlat(true); - aEquation.SetUseHTMLMLEntities(true); + SmMLExportWrapper aEquation(xModel); + aEquation.setFlat(true); + aEquation.setUseHTMLMLEntities(true); bRet = aEquation.Export(rMedium); } else if (pFlt->GetFilterName() == "MathType 3.x") diff --git a/starmath/util/sm.component b/starmath/util/sm.component index 2b84a17c429c..29eb7c9b4168 100644 --- a/starmath/util/sm.component +++ b/starmath/util/sm.component @@ -67,4 +67,28 @@ constructor="org_libreoffice_comp_Math_sidebar_SmPanelFactory"> + + + + + + + + + + + + + + + + + +