]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.h
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_diminset.h
index 75c7cad1cc22f913267ba6f60543eab79bb76bf3..908b23f01aecb87c6dff6e84e7efc03973c5c965 100644 (file)
 #include "math_inset.h"
 #include "dimension.h"
 
+class PainterInfo;
+
 
 /// things that need the dimension cache
 class MathDimInset : public MathInset {
 public:
-       /// not sure whether the initialization is really necessary
-       MathDimInset() {}
+       ///
+       MathDimInset(); 
+
        ///
        Dimension dimensions() const { return dim_; }
        ///
-       void metricsT(TextMetricsInfo const &) const;
+       int ascent() const;
        ///
-       void drawT(TextPainter & pain, int x, int y) const;
+       int descent() const;
+       ///
+       int width() const;
+
+       ///
+       int xo() const { return xo_; }
+       ///
+       int yo() const { return yo_; }
+       ///
+       void setPosCache(PainterInfo const & pi, int x, int y) const;
 
 protected:
        ///
        mutable Dimension dim_;
+       ///
+       mutable int xo_;
+       ///
+       mutable int yo_;
 };
+
 #endif