summaryrefslogtreecommitdiff
path: root/starmath/inc/error.hxx
diff options
context:
space:
mode:
authorDante DM <dante19031999@gmail.com>2020-10-21 15:43:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-03 20:57:12 +0100
commit351f620baa64ecabd4f7f93ec0139724766c7c59 (patch)
treea245aa3e7102f7b3e00f817f35ef73f238030aa6 /starmath/inc/error.hxx
parent8ef56c7cb4008c6290da82b305ec2deefc8d94d5 (diff)
Added hexadecimal number and color support for starmath.
Adds hidden command on guy hex number wich allows to use numbers of base 16 and also 0-9-A-Z. Added support for custom RGB colors on hexadecimal on starmath via command color hex colornumber. Improved RGB color handle on starmath. Changed the way the color is handled on starmath. Colors keywords won't give errors. They have been moved to an independent tokens list so starmath will load tokens faster. Changed the way the font size is handeled on starmath. This won't change anything, just related with the structural change. Implemented premature support for rgba colors on math. This change only adds the possibility on the parser, node and node visitors. For now end-user can not access it since in a future there'll be work to do on the renderer to add full support. Added hex entrie on the docking window. Changes made on Color.hxx, will save some nanoseconds on build. If you are interested on allowing rgba and do the job on the renderer (and all the other stuff than there are a lot of .GetRGBColor()), you may find usefull color hex colnum. Since transparency setting is ignored, the hexadecimal color has hidden support for it since did not instore the max value (255 + 255*256 + 255*256*256) and everything is loaded into the sal_uInt32. Change-Id: Iafb38b142fffa329ca468e3d62643154fcdd2bbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104630 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc/error.hxx')
-rw-r--r--starmath/inc/error.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/inc/error.hxx b/starmath/inc/error.hxx
index a05123d6e080..d8179da593d5 100644
--- a/starmath/inc/error.hxx
+++ b/starmath/inc/error.hxx
@@ -39,7 +39,8 @@ enum class SmParseError
FontExpected,
SizeExpected,
DoubleAlign,
- DoubleSubsupscript
+ DoubleSubsupscript,
+ NumberExpected
};