]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
ws changes only
[lyx.git] / src / insets / insetcaption.C
index 1cfd264c917b0f1e5ef7a289b7f9a91d816cbd5c..7756436ff65314a6b9c6a88f5df61cc3b9c45578 100644 (file)
 #include "insetwrap.h"
 
 #include "buffer.h"
+#include "bufferparams.h"
 #include "BufferView.h"
 #include "Floating.h"
 #include "FloatList.h"
 #include "gettext.h"
+#include "LColor.h"
 #include "metricsinfo.h"
+#include "paragraph.h"
 
-#include "frontends/Painter.h"
 #include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
 
-#include "support/LAssert.h"
 #include "support/lstrings.h"
 
 #include "support/std_sstream.h"
 
-using namespace lyx::support;
+
+using lyx::support::bformat;
 
 using std::endl;
+using std::string;
 using std::ostream;
 using std::ostringstream;
 
@@ -91,10 +95,10 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
        else if (i2->lyxCode() == WRAP_CODE)
                type = static_cast<InsetWrap *>(i2)->params().type;
        else
-               Assert(0);
+               BOOST_ASSERT(false);
 
        FloatList const & floats =
-               pi.base.bv->buffer()->params.getLyXTextClass().floats();
+               pi.base.bv->buffer()->params().getLyXTextClass().floats();
        string const fl = i2 ? floats.getType(type).name() : N_("Float");
 
        // Discover the number...