diff options
author | Frédéric Wang <fred.wang@free.fr> | 2013-06-27 21:35:28 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-06-28 09:56:36 +0000 |
commit | 43cf39adff66d20862956869d11fbcc184eb5702 (patch) | |
tree | a0d8ad03ab6b0a9d98efe80288400d667954b8e9 /starmath/inc/node.hxx | |
parent | 4f294a90877d2f91bb88c7d6cd5b74e8e546a025 (diff) |
fdo#66088 Export some math symbols as <mi> elements.
Change-Id: Ib08717c3d4d41abc7bce4cd6bc2e63bda7db6086
Reviewed-on: https://gerrit.libreoffice.org/4595
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'starmath/inc/node.hxx')
-rw-r--r-- | starmath/inc/node.hxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index b1640a338e56..2416d6e9080b 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -73,7 +73,7 @@ enum SmNodeType /*10*/ NBINDIAGONAL, NSUBSUP, NMATRIX, NPLACE, NTEXT, /*15*/ NSPECIAL, NGLYPH_SPECIAL, NMATH, NBLANK, NERROR, /*20*/ NLINE, NEXPRESSION, NPOLYLINE, NROOT, NROOTSYMBOL, -/*25*/ NRECTANGLE, NVERTICAL_BRACE +/*25*/ NRECTANGLE, NVERTICAL_BRACE, NMATHIDENT }; @@ -579,6 +579,20 @@ public: void Accept(SmVisitor* pVisitor); }; +//////////////////////////////////////////////////////////////////////////////// + +/** Math Identifier + * + * This behaves essentially the same as SmMathSymbolNode and is only used to + * represent math symbols that should be exported as <mi> elements rather than + * <mo> elements. + */ +class SmMathIdentifierNode : public SmMathSymbolNode +{ +public: + SmMathIdentifierNode(const SmToken &rNodeToken) + : SmMathSymbolNode(NMATHIDENT, rNodeToken) {} +}; //////////////////////////////////////////////////////////////////////////////// |