X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_deliminset.h;h=84a3ac14512f335c30d27bacf0c212aac351f103;hb=92d522b7f1be6046adcac062c558bbf0bf021612;hp=e5d5d4aa609cb75df20b31aa95e9c3629a0d9843;hpb=f10555975235c3062d0fee9fe97a607edc33bf31;p=lyx.git diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index e5d5d4aa60..84a3ac1451 100644 --- a/src/mathed/math_deliminset.h +++ b/src/mathed/math_deliminset.h @@ -5,44 +5,56 @@ #include "math_nestinset.h" #include "LString.h" -#ifdef __GNUG__ -#pragma interface -#endif /** A delimiter - \author Alejandro Aguilar Sierra + * \author Alejandro Aguilar Sierra + * + * Full author contact details are available in file CREDITS */ class MathDelimInset : public MathNestInset { public: /// - MathDelimInset(string const &, string const &); + MathDelimInset(string const & left, string const & right); + /// + MathDelimInset(string const & left, string const & right, MathArray const &); + /// + InsetBase * clone() const; /// - MathInset * clone() const; + MathDelimInset * asDelimInset() { return this; } /// - void draw(Painter &, int x, int y) const; + MathDelimInset const * asDelimInset() const { return this; } + /// is it (...)? + bool isParanthesis() const; + /// is it [...]? + bool isBrackets() const; + /// is it |...|? + bool isAbs() const; /// - void write(MathWriteInfo & os) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; + /// + void draw(PainterInfo &, int x, int y) const; + + /// + void write(WriteStream & os) const; /// write normalized content - void writeNormal(std::ostream &) const; + void normalize(NormalStream &) const; /// - void metrics(MathMetricsInfo const & st) const; + void maple(MapleStream &) const; /// - bool isMatrix() const; + void maxima(MaximaStream &) const; /// - void maplize(MapleStream &) const; + void mathematica(MathematicaStream &) const; /// void mathmlize(MathMLStream &) const; /// - void octavize(OctaveStream &) const; -private: - /// - int dw() const; + void octave(OctaveStream &) const; /// string left_; /// string right_; +private: /// - static string latexName(string const & name); + mutable int dw_; }; #endif