#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';
}
void InsetNewpage::draw(PainterInfo & pi, int x, int y) const
{
+ using frontend::Painter;
+
FontInfo font;
font.setColor(ColorName());
font.decSize();