]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathColor.h
index 06ae60023d577f0b124259bd7c52c7b727d37d6b..9f8419b63307ce966832f3d0bbf79cf820cea634 100644 (file)
 #ifndef MATH_COLORINSET_H
 #define MATH_COLORINSET_H
 
-#include "LColor.h"
-
 #include "InsetMathNest.h"
 
+
+namespace lyx {
+
 /// Change colours.
 
 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, std::string const & color);
+       explicit InsetMathColor(bool oldstyle, docstring const & color);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// we write extra braces in any case...
@@ -39,15 +40,18 @@ public:
        /// write normalized content
        void normalize(NormalStream & ns) const;
        ///
-       void infoize(std::ostream & os) const;
+       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_;
        ///
        bool oldstyle_;
        /// Our color. Only valid LaTeX colors are allowed.
-       std::string color_;
+       docstring color_;
 };
 
+
+} // namespace lyx
+
 #endif