diff options
author | Dante DM <dante19031999@gmail.com> | 2020-10-21 15:43:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-03 20:57:12 +0100 |
commit | 351f620baa64ecabd4f7f93ec0139724766c7c59 (patch) | |
tree | a245aa3e7102f7b3e00f817f35ef73f238030aa6 /starmath/inc/strings.hxx | |
parent | 8ef56c7cb4008c6290da82b305ec2deefc8d94d5 (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/strings.hxx')
-rw-r--r-- | starmath/inc/strings.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/inc/strings.hxx b/starmath/inc/strings.hxx index fb00ac2f4782..2daf463afd25 100644 --- a/starmath/inc/strings.hxx +++ b/starmath/inc/strings.hxx @@ -188,6 +188,8 @@ #define RID_COLORX_TEAL "color teal {<?>} " #define RID_COLORX_YELLOW "color yellow {<?>} " #define RID_COLORX_RGB "color rgb 0 0 0 {<?>} " +#define RID_COLORX_RGBA "color rgba 0 0 0 0 {<?>} " +#define RID_COLORX_HEX "color hex 000000 {<?>} " #define RID_LRGROUPX "{<?>} " #define RID_LRPARENTX "(<?>) " #define RID_LRBRACKETX "[<?>] " |