]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
quick fix for commented out figures
[lyx.git] / src / insets / insetminipage.h
index fa455acb33edd4110438ec436a21a8193cff6dcf..699c914b0bb8efc208826c172bc2684d41580795 100644 (file)
@@ -1,12 +1,12 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
- *           Copyright 1998 The LyX Team.
+ *           Copyright 2001 The LyX Team.
  *
- *======================================================
+ * ======================================================
  */
 
 #ifndef InsetMinipage_H
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
+#include <sigc++/signal_system.h>
 
 /** The minipage inset
-  
+
 */
 class InsetMinipage : public InsetCollapsable {
 public:
        ///
        enum Position {
-               center,
                top,
+               center,
                bottom
        };
        ///
@@ -38,19 +39,29 @@ public:
                inner_stretch
        };
        ///
-       InsetMinipage();
+       InsetMinipage(BufferParams const &);
+       ///
+       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 &) const;
+       Inset * clone(Buffer const &, bool same_id = false) const;
        ///
-       Inset::Code LyxCode() const { return Inset::MINIPAGE_CODE; }
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       string const EditMessage() const;
+       Inset::Code lyxCode() const { return Inset::MINIPAGE_CODE; }
        ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) 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 height(LyXLength const &);
+       void pageWidth(LyXLength const &);
        ///
-       LyXLength const & width() const;
+       SigC::Signal0<void> hideDialog;
        ///
-       void width(LyXLength const &);
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
+       ///
+       bool needFullRow() const { return false; }
+       ///
+       bool showInsetDialog(BufferView *) const;
+       ///
+       int latexTextWidth(BufferView *) const;
+
 private:
        ///
        Position pos_;