]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sizeinset.h
try to fix rounding errors
[lyx.git] / src / mathed / math_sizeinset.h
index 26a78b3ff2d8d104f68d2f78bb67129216c2de88..9870777e3d495440f33247f42f1b2e3b79dba855 100644 (file)
@@ -2,37 +2,39 @@
 #ifndef MATHSIZEINSET_H
 #define MATHSIZEINSET_H
 
-#include "math_inset.h"
-#include "math_defs.h"
+#include "math_nestinset.h"
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
 /** An inset for \scriptsize etc
-    \author André Poenitz
+    \author André Pönitz
 */
 
-class MathSizeInset : public MathInset {
+class latexkeys;
+
+class MathSizeInset : public MathNestInset {
 public:
        ///
-       explicit MathSizeInset(MathStyles st);
+       explicit MathSizeInset(latexkeys const * l);
+       ///
+       MathInset * clone() const;
        ///
-       virtual MathInset * clone() const;
+       void metrics(MathMetricsInfo & st) const;
        ///
-       void metrics(MathStyles st);
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
-       void draw(Painter &, int x, int baseline);
+       bool needsBraces() const { return false; }
+
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void normalize(NormalStream &) const;
 
 private:
        ///
-       char const * verbose() const;
-       /// 
-       MathStyles style_;
+       latexkeys const * key_;
 };
 
 #endif