X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathColor.h;h=9f8419b63307ce966832f3d0bbf79cf820cea634;hb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;hp=01f53298bf3480c08298656c14206ea813a5d307;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathColor.h b/src/mathed/InsetMathColor.h index 01f53298bf..9f8419b633 100644 --- a/src/mathed/InsetMathColor.h +++ b/src/mathed/InsetMathColor.h @@ -12,8 +12,6 @@ #ifndef MATH_COLORINSET_H #define MATH_COLORINSET_H -#include "Color.h" - #include "InsetMathNest.h" @@ -25,11 +23,11 @@ class InsetMathColor : public InsetMathNest { public: /// Create a color inset from LyX color number explicit InsetMathColor(bool oldstyle, - Color_color const & color = Color::none); + ColorCode color = Color_none); /// Create a color inset from LaTeX color name explicit InsetMathColor(bool oldstyle, docstring const & color); /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// we write extra braces in any case... /// FIXME Why? Are they necessary if oldstyle_ == false? bool extraBraces() const { return true; } @@ -44,7 +42,7 @@ public: /// void infoize(odocstream & os) const; private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// width of '[' in current font mutable int w_; ///