#include "debug.h"
#include "gettext.h"
-#include "LColor.h"
-#include "LyXText.h"
+#include "Color.h"
+#include "Text.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
#include "TextMetrics.h"
using frontend::Painter;
-using std::endl;
-using std::ostream;
-
void InsetPagebreak::read(Buffer const &, Lexer &)
{
}
-void InsetPagebreak::write(Buffer const &, ostream & os) const
+void InsetPagebreak::write(Buffer const &, std::ostream & os) const
{
os << "\n" << getCmdName() << '\n';
}
void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
{
- LyXFont font;
- font.setColor(LColor::pagebreak);
+ Font font;
+ font.setColor(Color::pagebreak);
font.decSize();
int w = 0;
int const text_end = text_start + w;
pi.pain.rectText(text_start, y + d, insetLabel(), font,
- LColor::none, LColor::none);
+ Color::none, Color::none);
pi.pain.line(x, y, text_start, y,
- LColor::pagebreak, Painter::line_onoffdash);
+ Color::pagebreak, Painter::line_onoffdash);
pi.pain.line(text_end, y, int(x + dim_.wid), y,
- LColor::pagebreak, Painter::line_onoffdash);
+ Color::pagebreak, Painter::line_onoffdash);
}
int InsetPagebreak::latex(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << from_ascii(getCmdName()) << "{}";
return 0;
int InsetPagebreak::plaintext(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << '\n';
return PLAINTEXT_NEWLINE;
int InsetPagebreak::docbook(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << '\n';
return 0;