#include "FloatList.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "support/gettext.h"
#include "InsetList.h"
#include "MetricsInfo.h"
#include "output_latex.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
+#include "support/gettext.h"
#include "support/lstrings.h"
#include <sstream>
setDrawFrame(true);
setFrameColor(Color_captionframe);
// There will always be only one
- paragraphs().back().setLayout(buf.params().documentClass().emptyLayout());
+ paragraphs().back().setLayout(buf.params().documentClass().plainLayout());
}
void InsetCaption::write(ostream & os) const
{
os << "Caption\n";
- text_.write(buffer(), os);
+ text().write(buffer(), os);
}
pit.push_back(CursorSlice(*this));
Toc & toc = buffer().tocBackend().toc(type_);
- docstring const str = full_label_ + ". " + text_.getPar(0).asString();
+ docstring const str = full_label_ + ". " + text().getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
// Proceed with the rest of the inset.