]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetminipage.h
index fa455acb33edd4110438ec436a21a8193cff6dcf..088c2776b5dc60d07f70411d4534103f24f22e47 100644 (file)
@@ -1,12 +1,13 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
+/**
+ * \file insetminipage.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 1998 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
- *======================================================
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef InsetMinipage_H
 #endif
 
 #include "insetcollapsable.h"
-#include "vspace.h"
+#include "lyxlength.h"
+
+#include <boost/signals/signal0.hpp>
 
 /** The minipage inset
-  
+
 */
 class InsetMinipage : public InsetCollapsable {
 public:
        ///
        enum Position {
-               center,
                top,
+               center,
                bottom
        };
        ///
@@ -38,19 +41,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 read(Buffer const * buf, LyXLex & lex);
        ///
-       void Write(Buffer const * buf, std::ostream & os) const;
+       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 +73,28 @@ 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 &);
+       boost::signal0<void> hideDialog;
        ///
-       LyXLength const & width() const;
+       int getMaxWidth(BufferView *, UpdatableInset const *) const;
        ///
-       void width(LyXLength const &);
+       bool needFullRow() const { return false; }
+       /** returns true if, when outputing LaTeX, font changes should
+            be closed before generating this inset. This is needed for
+            insets that may contain several paragraphs */
+       bool noFontChange() const { return true; }
+       ///
+       bool showInsetDialog(BufferView *) const;
+       ///
+       int latexTextWidth(BufferView *) const;
+
 private:
        ///
        Position pos_;