X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_deliminset.h;h=c96ffa5924cb30ce63916d5919271b66c7b54391;hb=e5fed66b3b96e9bc448c2e53e4ceb36b7d50481c;hp=6dde45708809bc699eaf6f58d5352d2cf9fffafd;hpb=fda98080ccb5d208bd961fb9f73af578622f7d42;p=lyx.git diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index 6dde457088..c96ffa5924 100644 --- a/src/mathed/math_deliminset.h +++ b/src/mathed/math_deliminset.h @@ -2,7 +2,8 @@ #ifndef MATH_DELIMINSET_H #define MATH_DELIMINSET_H -#include "math_inset.h" +#include "math_nestinset.h" +#include "LString.h" #ifdef __GNUG__ #pragma interface @@ -11,23 +12,44 @@ /** A delimiter \author Alejandro Aguilar Sierra */ -class MathDelimInset : public MathInset { + +class MathDelimInset : public MathNestInset { public: /// - MathDelimInset(int, int); + MathDelimInset(string const & left, string const & right); /// MathInset * clone() const; /// - void draw(Painter &, int, int); + MathDelimInset * asDelimInset() { return this; } /// - void write(std::ostream &, bool fragile) const; + MathDelimInset const * asDelimInset() const { return this; } + /// is it (...)? + bool isParanthesis() const; + /// is it [...]? + bool isBrackets() const; + /// is it |...|? + bool isAbs() const; /// - void metrics(MathStyles st); -private: - int dw() const; + void metrics(MathMetricsInfo const & st) const; + /// + void draw(Painter &, int x, int y) const; + + /// + void write(WriteStream & os) const; + /// write normalized content + void normalize(NormalStream &) const; /// - int left_; + void maplize(MapleStream &) const; /// - int right_; + void mathmlize(MathMLStream &) const; + /// + void octavize(OctaveStream &) const; + /// + string left_; + /// + string right_; +private: + /// + int dw() const; }; #endif