]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_parboxinset.h
index 389fe158b0bdca4359354273b961603d87d09a53..715fde9accb2a17e8b70547825b1fbbafd4ebc9f 100644 (file)
@@ -1,9 +1,12 @@
 #ifndef MATH_PARBOXINSET_H
 #define MATH_PARBOXINSET_H
 
-#include "math_nestinset.h"
 
-class MathParboxInset : public MathNestInset {
+#include "math_textinset.h"
+
+// implements support for \parbox
+
+class MathParboxInset : public MathTextInset {
 public:
        ///
        MathParboxInset();
@@ -11,8 +14,8 @@ public:
        MathParboxInset * asParboxInset() { return this; }
        ///
        MathInset * clone() const;
-       /// get cursor position
-       void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
+       ///
+       mode_type currentMode() const { return TEXT_MODE; }
        ///
        void metrics(MathMetricsInfo & mi) const;
        ///
@@ -26,16 +29,12 @@ public:
        ///
        void setPosition(string const & pos);
 private:
-       /// row corresponding to given position 
-       int pos2row(pos_type pos) const;
        /// width on screen
        int lyx_width_;
        /// width for TeX
        string tex_width_;
-       /// htb
+       /// one of htb
        char position_;
-       /// cached metrics
-       mutable std::vector<MathXArray::Row> rows_;
 };
 
 #endif