#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;
{
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;
}
}
-dispatch_result InsetFloatList::localDispatch(FuncRequest const & cmd)
+dispatch_result
+InsetFloatList::priv_dispatch(FuncRequest const & cmd,
+ idx_type & idx, pos_type & pos)
{
switch (cmd.action) {
case LFUN_MOUSE_RELEASE:
return DISPATCHED;
default:
- return InsetCommand::localDispatch(cmd);
+ return InsetCommand::priv_dispatch(cmd, idx, pos);
}
}