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

#include <import.hxx>

Inheritance diagram for SmMLImport:
[legend]
Collaboration diagram for SmMLImport:
[legend]

Public Member Functions

SmMlElementgetElementTree ()
 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...
 
SvXMLImportContextCreateFastContext (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

SmMlElementm_pElementTree = new SmMlElement(SmMlElementType::NMlEmpty)
 
bool m_bSuccess
 
size_t m_nSmSyntaxVersion
 

Detailed Description

Definition at line 87 of file import.hxx.

Constructor & Destructor Documentation

◆ SmMLImport()

SmMLImport::SmMLImport ( const css::uno::Reference< css::uno::XComponentContext > &  rContext,
OUString const &  implementationName,
SvXMLImportFlags  nImportFlags 
)

Constructor.

Definition at line 1387 of file import.cxx.

References implementationName.

◆ ~SmMLImport()

virtual SmMLImport::~SmMLImport ( )
inlineoverridevirtualnoexcept

Destructor.

Definition at line 116 of file import.hxx.

References cleanup().

Member Function Documentation

◆ CreateFastContext()

SvXMLImportContext * SmMLImport::CreateFastContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
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.

◆ declareMlError()

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

◆ endDocument()

void SmMLImport::endDocument ( )
override

◆ getElementTree()

SmMlElement * SmMLImport::getElementTree ( )
inline

Gets parsed element tree.

Definition at line 97 of file import.hxx.

References m_pElementTree.

Referenced by SmMLImportWrapper::getElementTree().

◆ GetSmSyntaxVersion()

sal_uInt16 SmMLImport::GetSmSyntaxVersion ( ) const
inline

Get syntax version.

Definition at line 145 of file import.hxx.

References m_nSmSyntaxVersion.

◆ getSuccess()

bool SmMLImport::getSuccess ( ) const
inline

Checks out if parse was a success.

Definition at line 101 of file import.hxx.

References m_bSuccess.

Referenced by SmMLImportWrapper::ReadThroughComponentIS().

◆ SetConfigurationSettings()

void SmMLImport::SetConfigurationSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aViewProps)
overridevirtual

Imports configurations settings formula.

Definition at line 1338 of file import.cxx.

References Exception, SAL_WARN, sFormula, u, and xModel.

◆ SetSmSyntaxVersion()

void SmMLImport::SetSmSyntaxVersion ( sal_uInt16  nSmSyntaxVersion)
inline

Set syntax version.

Definition at line 141 of file import.hxx.

References m_nSmSyntaxVersion.

◆ SetViewSettings()

void SmMLImport::SetViewSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aViewProps)
overridevirtual

Member Data Documentation

◆ m_bSuccess

bool SmMLImport::m_bSuccess
private

Definition at line 91 of file import.hxx.

Referenced by declareMlError(), endDocument(), and getSuccess().

◆ m_nSmSyntaxVersion

size_t SmMLImport::m_nSmSyntaxVersion
private

Definition at line 92 of file import.hxx.

Referenced by GetSmSyntaxVersion(), and SetSmSyntaxVersion().

◆ m_pElementTree

SmMlElement* SmMLImport::m_pElementTree = new SmMlElement(SmMlElementType::NMlEmpty)
private

Definition at line 90 of file import.hxx.

Referenced by CreateFastContext(), endDocument(), and getElementTree().


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