]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.h
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_parboxinset.h
index e03bf2de98626974f2ddd3656bdb87ee8bc7cf39..01b0af95084555ed5067cbecfcea9f50c73407ca 100644 (file)
@@ -1,6 +1,18 @@
+// -*- C++ -*-
+/**
+ * \file math_parboxinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_PARBOXINSET_H
 #define MATH_PARBOXINSET_H
 
+
 #include "math_textinset.h"
 
 // implements support for \parbox
@@ -12,26 +24,26 @@ public:
        ///
        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;
        ///
        void write(WriteStream & os) const;
        ///
-       void setWidth(string const & width);
+       void setWidth(std::string const & width);
        ///
-       void setPosition(string const & pos);
+       void setPosition(std::string const & pos);
 private:
        /// width on screen
        int lyx_width_;
        /// width for TeX
-       string tex_width_;
+       std::string tex_width_;
        /// one of htb
        char position_;
 };