X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDelim.h;h=cbea8ec01c10552af748430f6c6c7ae4e92628a7;hb=ef7a142f3f4e5937dabf7fb8fc7957bf351e166d;hp=894eccaff853616ef9395b4049712eedfafa3290;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathDelim.h b/src/mathed/InsetMathDelim.h index 894eccaff8..cbea8ec01c 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. */ @@ -18,13 +18,16 @@ #include -/// A delimiter +namespace lyx { + +/// 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; } /// @@ -53,16 +56,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; } + /// + docstring left_; /// - std::string right_; + docstring right_; private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// mutable int dw_; }; + +} // namespace lyx + #endif