diff options
author | dante <dante19031999@gmail.com> | 2021-02-17 13:55:33 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-19 15:01:16 +0100 |
commit | a260aac0a26dbf659aff55b8a76fdaa7636def53 (patch) | |
tree | d8964e4a3c3c325f524319bc7abb7fcc5b900fad /starmath/inc/mathml | |
parent | b925043f64179c23c5f7cfbc20b7c46cebdd1a26 (diff) |
Starmath now allows multiple parsers
This is an intermediate step towards making a parser wich supports
mathml standards.
The parser now is a "mask" wich calls the correct parser behind the
scenes.
Parser 6 is the same as parser 5, but will be implemented soon.
Parser 5 does what the old parser did.
Using as defualt smsyntax5 in order to be able to code parser6 without
provoking any backguards compatibility problem.
Change-Id: Iccf73e5ba96870450b98907f78a2a0c28abf6093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc/mathml')
-rw-r--r-- | starmath/inc/mathml/mathmlimport.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/starmath/inc/mathml/mathmlimport.hxx b/starmath/inc/mathml/mathmlimport.hxx index 215948b4a3cb..efbaeba47908 100644 --- a/starmath/inc/mathml/mathmlimport.hxx +++ b/starmath/inc/mathml/mathmlimport.hxx @@ -78,6 +78,7 @@ class SmXMLImport : public SvXMLImport bool bSuccess; int nParseDepth; OUString aText; + sal_uInt16 mnSmSyntaxVersion; public: SmXMLImport(const css::uno::Reference<css::uno::XComponentContext>& rContext, @@ -108,6 +109,8 @@ public: void IncParseDepth() { ++nParseDepth; } bool TooDeep() const { return nParseDepth >= 2048; } void DecParseDepth() { --nParseDepth; } + void SetSmSyntaxVersion(sal_uInt16 nSmSyntaxVersion) { mnSmSyntaxVersion = nSmSyntaxVersion; } + sal_uInt16 GetSmSyntaxVersion() const { return mnSmSyntaxVersion; } }; #endif |