]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
ws changes only
[lyx.git] / src / insets / insetcaption.C
index 3bc71ac4d7e4d4d592e9e45937bacb64b0e0c640..7756436ff65314a6b9c6a88f5df61cc3b9c45578 100644 (file)
 #include <config.h>
 
 #include "insetcaption.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
-#include "BufferView.h"
+#include "insetfloat.h"
+#include "insetwrap.h"
+
 #include "buffer.h"
+#include "bufferparams.h"
+#include "BufferView.h"
+#include "Floating.h"
 #include "FloatList.h"
-#include "insets/insetfloat.h"
-#include "insets/insetwrap.h"
-#include "debug.h"
 #include "gettext.h"
-#include "Lsstream.h"
+#include "LColor.h"
 #include "metricsinfo.h"
+#include "paragraph.h"
+
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
 #include "support/lstrings.h"
-#include "support/LAssert.h"
-#include "support/BoostFormat.h"
 
-using namespace lyx::support;
+#include "support/std_sstream.h"
+
+
+using lyx::support::bformat;
 
-using std::ostream;
 using std::endl;
+using std::string;
+using std::ostream;
+using std::ostringstream;
 
 
 InsetCaption::InsetCaption(BufferParams const & bp)
@@ -87,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...