LibreOffice Module starmath (master) 1
|
#include <export.hxx>
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< SmModel > | m_xModel |
bool | m_bFlat |
bool | m_bUseHTMLMLEntities |
SmMlElement * | m_pElementTree |
bool | m_bUseExportTag |
Definition at line 38 of file export.hxx.
|
inlineexplicit |
Definition at line 81 of file export.hxx.
bool SmMLExportWrapper::Export | ( | SfxMedium & | rMedium | ) |
Export to an archive.
Definition at line 68 of file export.cxx.
References aName, Any, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxMedium::GetBaseURL(), SfxObjectShell::GetCreateMode(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxMedium::GetOutputStorage(), SfxMedium::GetOutStream(), comphelper::getProcessComponentContext(), SmDocShell::GetSmSyntaxVersion(), SfxUnoAnyItem::GetValue(), CntUnencodedStringItem::GetValue(), m_bFlat, m_xModel, SAL_WARN, SAL_WARN_IF, SmResId(), u, WriteThroughComponentOS(), and WriteThroughComponentS().
OUString SmMLExportWrapper::Export | ( | SmMlElement * | pElementTree | ) |
Just export a mathml tree.
Definition at line 229 of file export.cxx.
References Any, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxBaseModel::GetObjectShell(), comphelper::getProcessComponentContext(), m_pElementTree, m_xModel, SAL_WARN, SAL_WARN_IF, u, and WriteThroughComponentMS().
|
inline |
Checks if the writer is set to export to flat document.
Definition at line 59 of file export.hxx.
References m_bFlat.
|
inline |
Get's if xmlns field is added.
Definition at line 74 of file export.hxx.
References m_bUseExportTag.
|
inline |
Activates the use of HTML / MathML entities such as &infinity;.
Definition at line 70 of file export.hxx.
References m_bUseHTMLMLEntities.
|
inline |
Set's the writer to export to flat document.
Definition at line 55 of file export.hxx.
References m_bFlat.
|
inline |
Set's if xmlns field is added.
Definition at line 78 of file export.hxx.
References m_bUseExportTag.
|
inline |
Checks the use of HTML / MathML entities such as &infinity;.
Definition at line 63 of file export.hxx.
References m_bUseHTMLMLEntities.
|
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().
|
protected |
export through an XML exporter component (output stream version)
Definition at line 282 of file export.cxx.
References Any, SmMLExport::getSuccess(), SmXMLExport::GetSuccess(), starmathdatabase::icustomMathmlHtmlEntitiesExport, m_bUseExportTag, m_bUseHTMLMLEntities, m_pElementTree, SAL_WARN, SmMLExport::setElementTree(), and SmMLExport::setUseExportTag().
Referenced by Export(), WriteThroughComponentMS(), and WriteThroughComponentS().
|
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().
|
private |
Definition at line 44 of file export.hxx.
|
private |
Definition at line 50 of file export.hxx.
Referenced by getUseExportTag(), setUseExportTag(), and WriteThroughComponentOS().
|
private |
Definition at line 46 of file export.hxx.
Referenced by getUseHTMLMLEntities(), setUseHTMLMLEntities(), and WriteThroughComponentOS().
|
private |
Definition at line 48 of file export.hxx.
Referenced by Export(), and WriteThroughComponentOS().
|
private |
Definition at line 42 of file export.hxx.
Referenced by Export().