]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.h
Fix reading of math macros
[lyx.git] / src / mathed / math_dotsinset.h
index c21900261e5be7bd89750844c5c81add125baf1a..fd089afd70af9708affbc5638f39b88deb63bce9 100644 (file)
@@ -2,32 +2,31 @@
 #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 MathInset {
+class MathDotsInset : public MathDimInset {
 public:
        ///
-       MathDotsInset(string const &, int);
-       ///
-       MathInset *  Clone() const;
+       explicit MathDotsInset(latexkeys const * l);
        ///
-       void draw(Painter &, int, int);
+       MathInset * clone() const;
        ///
-       void Write(std::ostream &, bool fragile) const;
+       void metrics(MathMetricsInfo & mi) const;
        ///
-       void WriteNormal(std::ostream &) const;
+       void draw(MathPainterInfo & pi, int x, int y) const;
        ///
-       void Metrics(MathStyles st);
+       string name() const;
 protected:
+       /// cache for the thing's heigth
+       mutable int dh_;
        ///
-       int dh_;
-       ///
-       int code_;
-};   
+       latexkeys const * key_;
+};
 #endif