32#include <com/sun/star/io/XOutputStream.hpp>
103 const css::uno::Reference<css::lang::XComponent>& xComponent,
104 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
105 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet,
106 const char16_t* pComponentName, int_fast16_t nSyntaxVersion);
111 const css::uno::Reference<css::lang::XComponent>& xComponent,
112 const char16_t* pStreamName,
113 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
114 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet,
115 const char16_t* pComponentName, int_fast16_t nSyntaxVersion);
121 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
122 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet);
199 SmMLExport(
const css::uno::Reference<css::uno::XComponentContext>& rContext,
227 = ::xmloff::token::XML_TOKEN_INVALID)
override;
231 virtual void GetViewSettings(css::uno::Sequence<css::beans::PropertyValue>& aProps)
override;
void setUseExportTag(bool bUseExportTag)
Set's if xmlns field is added.
SmMLExportWrapper(rtl::Reference< SmModel > xRef)
bool WriteThroughComponentS(const css::uno::Reference< css::embed::XStorage > &xStor, const css::uno::Reference< css::lang::XComponent > &xComponent, const char16_t *pStreamName, css::uno::Reference< css::uno::XComponentContext > const &rxContext, css::uno::Reference< css::beans::XPropertySet > const &rPropSet, const char16_t *pComponentName, int_fast16_t nSyntaxVersion)
export through an XML exporter component (storage version)
bool Export(SfxMedium &rMedium)
Export to an archive.
rtl::Reference< SmModel > m_xModel
bool getUseExportTag() const
Get's if xmlns field is added.
OUString WriteThroughComponentMS(const css::uno::Reference< css::lang::XComponent > &xComponent, css::uno::Reference< css::uno::XComponentContext > const &rxContext, css::uno::Reference< css::beans::XPropertySet > const &rPropSet)
export through an XML exporter component (memory stream version)
bool m_bUseHTMLMLEntities
bool getUseHTMLMLEntities() const
Activates the use of HTML / MathML entities such as &infinity;.
bool WriteThroughComponentOS(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 char16_t *pComponentName, int_fast16_t nSyntaxVersion)
export through an XML exporter component (output stream version)
bool getFlat() const
Checks if the writer is set to export to flat document.
void setUseHTMLMLEntities(bool bUseHTMLMLEntities)
Checks the use of HTML / MathML entities such as &infinity;.
SmMlElement * m_pElementTree
void setFlat(bool bFlat)
Set's the writer to export to flat document.
void setUseExportTag(bool bUseExportTag)
Set's if xmlns field is added.
SmMLExport(const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString const &implementationName, SvXMLExportFlags nExportFlags)
Constructor.
void setElementTree(SmMlElement *pElementTree)
Set's the element tree to be exported.
ErrCode exportDoc(enum ::xmloff::token::XMLTokenEnum eClass=::xmloff::token::XML_TOKEN_INVALID) override
Exports the document If m_pElementTree isn't null then exports m_pElementTree.
void exportMlElementTree()
Exports an element tree.
void ExportMasterStyles_() override
Exports master styles However math doesn't have any.
void declareMlError()
Handles an error on the mathml structure.
void ExportContent_() override
Exports formula Handler used from exportDoc.
virtual void GetConfigurationSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
Get's configuration settings and prepares them to export.
SvXMLElementExport * createElementExport(xmloff::token::XMLTokenEnum nElement)
Adds an element.
bool getUseExportTag() const
Get's if xmlns field is added.
SvXMLElementExport * exportMlElement(const SmMlElement *pMlElement)
Exports an element and all it's attributes.
virtual void GetViewSettings(css::uno::Sequence< css::beans::PropertyValue > &aProps) override
Get's view settings and prepares them to export.
bool getSuccess() const
Everything was allright.
void exportMlAttributes(const SmMlElement *pMlElement)
Exports attributes of an element.
SmDocShell * getSmDocShell()
Get's document shell.
void exportMlAttributeLength(xmloff::token::XMLTokenEnum pAttribute, const SmLengthValue &aLengthValue)
Exports an attribute of type "length".
SmMlElement * m_pElementTree
void addAttribute(xmloff::token::XMLTokenEnum pAttribute, const OUString &pAttributeValue)
Adds an attribute.
void ExportAutoStyles_() override
Exports auto styles However math doesn't have any.
void addAttribute(xmloff::token::XMLTokenEnum pAttribute, xmloff::token::XMLTokenEnum pAttributeValue)
Adds an attribute.
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
constexpr sal_uInt16 XML_NAMESPACE_MATH