]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPagebreak.cpp
Remove color dependency of framed note, fix bug 3598
[lyx.git] / src / insets / InsetPagebreak.cpp
index 0a45f394b3ce431e8135d021e92860253099fc84..9b0ff4c6a3830625397eb61023ae029eff6a2d82 100644 (file)
@@ -14,8 +14,8 @@
 
 #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"
@@ -32,7 +32,7 @@ using std::endl;
 using std::ostream;
 
 
-void InsetPagebreak::read(Buffer const &, LyXLex &)
+void InsetPagebreak::read(Buffer const &, Lexer &)
 {
        /* Nothing to read */
 }
@@ -57,8 +57,8 @@ bool InsetPagebreak::metrics(MetricsInfo & mi, Dimension & dim) const
 
 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;
@@ -70,12 +70,12 @@ void InsetPagebreak::draw(PainterInfo & pi, int x, int y) const
        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);
 }