/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
// Our mathml #include"element.hxx"
// XML tools #include <utility> #include <comphelper/errcode.hxx> #include <xmloff/xmlimp.hxx>
// Extras
class SfxMedium; class SmDocShell; class SmMLImport; class SmModel;
class SmMLImportWrapper
{
rtl::Reference<SmModel> m_xModel;
SmDocShell* m_pDocShell;
SmMLImport* m_pMlImport;
private: // Use customized entities
public: /** Get the element tree when parsed from text
*/
SmMlElement* getElementTree();
/** read a component from text
*/
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);
};
class SmMLImport final : public SvXMLImport
{ private:
SmMlElement* m_pElementTree = new SmMlElement(SmMlElementType::NMlEmpty); bool m_bSuccess;
size_t m_nSmSyntaxVersion;
public: /** Gets parsed element tree
*/
SmMlElement* getElementTree() { return m_pElementTree; }
/** Checks out if parse was a success
*/ bool getSuccess() const { return m_bSuccess; }
public: /** Handles an error on the mathml structure
*/ void declareMlError();
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.34Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.