]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
More headers.
[lyx.git] / src / insets / InsetNewpage.cpp
index a804d0186696bbc000eb5ffd18ead6eec768c1a5..d539c9fa723fbe0ea3ae72656c9a33bd9ad92141 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "InsetNewpage.h"
 
-#include "debug.h"
-#include "gettext.h"
 #include "Text.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
 
+#include "support/debug.h"
 #include "support/docstring.h"
+#include "support/docstream.h"
+#include "support/gettext.h"
 
+using namespace std;
 
 namespace lyx {
 
-using frontend::Painter;
-
-
 void InsetNewpage::read(Buffer const &, Lexer &)
 {
        /* Nothing to read */
 }
 
 
-void InsetNewpage::write(Buffer const &, std::ostream & os) const
+void InsetNewpage::write(Buffer const &, ostream & os) const
 {
        os << "\n" << getCmdName() << '\n';
 }
@@ -54,8 +53,10 @@ void InsetNewpage::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetNewpage::draw(PainterInfo & pi, int x, int y) const
 {
+       using frontend::Painter;
+
        FontInfo font;
-       font.setColor(Color_pagebreak);
+       font.setColor(ColorName());
        font.decSize();
 
        Dimension const dim = dimension(*pi.base.bv);
@@ -72,9 +73,9 @@ void InsetNewpage::draw(PainterInfo & pi, int x, int y) const
                Color_none, Color_none);
 
        pi.pain.line(x, y, text_start, y,
-                  Color_pagebreak, Painter::line_onoffdash);
+                  ColorName(), Painter::line_onoffdash);
        pi.pain.line(text_end, y, int(x + dim.wid), y,
-                  Color_pagebreak, Painter::line_onoffdash);
+                  ColorName(), Painter::line_onoffdash);
 }