X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_rootinset.h;h=e03755e0173cf4d2cb81d4da0e7038edf5c4159a;hb=e093e5e80c334995a77445c8e66a9f3c9594dda1;hp=cae5cfb93ac622136cf2a8ead6e0b4c7cc3cdf82;hpb=5c40a062b2034f48f5b79079017bbaac8ba9363c;p=lyx.git diff --git a/src/mathed/math_rootinset.h b/src/mathed/math_rootinset.h index cae5cfb93a..e03755e017 100644 --- a/src/mathed/math_rootinset.h +++ b/src/mathed/math_rootinset.h @@ -1,8 +1,8 @@ // -*- C++ -*- /* * File: math_root.h - * Purpose: Declaration of the root object - * Author: Alejandro Aguilar Sierra + * Purpose: Declaration of the root object + * Author: Alejandro Aguilar Sierra * Created: January 1999 * Description: Root math object * @@ -15,8 +15,7 @@ #ifndef MATH_ROOT_H #define MATH_ROOT_H -#include "math_inset.h" -#include "symbol_def.h" +#include "math_nestinset.h" #ifdef __GNUG__ #pragma interface @@ -26,24 +25,27 @@ \author Alejandro Aguilar Sierra \version January 1999 */ -class MathRootInset : public MathInset { +class MathRootInset : public MathNestInset { public: /// MathRootInset(); /// MathInset * clone() const; /// - void draw(Painter &, int x, int baseline); + bool idxUpDown(idx_type & idx, bool up) const; /// - void Write(std::ostream &, bool fragile) const; + void metrics(MathMetricsInfo & st) const; /// - void WriteNormal(std::ostream &) const; + void draw(MathPainterInfo &, int x, int y) const; + + /// + void write(WriteStream & os) const; /// - void Metrics(MathStyles st, int asc = 0, int des = 0); + void normalize(NormalStream &) const; /// - bool idxUp(int & idx, int & pos) const; + void mathmlize(MathMLStream &) const; /// - bool idxDown(int & idx, int & pos) const; + void octavize(OctaveStream &) const; }; #endif