]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.h
try to fix rounding errors
[lyx.git] / src / mathed / math_dotsinset.h
index 03b6327cbf0b0db2893c3474ffd6eaa19b3db98e..be37fb641bbd7bb3d31095262a4cc9e01fad3f55 100644 (file)
@@ -1,26 +1,33 @@
+// -*- C++ -*-
 #ifndef MATH_DOTSINSET_H
 #define MATH_DOTSINSET_H
 
-#include "math_inset.h"
-#include "math_defs.h"
+#include "math_diminset.h"
+#include "LString.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
 
 /// 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(string const &);
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void write(WriteStream & os) const;
        ///
-       void Metrics();
-protected:
+       void normalize(NormalStream &) const;
        ///
-       int dh_;
+       void metrics(MathMetricsInfo & st) const;
+protected:
+       /// cache for the thing's heigth
+       mutable int dh_;
        ///
-       int code_;
-};   
+       string const name_;
+};
 #endif