]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetNewpage.cpp
index 97475ade6232f00e7a1c7362d4e1484be0f8dda1..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,6 +53,8 @@ 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(ColorName());
        font.decSize();