summaryrefslogtreecommitdiff
path: root/starmath/inc
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 /starmath/inc
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 'starmath/inc')
-rw-r--r--starmath/inc/document.hxx3
-rw-r--r--starmath/inc/edit.hxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 311cece64cdb..ec4b016f12b9 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -75,7 +75,6 @@ public:
OutputDevice* GetRefDev() { return pRefDev.get(); }
};
-void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool, const SvtLinguOptions &rOpt);
class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
{
@@ -215,6 +214,8 @@ public:
oox::drawingml::DocumentType documentType);
void writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
void readFormulaOoxml( oox::formulaimport::XmlStream& stream );
+
+ void UpdateEditEngineDefaultFonts();
};
#endif
diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx
index 41d070eacef3..858360b32e87 100644
--- a/starmath/inc/edit.hxx
+++ b/starmath/inc/edit.hxx
@@ -117,8 +117,6 @@ public:
void Flush();
void DeleteEditView();
- void ApplyColorConfigValues(const svtools::ColorConfig& rColorCfg);
-
bool HandleWheelCommands(const CommandEvent& rCEvt);
bool IsInlineEditEnabled();
void StartCursorMove();