]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_dotsinset.h
index 9cd2715e05c3ab899462eef84ddd4bdb363c2efe..967435d93e6993f3fde8039441f72a14511eb004 100644 (file)
@@ -2,32 +2,28 @@
 #ifndef MATH_DOTSINSET_H
 #define MATH_DOTSINSET_H
 
-#include "math_inset.h"
-#include "math_defs.h"
+#include "math_diminset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+
+class latexkeys;
 
 /// The different kinds of ellipsis
-class MathDotsInset : public MathedInset {
+class MathDotsInset : public MathDimInset {
 public:
        ///
-       MathDotsInset(string const &, int, short st = LM_ST_TEXT);
+       explicit MathDotsInset(latexkeys const * l);
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void metrics(MathMetricsInfo & mi) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void draw(MathPainterInfo & pi, int x, int y) const;
        ///
-       void WriteNormal(std::ostream &);
-       ///
-       void Metrics();
+       string name() const;
 protected:
+       /// cache for the thing's heigth
+       mutable int dh_;
        ///
-       int dh_;
-       ///
-       int code_;
-};   
+       latexkeys const * key_;
+};
 #endif