63 const css::uno::Reference<css::lang::XComponent>& xModelComponent,
64 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
65 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet,
66 const char16_t* pFilterName,
bool bEncrypted,
67 int_fast16_t nSyntaxVersion);
72 const css::uno::Reference<css::lang::XComponent>& xModelComponent,
73 const char16_t* pStreamName,
74 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
75 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet,
76 const char16_t* pFilterName, int_fast16_t nSyntaxVersion);
82 const css::uno::Reference<css::lang::XComponent>& xModelComponent,
83 css::uno::Reference<css::uno::XComponentContext>
const& rxContext,
84 css::uno::Reference<css::beans::XPropertySet>
const& rPropSet);
111 SmMLImport(
const css::uno::Reference<css::uno::XComponentContext>& rContext,
127 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList)
override;
132 SetViewSettings(
const css::uno::Sequence<css::beans::PropertyValue>& aViewProps)
override;
137 const css::uno::Sequence<css::beans::PropertyValue>& aViewProps)
override;
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
SmMLImportWrapper(rtl::Reference< SmModel > xRef)
Constructor.
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
ErrCode Import(SfxMedium &rMedium)
Imports the mathml.
rtl::Reference< SmModel > m_xModel
SmMlElement * getElementTree()
Get the element tree when parsed from text.
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
SmMlElement * getElementTree()
Gets parsed element tree.
SmMlElement * m_pElementTree
sal_uInt16 GetSmSyntaxVersion() const
Get syntax version.
SmMLImport(const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString const &implementationName, SvXMLImportFlags nImportFlags)
Constructor.
virtual void SetViewSettings(const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override
Imports view settings formula.
size_t m_nSmSyntaxVersion
bool getSuccess() const
Checks out if parse was a success.
void SAL_CALL endDocument() override
End the document.
void SetSmSyntaxVersion(sal_uInt16 nSmSyntaxVersion)
Set syntax version.
virtual void SetConfigurationSettings(const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override
Imports configurations settings formula.
SvXMLImportContext * CreateFastContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Create a fast context.
virtual ~SmMLImport() noexcept override
Destructor.
void declareMlError()
Handles an error on the mathml structure.
tDoubleVectorPair cleanup(const css::uno::Sequence< double > &rXValues, const css::uno::Sequence< double > &rYValues, Pred aPred)