]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.C
ws changes only
[lyx.git] / src / insets / insetfloatlist.C
index 91b54b91aad5b3f2f478deab970d000bf4204343..ce9c6327050def0688817f201e8d9fafec4d1de2 100644 (file)
@@ -13,6 +13,7 @@
 #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;
 
 
@@ -52,7 +54,7 @@ InsetFloatList::~InsetFloatList()
 
 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());
@@ -75,7 +77,7 @@ void InsetFloatList::write(Buffer const &, ostream & os) const
 
 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()) {
@@ -102,9 +104,9 @@ void InsetFloatList::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        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;
 }
@@ -137,7 +139,7 @@ dispatch_result InsetFloatList::localDispatch(FuncRequest const & cmd)
 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()) {