]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.C
updates to minipage inset
[lyx.git] / src / insets / insetminipage.C
index ceb7d8da5c9423e2dda4e8e0f68d90450ae2dcd3..aafab15c0e4579e9ef3405ddcea7eba1bdce1116 100644 (file)
@@ -55,7 +55,8 @@ using std::endl;
 // (Lgb)
 
 InsetMinipage::InsetMinipage()
-       : InsetCollapsable()
+       : InsetCollapsable(), pos_(center),
+         inner_pos_(inner_center)
 {
        setLabel(_("minipage"));
        LyXFont font(LyXFont::ALL_SANE);
@@ -111,3 +112,51 @@ bool InsetMinipage::InsertInsetAllowed(Inset * in) const
        }
        return true;
 }
+
+
+InsetMinipage::Position InsetMinipage::pos() const 
+{
+       return pos_;
+}
+
+
+void InsetMinipage::pos(InsetMinipage::Position p)
+{
+       pos_ = p;
+}
+
+
+InsetMinipage::InnerPosition InsetMinipage::innerPos() const
+{
+       return inner_pos_;
+}
+
+
+void InsetMinipage::innerPos(InsetMinipage::InnerPosition ip)
+{
+       inner_pos_ = ip;
+}
+
+
+LyXLength const & InsetMinipage::height() const
+{
+       return height_;
+}
+
+
+void InsetMinipage::height(LyXLength const & ll)
+{
+       height_ = ll;
+}
+
+
+LyXLength const & InsetMinipage::width() const
+{
+       return width_;
+}
+
+
+void InsetMinipage::width(LyXLength const & ll)
+{
+       width_ = ll;
+}