]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_parboxinset.h
index 1b6785b5d4650bc503ac77d408c80997ff30de15..b57a32d23c0486837696bda27cc7dae01a2ba55d 100644 (file)
@@ -1,20 +1,26 @@
+// -*- C++ -*-
 #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();
        ///
        MathParboxInset * asParboxInset() { return this; }
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
+       ///
+       mode_type currentMode() const { return TEXT_MODE; }
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void draw(MathPainterInfo &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const;
        ///
        void infoize(std::ostream & os) const;
        ///
@@ -28,10 +34,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