#include "insetwrap.h"
#include "buffer.h"
+#include "bufferparams.h"
#include "BufferView.h"
#include "debug.h"
#include "Floating.h"
#include "funcrequest.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
+#include "LColor.h"
#include "lyxlex.h"
+#include "paragraph.h"
#include "support/tostr.h"
#include "support/std_sstream.h"
+
+using std::string;
using std::endl;
using std::auto_ptr;
using std::istringstream;
for (; tmp != end; ++tmp) {
if (tmp->layout()->name() == caplayout) {
- string const name = floatname(params_.type, buf.params);
+ string const name = floatname(params_.type, buf.params());
string const str =
tostr(toclist[name].size() + 1)
+ ". " + tmp->asString(buf, false);
if (in.empty())
return;
- istringstream data(STRCONV(in));
+ istringstream data(in);
LyXLex lex(0,0);
lex.setStream(data);
ostringstream data;
data << name_ << ' ';
params.write(data);
- return STRCONV(data.str());
+ return data.str();
}