]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.h
Fixed longstanding bug in Advanced Find&Replace, when dealing with documents containi...
[lyx.git] / src / mathed / InsetMathDelim.h
index 894eccaff853616ef9395b4049712eedfafa3290..cbea8ec01c10552af748430f6c6c7ae4e92628a7 100644 (file)
@@ -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.
  */
 #include <string>
 
 
-/// 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<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        mutable int dw_;
 };
+
+} // namespace lyx
+
 #endif