]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.cpp
* Inset and derivatives: insetName() -> name()
[lyx.git] / src / mathed / InsetMathBrace.cpp
index e096c7a3ce3bf6fff03e084d72b147a55fc72617..3f88fc52edb94ccfdf2dbfc13bbb6aba5985cd5d 100644 (file)
@@ -14,7 +14,7 @@
 #include "MathData.h"
 #include "MathStream.h"
 #include "MathSupport.h"
-#include "LColor.h"
+#include "Color.h"
 
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
@@ -39,9 +39,9 @@ InsetMathBrace::InsetMathBrace(MathData const & ar)
 }
 
 
-auto_ptr<InsetBase> InsetMathBrace::doClone() const
+auto_ptr<Inset> InsetMathBrace::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetMathBrace(*this));
+       return auto_ptr<Inset>(new InsetMathBrace(*this));
 }
 
 
@@ -62,8 +62,8 @@ bool InsetMathBrace::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetMathBrace::draw(PainterInfo & pi, int x, int y) const
 {
-       LyXFont font = pi.base.font;
-       font.setColor(LColor::latex);
+       Font font = pi.base.font;
+       font.setColor(Color::latex);
        Dimension t = theFontMetrics(font).dimension('{');
        pi.pain.text(x, y, '{', font);
        cell(0).draw(pi, x + t.wid, y);