]> 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 4171e03d488d32ae466e2d9753914b5ff55ee376..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 2001 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 <sigc++/signal_system.h>
+#include "lyxlength.h"
+
+#include <boost/signals/signal0.hpp>
 
 /** The minipage inset
-  
+
 */
 class InsetMinipage : public InsetCollapsable {
 public:
@@ -39,7 +41,7 @@ public:
                inner_stretch
        };
        ///
-       InsetMinipage();
+       InsetMinipage(BufferParams const &);
        ///
        InsetMinipage(InsetMinipage const &, bool same_id = false);
        ///
@@ -71,23 +73,27 @@ public:
        ///
        void innerPos(InnerPosition);
        ///
-       string const & height() const;
+       LyXLength const & pageHeight() const;
        ///
-       void height(string const &);
+       void pageHeight(LyXLength const &);
        ///
-       string const & width() const;
+       LyXLength const & pageWidth() const;
        ///
-       void width(string const &);
+       void pageWidth(LyXLength const &);
        ///
-       SigC::Signal0<void> hideDialog;
-       ///
-       void insetButtonRelease(BufferView * bv, int x, int y, int button);
+       boost::signal0<void> hideDialog;
        ///
        int getMaxWidth(BufferView *, UpdatableInset const *) 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:
        ///
@@ -95,9 +101,9 @@ private:
        ///
        InnerPosition inner_pos_;
        ///
-       string height_;
+       LyXLength height_;
        ///
-       string width_;
+       LyXLength width_;
 };
 
 #endif