LibreOffice Module starmath (master) 1
|
#include <import.hxx>
Public Member Functions | |
SmMlElement * | getElementTree () |
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< SmModel > | m_xModel |
SmDocShell * | m_pDocShell |
SmMLImport * | m_pMlImport |
Definition at line 27 of file import.hxx.
|
inlineexplicit |
Constructor.
Definition at line 44 of file import.hxx.
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.
Imports the mathml.
Definition at line 76 of file import.cxx.
References aName, Any, ERRCODE_NONE, ERRCODE_SFX_DOLOADFAILED, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxMedium::GetBaseURL(), SfxObjectShell::GetCreateMode(), SfxMedium::GetInStream(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxBaseModel::GetObjectShell(), comphelper::getProcessComponentContext(), SmDocShell::GetSmSyntaxVersion(), SfxMedium::GetStorage(), SfxUnoAnyItem::GetValue(), CntUnencodedStringItem::GetValue(), SotStorage::GetVersion(), SfxMedium::IsStorage(), m_pDocShell, m_xModel, ReadThroughComponentIS(), ReadThroughComponentS(), SAL_INFO_IF, SAL_WARN, SOFFICE_FILEFORMAT_60, SvxResId(), and u.
ErrCode SmMLImportWrapper::Import | ( | std::u16string_view | aSource | ) |
Imports the mathml.
Definition at line 285 of file import.cxx.
References ERRCODE_NONE, ERRCODE_SFX_DOLOADFAILED, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxBaseModel::GetObjectShell(), comphelper::getProcessComponentContext(), m_pDocShell, m_xModel, ReadThroughComponentMS(), SAL_WARN, and u.
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 | ||
) |
read a component from input stream
Definition at line 354 of file import.cxx.
References Any, ERRCODE_ABORT, ERRCODE_IO_BROKENPACKAGE, ERRCODE_IO_UNKNOWN, ERRCODE_NONE, ERRCODE_SFX_DOLOADFAILED, ERRCODE_SFX_WRONGPASSWORD, SmMLImport::getSuccess(), SmXMLImport::GetSuccess(), starmathdatabase::icustomMathmlHtmlEntities, m_pMlImport, and SAL_WARN.
Referenced by Import(), ReadThroughComponentMS(), and ReadThroughComponentS().
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 | ||
) |
read a component from text
Definition at line 547 of file import.cxx.
References ERRCODE_IO_BROKENPACKAGE, ERRCODE_SFX_DOLOADFAILED, ERRCODE_SFX_WRONGPASSWORD, OUStringToOString(), ReadThroughComponentIS(), SAL_WARN, u, SvStream::WriteOString(), and xStream.
Referenced by Import().
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().
|
private |
Definition at line 30 of file import.hxx.
Referenced by Import().
|
private |
Definition at line 31 of file import.hxx.
Referenced by getElementTree(), and ReadThroughComponentIS().
|
private |
Definition at line 29 of file import.hxx.
Referenced by Import().