X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_deliminset.h;h=c96ffa5924cb30ce63916d5919271b66c7b54391;hb=e5fed66b3b96e9bc448c2e53e4ceb36b7d50481c;hp=e5d5d4aa609cb75df20b31aa95e9c3629a0d9843;hpb=f10555975235c3062d0fee9fe97a607edc33bf31;p=lyx.git diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index e5d5d4aa60..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(std::ostream &) 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