]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.h
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathDelim.h
index 03f883526878b7a3a1ee88897351ea6e4e4da0ce..5a7e8164049cfb7948559b8dd12587adc149d57a 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.
  */
@@ -15,8 +15,6 @@
 
 #include "InsetMathNest.h"
 
-#include <string>
-
 
 namespace lyx {
 
@@ -24,13 +22,16 @@ namespace lyx {
 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; }
        /// is it (...)?
        bool isParenthesis() const;
        /// is it [...]?
@@ -44,6 +45,8 @@ public:
        ///
        void draw(PainterInfo &, int x, int y) const;
 
+       ///
+       void validate(LaTeXFeatures & features) const;
        ///
        void write(WriteStream & os) const;
        /// write normalized content
@@ -55,15 +58,19 @@ 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_;
 };