]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
fix #1073
[lyx.git] / src / mathed / math_parboxinset.h
index ab129d9b668692a934d1b6be5bb4dca17bd89232..1b56b32f74ded3a1aedf5e37fb935a8adf8abeda 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();
@@ -13,15 +16,10 @@ public:
        MathInset * clone() const;
        ///
        mode_type currentMode() const { return TEXT_MODE; }
-       /// get cursor position
-       void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi) const;
        ///
-       void draw(MathPainterInfo &, int x, int y) const;
-       /// draw selection background
-       void drawSelection(MathPainterInfo & pi,
-               idx_type idx1, pos_type pos1, idx_type idx2, pos_type pos2) const;
+       void draw(PainterInfo &, int x, int y) const;
        ///
        void infoize(std::ostream & os) const;
        ///
@@ -30,21 +28,13 @@ public:
        void setWidth(string const & width);
        ///
        void setPosition(string const & pos);
-       /// moves cursor up or down
-       bool idxUpDown(idx_type &, pos_type & pos, bool up) const;
 private:
-       /// number of rows on screen
-       int screenrows() const;
-       /// 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