]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.C
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetminipage.C
index 9440b3def18b64e82fb2206cf3a5b100dad58802..a4057dbfbd6a3a4bc23d3a3bab38e370fd31d25e 100644 (file)
@@ -1,11 +1,13 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file insetminipage.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
- *          Copyright 1998 The LyX Team.
- *
- *======================================================*/
+ * Full author contact details are available in file CREDITS
+ */
 
 #include <config.h>
 
@@ -17,7 +19,7 @@
 #include "gettext.h"
 #include "lyxfont.h"
 #include "BufferView.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
 #include "frontends/Dialogs.h"
 #include "lyxtext.h"
 #include "insets/insettext.h"
@@ -61,7 +63,7 @@ using std::endl;
 
 InsetMinipage::InsetMinipage(BufferParams const & bp)
        : InsetCollapsable(bp), pos_(center),
-         inner_pos_(inner_center), width_(100, LyXLength::PW)
+         inner_pos_(inner_center), width_(100, LyXLength::PCW)
 {
        setLabel(_("minipage"));
        LyXFont font(LyXFont::ALL_SANE);
@@ -322,7 +324,7 @@ void InsetMinipage::pageWidth(LyXLength const & ll)
 bool InsetMinipage::showInsetDialog(BufferView * bv) const
 {
        if (!inset.showInsetDialog(bv))
-               bv->owner()->getDialogs()->showMinipage(const_cast<InsetMinipage *>(this));
+               bv->owner()->getDialogs().showMinipage(const_cast<InsetMinipage *>(this));
        return true;
 }
 
@@ -349,6 +351,5 @@ int InsetMinipage::getMaxWidth(BufferView * bv, UpdatableInset const * inset)
 
 int InsetMinipage::latexTextWidth(BufferView * bv) const
 {
-       return width_.inPixels(InsetCollapsable::latexTextWidth(bv),
-                              bv->text->defaultHeight());
+       return width_.inPixels(InsetCollapsable::latexTextWidth(bv));
 }