X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDelim.h;h=69242d50a7e66b1d8aa5c48b6c2fc5123a22a6b5;hb=9296344b9a26191a2092d175a51e357ecc35145d;hp=894eccaff853616ef9395b4049712eedfafa3290;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathDelim.h b/src/mathed/InsetMathDelim.h index 894eccaff8..69242d50a7 100644 --- a/src/mathed/InsetMathDelim.h +++ b/src/mathed/InsetMathDelim.h @@ -5,7 +5,7 @@ * Licence details can be found in the file COPYING. * * \author Alejandro Aguilar Sierra - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -15,20 +15,25 @@ #include "InsetMathNest.h" -#include +namespace lyx { -/// A delimiter +/// A delimiter like '{' or '(' or '<' class InsetMathDelim : public InsetMathNest { public: /// - InsetMathDelim(std::string const & left, std::string const & right); + InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right); /// - InsetMathDelim(std::string const & left, std::string const & right, MathArray const &); + InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right, + MathData const &); /// InsetMathDelim * asDelimInset() { return this; } /// InsetMathDelim const * asDelimInset() const { return this; } + /// + MathClass mathClass() const { return MC_INNER; } + /// + marker_type marker(BufferView const *) const { return NO_MARKER; } /// is it (...)? bool isParenthesis() const; /// is it [...]? @@ -42,6 +47,8 @@ public: /// void draw(PainterInfo &, int x, int y) const; + /// + void validate(LaTeXFeatures & features) const; /// void write(WriteStream & os) const; /// write normalized content @@ -53,16 +60,23 @@ public: /// void mathematica(MathematicaStream &) const; /// - void mathmlize(MathMLStream &) const; + void mathmlize(MathStream &) const; + /// + void htmlize(HtmlStream &) const; /// void octave(OctaveStream &) const; /// - std::string left_; + InsetCode lyxCode() const { return MATH_DELIM_CODE; } /// - std::string right_; + docstring left_; + /// + docstring right_; private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// mutable int dw_; }; + +} // namespace lyx + #endif