]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetpagebreak.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetpagebreak.C
index c15d0702735ba3334384e43e388f0975133d3683..d86a826be59a97c10767a61a616c3f40cd30a650 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file insetline.C
+ * \file insetpagebreak.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -33,7 +33,7 @@ void InsetPagebreak::read(Buffer const &, LyXLex &)
 
 void InsetPagebreak::write(Buffer const &, ostream & os) const
 {
-       os << "\n\\newpage \n";
+       os << "\n\\newpage\n";
 }
 
 
@@ -49,8 +49,6 @@ void InsetPagebreak::metrics(MetricsInfo & mi, Dimension & dim) const
 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);
@@ -75,28 +73,31 @@ void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
 
 
 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;