]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_dotsinset.h
index cf8fb21fce830bb634c50a6ad153a605d882b08d..87869a842167373507adde050e88f22eb6f302c4 100644 (file)
@@ -2,34 +2,32 @@
 #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
 
-struct latexkeys;
-
 /// The different kinds of ellipsis
-class MathDotsInset : public MathInset {
+class MathDotsInset : public MathDimInset {
 public:
        ///
-       explicit MathDotsInset(latexkeys const *);
+       explicit MathDotsInset(string const &);
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void normalize(NormalStream &) const;
        ///
-       void metrics(MathStyles st);
+       void metrics(MathMetricsInfo const & st) const;
 protected:
+       /// cache for the thing's heigth
+       mutable int dh_;
        ///
-       int dh_;
-       ///
-       latexkeys const * key_;
+       string const name_;
 };   
 #endif