#include "insetfloatlist.h"
#include "buffer.h"
+#include "bufferparams.h"
#include "debug.h"
#include "Floating.h"
#include "FloatList.h"
#include "support/lstrings.h"
-using namespace lyx::support;
+using lyx::support::bformat;
using std::endl;
+using std::string;
using std::ostream;
string const InsetFloatList::getScreenLabel(Buffer const & buf) const
{
- FloatList const & floats = buf.params.getLyXTextClass().floats();
+ FloatList const & floats = buf.params().getLyXTextClass().floats();
FloatList::const_iterator it = floats[getCmdName()];
if (it != floats.end())
return _(it->second.listName());
void InsetFloatList::read(Buffer const & buf, LyXLex & lex)
{
- FloatList const & floats = buf.params.getLyXTextClass().floats();
+ FloatList const & floats = buf.params().getLyXTextClass().floats();
string token;
if (lex.eatLine()) {
{
InsetCommand::metrics(mi, dim);
int center_indent = (mi.base.textwidth - dim.wid) / 2;
- Box b(center_indent, center_indent + dim.wid, -dim.asc, dim.des);
+ Box b(center_indent, center_indent + dim.wid, -dim.asc, dim.des);
button().setBox(b);
-
+
dim.wid = mi.base.textwidth;
dim_ = dim;
}
int InsetFloatList::latex(Buffer const & buf, ostream & os,
LatexRunParams const &) const
{
- FloatList const & floats = buf.params.getLyXTextClass().floats();
+ FloatList const & floats = buf.params().getLyXTextClass().floats();
FloatList::const_iterator cit = floats[getCmdName()];
if (cit != floats.end()) {