]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / InsetMathColor.h
index fad0e658d1cb00447b2907443ea708cef6f974e2..7c69dac8b70cae2148dd81b9122c515c4e672248 100644 (file)
@@ -23,10 +23,9 @@ namespace lyx {
 class InsetMathColor : public InsetMathNest {
 public:
        /// Create a color inset from LyX color number
-       explicit InsetMathColor(bool oldstyle,
-               ColorCode color = Color_none);
+       InsetMathColor(Buffer * buf, bool oldstyle, ColorCode color = Color_none);
        /// Create a color inset from LaTeX color name
-       explicit InsetMathColor(bool oldstyle, docstring const & color);
+       InsetMathColor(Buffer * buf, bool oldstyle, docstring const & color);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// we write extra braces in any case...
@@ -38,10 +37,17 @@ public:
        void validate(LaTeXFeatures & features) const;
        ///
        void write(WriteStream & os) const;
+       /// FIXME XHTML For now, we do nothing with color.
+       void mathmlize(MathStream &) const {}
+       /// FIXME XHTML For now, we do nothing with color.
+       void htmlize(HtmlStream &) const {}
+       ///
        /// write normalized content
        void normalize(NormalStream & ns) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_COLOR_CODE; }
 private:
        virtual Inset * clone() const;
        /// width of '[' in current font