]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_dotsinset.h
index cf8fb21fce830bb634c50a6ad153a605d882b08d..75d4d9c7810911e7b040a11caa0656ab09f1a08c 100644 (file)
@@ -2,34 +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
 
-struct latexkeys;
+class latexkeys;
 
 /// The different kinds of ellipsis
-class MathDotsInset : public MathInset {
+class MathDotsInset : public MathDimInset {
 public:
        ///
-       explicit MathDotsInset(latexkeys const *);
-       ///
-       MathInset * clone() const;
+       explicit MathDotsInset(latexkeys const * l);
        ///
-       void draw(Painter &, int, int);
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void metrics(MathStyles st);
+       string name() const;
 protected:
-       ///
-       int dh_;
+       /// cache for the thing's height
+       mutable int dh_;
        ///
        latexkeys const * key_;
-};   
+};
 #endif