]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_colorinset.h
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_colorinset.h
index f5ced87654abe5df25898799767f2a4ff058abf6..3f16f4e6d43e36508d1ff5c6c7d9da15ec7adfdf 100644 (file)
 class MathColorInset : public MathNestInset {
 public:
        ///
-       MathColorInset();
+       explicit MathColorInset(bool oldstyle);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       std::auto_ptr<InsetBase> clone() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
+       /// we write extra braces in any case...
+       bool extraBraces() const { return true; }
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        /// we need package color
@@ -37,6 +39,8 @@ public:
 private:
        /// width of '[' in current font
        mutable int w_;
+       ///
+       bool oldstyle_;
 };
 
 #endif