]> 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 fa455acb33edd4110438ec436a21a8193cff6dcf..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,8 @@
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
+#include <sigc++/signal_system.h>
 
 /** The minipage inset
   
@@ -26,8 +27,8 @@ class InsetMinipage : public InsetCollapsable {
 public:
        ///
        enum Position {
-               center,
                top,
+               center,
                bottom
        };
        ///
@@ -40,17 +41,27 @@ public:
        ///
        InsetMinipage();
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       InsetMinipage(InsetMinipage const &, bool same_id = false);
+       ///
+       ~InsetMinipage();
+       ///
+       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;
        ///
@@ -60,13 +71,24 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       LyXLength const & height() const;
+       LyXLength const & pageHeight() const;
+       ///
+       void pageHeight(LyXLength const &);
+       ///
+       LyXLength const & pageWidth() const;
+       ///
+       void pageWidth(LyXLength const &);
        ///
-       void height(LyXLength const &);
+       SigC::Signal0<void> hideDialog;
        ///
-       LyXLength const & width() const;
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       void width(LyXLength const &);
+       bool needFullRow() const { return false; }
+       ///
+       bool showInsetDialog(BufferView *) const;
+       ///
+       int latexTextWidth(BufferView *) const;
+
 private:
        ///
        Position pos_;