]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_parboxinset.h
index 1b6785b5d4650bc503ac77d408c80997ff30de15..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();
@@ -12,6 +15,8 @@ public:
        ///
        MathInset * clone() const;
        ///
+       mode_type currentMode() const { return TEXT_MODE; }
+       ///
        void metrics(MathMetricsInfo & mi) const;
        ///
        void draw(MathPainterInfo &, int x, int y) const;
@@ -28,10 +33,8 @@ private:
        int lyx_width_;
        /// width for TeX
        string tex_width_;
-       /// htb
+       /// one of htb
        char position_;
-       /// cached metrics
-       mutable std::vector<MathXArray::Row> rows_;
 };
 
 #endif