]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.h
TexRow info in source panel and gotoCursor() for debugging
[lyx.git] / src / mathed / InsetMathDelim.h
index ab94d85808153caa39ca900e0a239f2e0f67741a..3a09ede2f32bd509356bb2a518a02a07177d6a26 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,9 +22,10 @@ namespace lyx {
 class InsetMathDelim : public InsetMathNest {
 public:
        ///
-       InsetMathDelim(docstring const & left, docstring const & right);
+       InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right);
        ///
-       InsetMathDelim(docstring const & left, docstring const & right, MathArray const &);
+       InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right,
+               MathData const &);
        ///
        InsetMathDelim * asDelimInset() { return this; }
        ///
@@ -40,10 +39,12 @@ public:
        ///
        mode_type currentMode() const { return MATH_MODE; }
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
 
+       ///
+       void validate(LaTeXFeatures & features) const;
        ///
        void write(WriteStream & os) const;
        /// write normalized content
@@ -57,13 +58,17 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void octave(OctaveStream &) const;
        ///
+       InsetCode lyxCode() const { return MATH_DELIM_CODE; }
+       ///
        docstring left_;
        ///
        docstring right_;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        mutable int dw_;
 };