]> 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 0e848087a3ddd241609c22cfc7247c8fc6dd19be..fd089afd70af9708affbc5638f39b88deb63bce9 100644 (file)
@@ -1,23 +1,32 @@
+// -*- C++ -*-
 #ifndef MATH_DOTSINSET_H
 #define MATH_DOTSINSET_H
 
-#include "math_inset.h"
+#include "math_diminset.h"
 
-///
-class MathDotsInset: public MathedInset {
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+class latexkeys;
+
+/// The different kinds of ellipsis
+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 Metrics();
+       string name() const;
 protected:
+       /// cache for the thing's heigth
+       mutable int dh_;
        ///
-       int dh, code;
-};   
+       latexkeys const * key_;
+};
 #endif