]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_decorationinset.h
index f6eb141034b019292034ff38fc63cafc85e232e1..94c368b24a5d90fdb21c0d431fd7d6c475d94a98 100644 (file)
@@ -1,29 +1,38 @@
+// -*- C++ -*-
 #ifndef MATH_DECORATIONINSET_H
 #define MATH_DECORATIONINSET_H
 
-#include "math_parinset.h"
+#include "math_inset.h"
 
-/// Decorations over (below) a math object
-class MathDecorationInset: public MathParInset {
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+/** Decorations and accents over (below) a math object
+    \author Alejandro Aguilar Sierra
+ */
+class MathDecorationInset : public MathInset {
 public:
        ///
-       MathDecorationInset(int, short st = LM_ST_TEXT);
+       MathDecorationInset(string const & name, int);
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
        void draw(Painter &, int, int);
        ///
-       void Write(std::ostream &, bool fragile);
-       ///
-       void Metrics();
+       void Write(std::ostream &, bool fragile) const;
        ///
-       bool GetLimits() const;
-protected:
+       void Metrics(MathStyles st, int asc = 0, int des = 0);
        ///
-       int deco;
+       void WriteNormal(std::ostream & os) const;
+private:
        ///
-       bool upper;
+       int deco_;
        ///
-       int dw, dh, dy;
+       bool upper_;
+       /// height of deco
+       int dh_;
+       /// vertical offset of deco
+       int dy_;
 };
 #endif