|
LibreOffice Module starmath (master) 1
|
#include <import.hxx>
Public Member Functions | |
| SmMlElement * | getElementTree () |
| Gets parsed element tree. More... | |
| bool | getSuccess () const |
| Checks out if parse was a success. More... | |
| void | declareMlError () |
| Handles an error on the mathml structure. More... | |
| SmMLImport (const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString const &implementationName, SvXMLImportFlags nImportFlags) | |
| Constructor. More... | |
| virtual | ~SmMLImport () noexcept override |
| Destructor. More... | |
| void SAL_CALL | endDocument () override |
| End the document. More... | |
| SvXMLImportContext * | CreateFastContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
| Create a fast context. More... | |
| virtual void | SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override |
| Imports view settings formula. More... | |
| virtual void | SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override |
| Imports configurations settings formula. More... | |
| void | SetSmSyntaxVersion (sal_uInt16 nSmSyntaxVersion) |
| Set syntax version. More... | |
| sal_uInt16 | GetSmSyntaxVersion () const |
| Get syntax version. More... | |
Private Attributes | |
| SmMlElement * | m_pElementTree = new SmMlElement(SmMlElementType::NMlEmpty) |
| bool | m_bSuccess |
| size_t | m_nSmSyntaxVersion |
Definition at line 87 of file import.hxx.
| SmMLImport::SmMLImport | ( | const css::uno::Reference< css::uno::XComponentContext > & | rContext, |
| OUString const & | implementationName, | ||
| SvXMLImportFlags | nImportFlags | ||
| ) |
|
inlineoverridevirtualnoexcept |
|
override |
Create a fast context.
Definition at line 1190 of file import.cxx.
References declareMlError(), m_pElementTree, NMlEmpty, OFFICE, XML_DOCUMENT, XML_DOCUMENT_META, XML_DOCUMENT_SETTINGS, and XML_ELEMENT.
| void SmMLImport::declareMlError | ( | ) |
Handles an error on the mathml structure.
Definition at line 1398 of file import.cxx.
References m_bSuccess, and SAL_WARN.
Referenced by CreateFastContext().
|
override |
End the document.
Definition at line 1227 of file import.cxx.
References SfxBaseModel::GetObjectShell(), SmMlElement::getSubElement(), SmMlElement::getSubElementsCount(), m_bSuccess, m_pElementTree, SAL_WARN, SmDocShell::SetMlElementTree(), and xModel.
|
inline |
Gets parsed element tree.
Definition at line 97 of file import.hxx.
References m_pElementTree.
Referenced by SmMLImportWrapper::getElementTree().
|
inline |
|
inline |
Checks out if parse was a success.
Definition at line 101 of file import.hxx.
References m_bSuccess.
Referenced by SmMLImportWrapper::ReadThroughComponentIS().
|
overridevirtual |
|
inline |
|
overridevirtual |
Imports view settings formula.
Definition at line 1280 of file import.cxx.
References SfxBaseModel::GetObjectShell(), tools::Rectangle::GetSize(), SfxObjectShell::GetVisArea(), SAL_WARN, tools::Rectangle::SaturatingSetPosX(), tools::Rectangle::SaturatingSetPosY(), tools::Rectangle::SaturatingSetSize(), Size::setHeight(), SmDocShell::SetVisArea(), Size::setWidth(), and xModel.
|
private |
Definition at line 91 of file import.hxx.
Referenced by declareMlError(), endDocument(), and getSuccess().
|
private |
Definition at line 92 of file import.hxx.
Referenced by GetSmSyntaxVersion(), and SetSmSyntaxVersion().
|
private |
Definition at line 90 of file import.hxx.
Referenced by CreateFastContext(), endDocument(), and getElementTree().