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

#include <import.hxx>

Collaboration diagram for SmMLImportWrapper:
[legend]

Public Member Functions

SmMlElementgetElementTree ()
 Get the element tree when parsed from text. More...
 
 SmMLImportWrapper (rtl::Reference< SmModel > xRef)
 Constructor. More...
 
ErrCode Import (SfxMedium &rMedium)
 Imports the mathml. More...
 
ErrCode Import (std::u16string_view aSource)
 Imports the mathml. More...
 
ErrCode ReadThroughComponentIS (const css::uno::Reference< css::io::XInputStream > &xInputStream, const css::uno::Reference< css::lang::XComponent > &xModelComponent, css::uno::Reference< css::uno::XComponentContext > const &rxContext, css::uno::Reference< css::beans::XPropertySet > const &rPropSet, const char16_t *pFilterName, bool bEncrypted, int_fast16_t nSyntaxVersion)
 read a component from input stream More...
 
ErrCode ReadThroughComponentS (const css::uno::Reference< css::embed::XStorage > &xStorage, const css::uno::Reference< css::lang::XComponent > &xModelComponent, const char16_t *pStreamName, css::uno::Reference< css::uno::XComponentContext > const &rxContext, css::uno::Reference< css::beans::XPropertySet > const &rPropSet, const char16_t *pFilterName, int_fast16_t nSyntaxVersion)
 read a component from storage More...
 
ErrCode ReadThroughComponentMS (std::u16string_view aText, const css::uno::Reference< css::lang::XComponent > &xModelComponent, css::uno::Reference< css::uno::XComponentContext > const &rxContext, css::uno::Reference< css::beans::XPropertySet > const &rPropSet)
 read a component from text More...
 

Private Attributes

rtl::Reference< SmModelm_xModel
 
SmDocShellm_pDocShell
 
SmMLImportm_pMlImport
 

Detailed Description

Definition at line 27 of file import.hxx.

Constructor & Destructor Documentation

◆ SmMLImportWrapper()

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

Constructor.

Definition at line 44 of file import.hxx.

Member Function Documentation

◆ getElementTree()

SmMlElement * SmMLImportWrapper::getElementTree ( )

Get the element tree when parsed from text.

Definition at line 71 of file import.cxx.

References SmMLImport::getElementTree(), and m_pMlImport.

◆ Import() [1/2]

ErrCode SmMLImportWrapper::Import ( SfxMedium rMedium)

◆ Import() [2/2]

ErrCode SmMLImportWrapper::Import ( std::u16string_view  aSource)

◆ ReadThroughComponentIS()

ErrCode SmMLImportWrapper::ReadThroughComponentIS ( const css::uno::Reference< css::io::XInputStream > &  xInputStream,
const css::uno::Reference< css::lang::XComponent > &  xModelComponent,
css::uno::Reference< css::uno::XComponentContext > const &  rxContext,
css::uno::Reference< css::beans::XPropertySet > const &  rPropSet,
const char16_t *  pFilterName,
bool  bEncrypted,
int_fast16_t  nSyntaxVersion 
)

◆ ReadThroughComponentMS()

ErrCode SmMLImportWrapper::ReadThroughComponentMS ( std::u16string_view  aText,
const css::uno::Reference< css::lang::XComponent > &  xModelComponent,
css::uno::Reference< css::uno::XComponentContext > const &  rxContext,
css::uno::Reference< css::beans::XPropertySet > const &  rPropSet 
)

◆ ReadThroughComponentS()

ErrCode SmMLImportWrapper::ReadThroughComponentS ( const css::uno::Reference< css::embed::XStorage > &  xStorage,
const css::uno::Reference< css::lang::XComponent > &  xModelComponent,
const char16_t *  pStreamName,
css::uno::Reference< css::uno::XComponentContext > const &  rxContext,
css::uno::Reference< css::beans::XPropertySet > const &  rPropSet,
const char16_t *  pFilterName,
int_fast16_t  nSyntaxVersion 
)

read a component from storage

Definition at line 493 of file import.cxx.

References Any, ERRCODE_IO_BROKENPACKAGE, ERRCODE_SFX_DOLOADFAILED, ERRCODE_SFX_WRONGPASSWORD, ReadThroughComponentIS(), SAL_WARN, and xStream.

Referenced by Import().

Member Data Documentation

◆ m_pDocShell

SmDocShell* SmMLImportWrapper::m_pDocShell
private

Definition at line 30 of file import.hxx.

Referenced by Import().

◆ m_pMlImport

SmMLImport* SmMLImportWrapper::m_pMlImport
private

Definition at line 31 of file import.hxx.

Referenced by getElementTree(), and ReadThroughComponentIS().

◆ m_xModel

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

Definition at line 29 of file import.hxx.

Referenced by Import().


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