/**
- * \file insetline.C
+ * \file insetpagebreak.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
void InsetPagebreak::write(Buffer const &, ostream & os) const
{
- os << "\n\\newpage \n";
+ os << "\n\\newpage\n";
}
void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
{
static std::string const label = _("Page Break");
- pi.pain.line(x, y, x + dim_.wid, y, LColor::topline, Painter::line_solid,
- Painter::line_thick);
LyXFont font;
font.setColor(LColor::pagebreak);
int InsetPagebreak::latex(Buffer const &, ostream & os,
- LatexRunParams const &) const
+ OutputParams const &) const
{
os << "\\newpage{}";
return 0;
}
-int InsetPagebreak::ascii(Buffer const &, ostream & os, int) const
+int InsetPagebreak::plaintext(Buffer const &, ostream & os,
+ OutputParams const &) const
{
- os << "-------------------------------------------";
+ os << '\n';
return 0;
}
-int InsetPagebreak::linuxdoc(Buffer const &, std::ostream & os) const
+int InsetPagebreak::linuxdoc(Buffer const &, std::ostream & os,
+ OutputParams const &) const
{
os << '\n';
return 0;
}
-int InsetPagebreak::docbook(Buffer const &, std::ostream & os, bool) const
+int InsetPagebreak::docbook(Buffer const &, std::ostream & os,
+ OutputParams const &) const
{
os << '\n';
return 0;