]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetminipage.h
index 54f9d23d0c981bdba2227086d8ba38a700913f6c..e46de56167fbc2263ae4946be2709e6f69e2b040 100644 (file)
@@ -4,9 +4,9 @@
  * 
  *           LyX, The Document Processor
  *
- *           Copyright 1998 The LyX Team.
+ *           Copyright 2001 The LyX Team.
  *
- *======================================================
+ * ======================================================
  */
 
 #ifndef InsetMinipage_H
@@ -17,7 +17,7 @@
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
 #include <sigc++/signal_system.h>
 
 /** The minipage inset
@@ -41,19 +41,27 @@ public:
        ///
        InsetMinipage();
        ///
+       InsetMinipage(InsetMinipage const &, bool same_id = false);
+       ///
        ~InsetMinipage();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void write(Buffer const * buf, std::ostream & os) const;
+       ///
+       void read(Buffer const * buf, LyXLex & lex);
+       ///
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
-       Inset * Clone(Buffer const &) const;
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
-       string const EditMessage() const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       string const editMessage() const;
+       ///
+       bool insetAllowed(Inset::Code) const;
        ///
        Position pos() const;
        ///
@@ -63,23 +71,23 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       LyXLength const & height() const;
+       LyXLength const & pageHeight() const;
        ///
-       void height(LyXLength const &);
+       void pageHeight(LyXLength const &);
        ///
-       string const & width() const;
+       LyXLength const & pageWidth() const;
        ///
-       void width(string const &);
+       void pageWidth(LyXLength const &);
        ///
-       int widthp() const;
+       SigC::Signal0<void> hideDialog;
        ///
-       void widthp(int);
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       void widthp(string const &);
+       bool needFullRow() const { return false; }
        ///
-       SigC::Signal0<void> hideDialog;
+       bool showInsetDialog(BufferView *) const;
        ///
-       void InsetButtonRelease(BufferView * bv, int x, int y, int button);
+       int latexTextWidth(BufferView *) const;
 
 private:
        ///
@@ -89,9 +97,7 @@ private:
        ///
        LyXLength height_;
        ///
-       string width_;
-       ///
-       int widthp_;
+       LyXLength width_;
 };
 
 #endif