X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_deliminset.h;h=84a3ac14512f335c30d27bacf0c212aac351f103;hb=92d522b7f1be6046adcac062c558bbf0bf021612;hp=c896ee7ca3aa464e93552e0adaa091da95617931;hpb=c93e9dcbc59d0b404561dbc7c373716f11fc13f1;p=lyx.git diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index c896ee7ca3..84a3ac1451 100644 --- a/src/mathed/math_deliminset.h +++ b/src/mathed/math_deliminset.h @@ -5,47 +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 &); /// - MathInset * clone() const; + InsetBase * clone() const; /// MathDelimInset * asDelimInset() { return this; } /// 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; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// - void draw(Painter &, int x, int y) const; + void draw(PainterInfo &, int x, int y) const; /// void write(WriteStream & os) const; /// write normalized content void normalize(NormalStream &) const; /// - void maplize(MapleStream &) const; + void maple(MapleStream &) const; + /// + void maxima(MaximaStream &) const; + /// + void mathematica(MathematicaStream &) const; /// void mathmlize(MathMLStream &) const; /// - void octavize(OctaveStream &) const; + void octave(OctaveStream &) const; /// string left_; /// string right_; private: /// - int dw() const; - /// - static string latexName(string const & name); + mutable int dw_; }; #endif