]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathColor.h
index 1c15c8e07d265c05601f35872347b10f23d9728b..fad0e658d1cb00447b2907443ea708cef6f974e2 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #ifndef MATH_COLORINSET_H
 #define MATH_COLORINSET_H
 
-#include "Color.h"
-
 #include "InsetMathNest.h"
 
+#include "support/docstream.h"
 
 namespace lyx {
 
@@ -25,11 +24,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 +43,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_;
        ///