#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(Color_pagebreak);
+ font.setColor(ColorName());
font.decSize();
Dimension const dim = dimension(*pi.base.bv);
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);
}