summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-05-12 13:19:56 +0000
committerTomaž Vajngerl <quikee@gmail.com>2019-05-14 03:23:20 +0200
commitea191cf9807d0b0725fbc4831053a26ba71c2328 (patch)
tree024439b27c65e0dd8e324ccebb6c26757186e12a /include/editeng
parentd14d1341f2b0cd62098425b36438ae20b887fe93 (diff)
tdf#90297 use field colors for math's edit engine
This adds a maTextColor to the EditEngine, which will override the default AutoColor. There is also a NOCOLORS mode and I thought about using it instead, but it defaults to COL_BLACK and overriding this seems wrong. Since the EditEngine does the whole drawing and now has the explicit FieldColor() and FieldTextColor() for background and text, my guess is we don't need an ApplySettings implementation. Change-Id: I6c2ecc843a3e07de98f97c86fc00a3b83cb78d97 Reviewed-on: https://gerrit.libreoffice.org/72197 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/editeng.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index f585ce8b5796..dfb39a0b8e94 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -216,6 +216,8 @@ public:
void SetBackgroundColor( const Color& rColor );
Color const & GetBackgroundColor() const;
+ void SetTextColor( const Color& rColor );
+ Color const & GetTextColor() const;
Color GetAutoColor() const;
void EnableAutoColor( bool b );
void ForceAutoColor( bool b );