]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / InsetMathColor.h
index 71fada04738581adc3bfb7a913c56c9b6937561d..9f8419b63307ce966832f3d0bbf79cf820cea634 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef MATH_COLORINSET_H
 #define MATH_COLORINSET_H
 
-#include "LColor.h"
-
 #include "InsetMathNest.h"
 
 
@@ -25,7 +23,7 @@ class InsetMathColor : public InsetMathNest {
 public:
        /// Create a color inset from LyX color number
        explicit InsetMathColor(bool oldstyle,
-               LColor_color const & color = LColor::none);
+               ColorCode color = Color_none);
        /// Create a color inset from LaTeX color name
        explicit InsetMathColor(bool oldstyle, docstring const & color);
        ///
@@ -44,7 +42,7 @@ public:
        ///
        void infoize(odocstream & os) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// width of '[' in current font
        mutable int w_;
        ///