]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
updates to minipage inset
[lyx.git] / src / insets / insetminipage.h
index 2587139c344caa62bf879cf77c846c17544a66ca..fa455acb33edd4110438ec436a21a8193cff6dcf 100644 (file)
 #endif
 
 #include "insetcollapsable.h"
+#include "vspace.h"
 
-class Painter;
-
-/** The footnote inset
+/** The minipage inset
   
 */
 class InsetMinipage : public InsetCollapsable {
 public:
        ///
-       explicit
-       InsetMinipage();
+       enum Position {
+               center,
+               top,
+               bottom
+       };
        ///
-       ~InsetMinipage() {}
+       enum InnerPosition {
+               inner_center,
+               inner_top,
+               inner_bottom,
+               inner_stretch
+       };
+       ///
+       InsetMinipage();
        ///
-       void Write(Buffer const * buf, ostream & os) const;
+       void Write(Buffer const * buf, std::ostream & os) const;
        ///
-       Inset * Clone() const;
+       Inset * Clone(Buffer const &) const;
        ///
        Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
        int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       const char * EditMessage() const;
-       ///
-       bool InsertInset(BufferView *, Inset * inset);
+       string const EditMessage() const;
        ///
        bool InsertInsetAllowed(Inset * inset) const;
        ///
-       LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
+       Position pos() const;
+       ///
+       void pos(Position);
+       ///
+       InnerPosition innerPos() const;
+       ///
+       void innerPos(InnerPosition);
+       ///
+       LyXLength const & height() const;
+       ///
+       void height(LyXLength const &);
+       ///
+       LyXLength const & width() const;
+       ///
+       void width(LyXLength const &);
+private:
+       ///
+       Position pos_;
+       ///
+       InnerPosition inner_pos_;
+       ///
+       LyXLength height_;
+       ///
+       LyXLength width_;
 };
 
 #endif