X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPhantom.cpp;h=4e18c7661e2d41ab8523d20057fcd46109727b46;hb=a746aa52146257c0e7a2d60123f63dccad5b2751;hp=e4374dce2eed5a8c674621b83d3d7beddd6329b0;hpb=f497296c30e6da2f97b16da8ad1c9e96feffb16b;p=lyx.git diff --git a/src/mathed/InsetMathPhantom.cpp b/src/mathed/InsetMathPhantom.cpp index e4374dce2e..4e18c7661e 100644 --- a/src/mathed/InsetMathPhantom.cpp +++ b/src/mathed/InsetMathPhantom.cpp @@ -14,7 +14,7 @@ #include "MathStream.h" #include "MathStream.h" -#include "LColor.h" +#include "Color.h" #include "frontends/Painter.h" @@ -29,9 +29,9 @@ InsetMathPhantom::InsetMathPhantom(Kind k) {} -std::auto_ptr InsetMathPhantom::doClone() const +std::auto_ptr InsetMathPhantom::doClone() const { - return std::auto_ptr(new InsetMathPhantom(*this)); + return std::auto_ptr(new InsetMathPhantom(*this)); } @@ -51,8 +51,8 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const static int const arrow_size = 4; // We first draw the text and then an arrow - LColor_color const origcol = pi.base.font.color(); - pi.base.font.setColor(LColor::special); + Color_color const origcol = pi.base.font.color(); + pi.base.font.setColor(Color::special); cell(0).draw(pi, x + 1, y); pi.base.font.setColor(origcol); @@ -79,15 +79,15 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const int const y3 = y4 - arrow_size; // top arrow - pi.pain.line(x2, y1, x1, y2, LColor::added_space); - pi.pain.line(x2, y1, x3, y2, LColor::added_space); + pi.pain.line(x2, y1, x1, y2, Color::added_space); + pi.pain.line(x2, y1, x3, y2, Color::added_space); // bottom arrow - pi.pain.line(x2, y4, x1, y3, LColor::added_space); - pi.pain.line(x2, y4, x3, y3, LColor::added_space); + pi.pain.line(x2, y4, x1, y3, Color::added_space); + pi.pain.line(x2, y4, x3, y3, Color::added_space); // joining line - pi.pain.line(x2, y1, x2, y4, LColor::added_space); + pi.pain.line(x2, y1, x2, y4, Color::added_space); } if (kind_ == phantom || kind_ == hphantom) { @@ -109,15 +109,15 @@ void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const int const y3 = y2 + arrow_size; // left arrow - pi.pain.line(x1, y2, x2, y3, LColor::added_space); - pi.pain.line(x1, y2, x2, y1, LColor::added_space); + pi.pain.line(x1, y2, x2, y3, Color::added_space); + pi.pain.line(x1, y2, x2, y1, Color::added_space); // right arrow - pi.pain.line(x4, y2, x3, y3, LColor::added_space); - pi.pain.line(x4, y2, x3, y1, LColor::added_space); + pi.pain.line(x4, y2, x3, y3, Color::added_space); + pi.pain.line(x4, y2, x3, y1, Color::added_space); // joining line - pi.pain.line(x1, y2, x4, y2, LColor::added_space); + pi.pain.line(x1, y2, x4, y2, Color::added_space); } drawMarkers(pi, x, y);