]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
Cache icons of dynamic menu buttons
[lyx.git] / src / mathed / InsetMathColor.h
index 55a02c259641f8c478de225302721fee195ad08f..c09e14a117e5b02af1886123ced194694d1d5126 100644 (file)
@@ -34,10 +34,12 @@ public:
        void draw(PainterInfo & pi, int x, int y) const override;
        /// we need package color
        void validate(LaTeXFeatures & features) const override;
+       /// we inherit the mode
+       mode_type currentMode() const override { return current_mode_; }
        ///
-       void write(WriteStream & os) const override;
+       void write(TeXMathStream & os) const override;
        /// FIXME XHTML For now, we do nothing with color.
-       void mathmlize(MathStream &) const override {}
+       void mathmlize(MathMLStream &) const override {}
        /// FIXME XHTML For now, we do nothing with color.
        void htmlize(HtmlStream &) const override {}
        ///
@@ -53,6 +55,8 @@ private:
        bool oldstyle_;
        /// Our color. Only valid LaTeX colors are allowed.
        docstring color_;
+       /// the inherited mode
+       mutable mode_type current_mode_;
 };