diff options
author | dante <dante19031999@gmail.com> | 2021-03-07 12:30:57 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-07 15:50:19 +0100 |
commit | 4e57d6a51c5d619ff41e1a2990267fdc67b0e53a (patch) | |
tree | 9170214ab57667bb8e1de41f22c50554fb775455 /starmath/inc/mathml | |
parent | 57c8f13d176cccf913573dafaf10a870619822fc (diff) |
Simplify the use of custom hmtl/mathml entities on matmlexport
This patch also serves as a base for further improvements.
Change-Id: I72967e3c9739576fb74d16e656f41c440af3a4ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112127
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc/mathml')
-rw-r--r-- | starmath/inc/mathml/mathmlexport.hxx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/starmath/inc/mathml/mathmlexport.hxx b/starmath/inc/mathml/mathmlexport.hxx index 3a32a6e164f5..eae2dd4d7423 100644 --- a/starmath/inc/mathml/mathmlexport.hxx +++ b/starmath/inc/mathml/mathmlexport.hxx @@ -57,22 +57,25 @@ public: bool Export(SfxMedium& rMedium); void SetFlat(bool bIn) { bFlat = bIn; } - void useHTMLMLEntities(bool bUseHTMLMLEntities) { m_bUseHTMLMLEntities = bUseHTMLMLEntities; } - - static bool - WriteThroughComponent(const css::uno::Reference<css::io::XOutputStream>& xOutputStream, - const css::uno::Reference<css::lang::XComponent>& xComponent, - css::uno::Reference<css::uno::XComponentContext> const& rxContext, - css::uno::Reference<css::beans::XPropertySet> const& rPropSet, - const char* pComponentName, bool bUseHTMLMLEntities); - - static bool - WriteThroughComponent(const css::uno::Reference<css::embed::XStorage>& xStor, - const css::uno::Reference<css::lang::XComponent>& xComponent, - const char* pStreamName, - css::uno::Reference<css::uno::XComponentContext> const& rxContext, - css::uno::Reference<css::beans::XPropertySet> const& rPropSet, - const char* pComponentName, bool bUseHTMLMLEntities); + + bool IsUseHTMLMLEntities() const { return m_bUseHTMLMLEntities; } + void SetUseHTMLMLEntities(bool bUseHTMLMLEntities) + { + m_bUseHTMLMLEntities = bUseHTMLMLEntities; + } + + bool WriteThroughComponent(const css::uno::Reference<css::io::XOutputStream>& xOutputStream, + const css::uno::Reference<css::lang::XComponent>& xComponent, + css::uno::Reference<css::uno::XComponentContext> const& rxContext, + css::uno::Reference<css::beans::XPropertySet> const& rPropSet, + const char* pComponentName); + + bool WriteThroughComponent(const css::uno::Reference<css::embed::XStorage>& xStor, + const css::uno::Reference<css::lang::XComponent>& xComponent, + const char* pStreamName, + css::uno::Reference<css::uno::XComponentContext> const& rxContext, + css::uno::Reference<css::beans::XPropertySet> const& rPropSet, + const char* pComponentName); }; class SmXMLExport final : public SvXMLExport |