]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.h
Audit all the LASSERT calls, and try to do something sensible at
[lyx.git] / src / MetricsInfo.h
index 020b97ec1793be9035d224d02de1cf7e9218f3d9..020b25f87428baa84e912aa915c518beb082177f 100644 (file)
@@ -103,6 +103,11 @@ public:
        /// \param sel whether to take the selection state into account
        ColorCode backgroundColor(Inset const * inset, bool sel = true) const;
 
+       /// Determines the text color based on the intended color, the
+       /// change tracking state and the selection state. 
+       /// \param color what the color should be by default
+       Color textColor(Color const & color) const;
+
        ///
        MetricsBase base;
        ///
@@ -225,7 +230,7 @@ public:
 class ColorChanger : public Changer<FontInfo, ColorCode> {
 public:
        ///
-       ColorChanger(FontInfo & font, docstring const & color,
+       ColorChanger(FontInfo & font, ColorCode color,
                     bool really_change_color = true);
        ///
        ~ColorChanger();