-/* 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>
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);
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;
}
int InsetMinipage::latexTextWidth(BufferView * bv) const
{
- return width_.inPixels(InsetCollapsable::latexTextWidth(bv),
- bv->text->defaultHeight());
+ return width_.inPixels(InsetCollapsable::latexTextWidth(bv));
}