LibreOffice Module starmath (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SmMLExportWrapper Class Reference

#include <export.hxx>

Collaboration diagram for SmMLExportWrapper:
[legend]

Public Member Functions

void setFlat (bool bFlat)
 Set's the writer to export to flat document. More...
 
bool getFlat () const
 Checks if the writer is set to export to flat document. More...
 
void setUseHTMLMLEntities (bool bUseHTMLMLEntities)
 Checks the use of HTML / MathML entities such as &infinity;. More...
 
bool getUseHTMLMLEntities () const
 Activates the use of HTML / MathML entities such as &infinity;. More...
 
bool getUseExportTag () const
 Get's if xmlns field is added. More...
 
void setUseExportTag (bool bUseExportTag)
 Set's if xmlns field is added. More...
 
 SmMLExportWrapper (rtl::Reference< SmModel > xRef)
 
bool Export (SfxMedium &rMedium)
 Export to an archive. More...
 
OUString Export (SmMlElement *pElementTree)
 Just export a mathml tree. More...
 

Protected Member Functions

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) More...
 
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) More...
 
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) More...
 

Private Attributes

rtl::Reference< SmModelm_xModel
 
bool m_bFlat
 
bool m_bUseHTMLMLEntities
 
SmMlElementm_pElementTree
 
bool m_bUseExportTag
 

Detailed Description

Definition at line 38 of file export.hxx.

Constructor & Destructor Documentation

◆ SmMLExportWrapper()

SmMLExportWrapper::SmMLExportWrapper ( rtl::Reference< SmModel xRef)
inlineexplicit

Definition at line 81 of file export.hxx.

Member Function Documentation

◆ Export() [1/2]

bool SmMLExportWrapper::Export ( SfxMedium rMedium)

◆ Export() [2/2]

OUString SmMLExportWrapper::Export ( SmMlElement pElementTree)

◆ getFlat()

bool SmMLExportWrapper::getFlat ( ) const
inline

Checks if the writer is set to export to flat document.

Definition at line 59 of file export.hxx.

References m_bFlat.

◆ getUseExportTag()

bool SmMLExportWrapper::getUseExportTag ( ) const
inline

Get's if xmlns field is added.

Definition at line 74 of file export.hxx.

References m_bUseExportTag.

◆ getUseHTMLMLEntities()

bool SmMLExportWrapper::getUseHTMLMLEntities ( ) const
inline

Activates the use of HTML / MathML entities such as &infinity;.

Definition at line 70 of file export.hxx.

References m_bUseHTMLMLEntities.

◆ setFlat()

void SmMLExportWrapper::setFlat ( bool  bFlat)
inline

Set's the writer to export to flat document.

Definition at line 55 of file export.hxx.

References m_bFlat.

◆ setUseExportTag()

void SmMLExportWrapper::setUseExportTag ( bool  bUseExportTag)
inline

Set's if xmlns field is added.

Definition at line 78 of file export.hxx.

References m_bUseExportTag.

◆ setUseHTMLMLEntities()

void SmMLExportWrapper::setUseHTMLMLEntities ( bool  bUseHTMLMLEntities)
inline

Checks the use of HTML / MathML entities such as &infinity;.

Definition at line 63 of file export.hxx.

References m_bUseHTMLMLEntities.

◆ WriteThroughComponentMS()

OUString SmMLExportWrapper::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 
)
protected

export through an XML exporter component (memory stream version)

Definition at line 400 of file export.cxx.

References Any, SvMemoryStream::GetData(), SvMemoryStream::GetSize(), u, WriteThroughComponentOS(), and xStream.

Referenced by Export().

◆ WriteThroughComponentOS()

bool SmMLExportWrapper::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 
)
protected

◆ WriteThroughComponentS()

bool SmMLExportWrapper::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 
)
protected

export through an XML exporter component (storage version)

Definition at line 354 of file export.cxx.

References Any, SAL_WARN, u, WriteThroughComponentOS(), and xStream.

Referenced by Export().

Member Data Documentation

◆ m_bFlat

bool SmMLExportWrapper::m_bFlat
private

Definition at line 44 of file export.hxx.

Referenced by Export(), getFlat(), and setFlat().

◆ m_bUseExportTag

bool SmMLExportWrapper::m_bUseExportTag
private

Definition at line 50 of file export.hxx.

Referenced by getUseExportTag(), setUseExportTag(), and WriteThroughComponentOS().

◆ m_bUseHTMLMLEntities

bool SmMLExportWrapper::m_bUseHTMLMLEntities
private

Definition at line 46 of file export.hxx.

Referenced by getUseHTMLMLEntities(), setUseHTMLMLEntities(), and WriteThroughComponentOS().

◆ m_pElementTree

SmMlElement* SmMLExportWrapper::m_pElementTree
private

Definition at line 48 of file export.hxx.

Referenced by Export(), and WriteThroughComponentOS().

◆ m_xModel

rtl::Reference<SmModel> SmMLExportWrapper::m_xModel
private

Definition at line 42 of file export.hxx.

Referenced by Export().


The documentation for this class was generated from the following files: