diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-16 17:22:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-18 16:04:18 +0000 |
commit | c3497353cabdef735dcebd66a8818ea117623dac (patch) | |
tree | e3c5d595f1fc4e5fdb7e6d2e581dd1c655488685 /starmath/source/document.cxx | |
parent | 50a5b5580729d6d537a696f7c91f212c8f3b995d (diff) |
Combine oox::FormulaIm-/ExportBase
The original classes were both only used as base classes of SmModel, and
combining them will make it easier to replace the existing dynamic_casts to
those classes with XUnoTunnel. (And see the upcoming commit introducing
loplugin:unocast on why those dynamic_casts are dangerous.)
Change-Id: I4b1e0594fb202e3423d57db6457aa0e1b1b0b612
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144353
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index e7c5dee90c4d..556dbf9d3d78 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -79,7 +79,7 @@ #include "accessibility.hxx" #include <cfgitem.hxx> #include <utility> -#include <oox/mathml/export.hxx> +#include <oox/mathml/imexport.hxx> #include <ElementsDockingWindow.hxx> #include <smediteng.hxx> @@ -802,7 +802,7 @@ void SmDocShell::writeFormulaOoxml( if(documentType == oox::drawingml::DOCUMENT_DOCX) aEquation.ConvertFromStarMath( pSerializer, nAlign); else - aEquation.ConvertFromStarMath(pSerializer, oox::FormulaExportBase::eFormulaAlign::INLINE); + aEquation.ConvertFromStarMath(pSerializer, oox::FormulaImExportBase::eFormulaAlign::INLINE); } void SmDocShell::writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding) |