]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.cpp
* Inset and derivatives: insetName() -> name()
[lyx.git] / src / mathed / InsetMathBrace.cpp
index 6a4f6b61a7de647286923f7531c35d4c70e50b00..3f88fc52edb94ccfdf2dbfc13bbb6aba5985cd5d 100644 (file)
 #include <config.h>
 
 #include "InsetMathBrace.h"
-#include "MathArray.h"
+#include "MathData.h"
 #include "MathStream.h"
 #include "MathSupport.h"
-#include "LColor.h"
+#include "Color.h"
 
 #include "frontends/FontMetrics.h"
 #include "frontends/Painter.h"
@@ -32,16 +32,16 @@ InsetMathBrace::InsetMathBrace()
 {}
 
 
-InsetMathBrace::InsetMathBrace(MathArray const & ar)
+InsetMathBrace::InsetMathBrace(MathData const & ar)
        : InsetMathNest(1)
 {
        cell(0) = 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);