]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
fix #1073
[lyx.git] / src / mathed / math_parboxinset.h
index 4b03a9150e0c7a6315c723e2f541161c9389b01f..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();
@@ -12,9 +15,11 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       mode_type currentMode() const { return TEXT_MODE; }
+       ///
+       void metrics(MetricsInfo & mi) const;
        ///
-       void draw(MathPainterInfo &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const;
        ///
        void infoize(std::ostream & os) const;
        ///
@@ -24,13 +29,11 @@ public:
        ///
        void setPosition(string const & pos);
 private:
-       ///
-       void rebreak();
        /// width on screen
        int lyx_width_;
        /// width for TeX
        string tex_width_;
-       ///
+       /// one of htb
        char position_;
 };