/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 2000-2001 The LyX Team.
*
* ======================================================
using std::ostream;
using std::endl;
-InsetCaption::InsetCaption()
- : InsetText()
+InsetCaption::InsetCaption(BufferParams const & bp)
+ : InsetText(bp)
{
setAutoBreakRows(true);
setDrawFrame(0, InsetText::LOCKED);
}
-string const InsetCaption::editMessage() const
+string const InsetCaption::editMessage() const
{
return _("Opened Caption Inset");
}
// Generate the label
string const label = _(fl) + " " + num + ":";
-
+
Painter & pain = bv->painter();
int const w = lyxfont::width(label, f);
pain.text(int(x), baseline, label, f);