diff options
author | dante <dante19031999@gmail.com> | 2021-08-20 04:17:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-20 09:36:52 +0200 |
commit | 3ad6d41c1c88b0549c9be0f41e02d83a582fcdfd (patch) | |
tree | 20b9ef2a8c2dc516ace0fac26994412e53015451 /starmath/inc | |
parent | aa232a45bc0d5daf4a0ae4b47b9459000d1ec210 (diff) |
Add a SmMlElement tree to the sm document
Change-Id: Ide764b512004198277baed60ac4e1a5ef0d1c2dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120765
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/document.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 588a8d93f1b0..77d13aa77d08 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -32,6 +32,7 @@ #include "format.hxx" #include "parse.hxx" #include "smdllapi.hxx" +#include "mathml/iterator.hxx" class SfxPrinter; class Printer; @@ -82,6 +83,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener OUString maAccText; SvtLinguOptions maLinguOptions; std::unique_ptr<SmTableNode> mpTree; + SmMlElement* m_pMlElementTree; rtl::Reference<SfxItemPool> mpEditEngineItemPool; std::unique_ptr<SmEditEngine> mpEditEngine; VclPtr<SfxPrinter> mpPrinter; //q.v. comment to SmPrinter Access! @@ -212,6 +214,12 @@ public: void readFormulaOoxml( oox::formulaimport::XmlStream& stream ); void UpdateEditEngineDefaultFonts(); + + SmMlElement* GetMlElementTree() { return m_pMlElementTree; } + void SetMlElementTree(SmMlElement* pMlElementTree) { + mathml::SmMlIteratorFree(m_pMlElementTree); + m_pMlElementTree = pMlElementTree; + } }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |