]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
[lyx.git] / src / mathed / InsetMathColor.h
index 19f1636b17b5bca4756dd9accb744f32ec89f434..08495b364d76a83b1683c8f5ffcfd8de54b51cf5 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "InsetMathNest.h"
 
-#include "support/docstream.h"
 
 namespace lyx {
 
@@ -23,10 +22,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,6 +36,11 @@ 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;
        ///
@@ -46,8 +49,6 @@ public:
        InsetCode lyxCode() const { return MATH_COLOR_CODE; }
 private:
        virtual Inset * clone() const;
-       /// width of '[' in current font
-       mutable int w_;
        ///
        bool oldstyle_;
        /// Our color. Only valid LaTeX colors are allowed.