X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_deliminset.h;h=c96ffa5924cb30ce63916d5919271b66c7b54391;hb=e5fed66b3b96e9bc448c2e53e4ceb36b7d50481c;hp=e0a00d9b57c0076e5d2270523b0f248ee204172a;hpb=0daba49b1d7493cbf76658314b7459b51f870081;p=lyx.git diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index e0a00d9b57..c96ffa5924 100644 --- a/src/mathed/math_deliminset.h +++ b/src/mathed/math_deliminset.h @@ -16,33 +16,40 @@ class MathDelimInset : public MathNestInset { public: /// - MathDelimInset(string const &, string const &); + MathDelimInset(string const & left, string const & right); /// MathInset * clone() const; /// - void draw(Painter &, int x, int y) const; + MathDelimInset * asDelimInset() { return this; } /// - void write(MathWriteInfo & os) const; - /// write normalized content - void writeNormal(NormalStream &) const; + MathDelimInset const * asDelimInset() const { return this; } + /// is it (...)? + bool isParanthesis() const; + /// is it [...]? + bool isBrackets() const; + /// is it |...|? + bool isAbs() const; /// void metrics(MathMetricsInfo const & st) const; /// - bool isMatrix() const; + void draw(Painter &, int x, int y) const; + + /// + void write(WriteStream & os) const; + /// write normalized content + void normalize(NormalStream &) const; /// void maplize(MapleStream &) const; /// void mathmlize(MathMLStream &) const; /// void octavize(OctaveStream &) const; -private: - /// - int dw() const; /// string left_; /// string right_; +private: /// - static string latexName(string const & name); + int dw() const; }; #endif