]> 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 d90bcaeeaa78e6476e986d20dfb0214752a1e307..94c368b24a5d90fdb21c0d431fd7d6c475d94a98 100644 (file)
@@ -8,27 +8,31 @@
 #pragma interface
 #endif
 
-/** Decorations over (below) a math object
+/** Decorations and accents over (below) a math object
     \author Alejandro Aguilar Sierra
  */
 class MathDecorationInset : public MathInset {
 public:
        ///
-       MathDecorationInset(int);
+       MathDecorationInset(string const & name, int);
        ///
-       MathInset *  Clone() const;
+       MathInset * clone() const;
        ///
        void draw(Painter &, int, int);
        ///
        void Write(std::ostream &, bool fragile) const;
        ///
-       void Metrics(MathStyles st);
+       void Metrics(MathStyles st, int asc = 0, int des = 0);
        ///
-       bool GetLimits() const;
+       void WriteNormal(std::ostream & os) const;
 private:
        ///
        int deco_;
        ///
        bool upper_;
+       /// height of deco
+       int dh_;
+       /// vertical offset of deco
+       int dy_;
 };
 #endif