]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathEnv.h
index 7d73a875d52edd735e93de9b1b462397c506776f..4f8a342c0fef0fb2999281464c691f5f6a4fb674 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 
 #include "InsetMathNest.h"
 
-#include <string>
-
 
 namespace lyx {
 
 
-/// Environtments á la \begin{something}...\end{something}
+/// Environtments á la \begin{something}...\end{something}
 class InsetMathEnv : public InsetMathNest {
 public:
        ///
-       InsetMathEnv(docstring const & name_);
+       InsetMathEnv(Buffer * buf, docstring const & name_);
        ///
-       void draw(PainterInfo &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const override;
        ///
-       void write(WriteStream & os) const;
+       void write(TeXMathStream & os) const override;
        /// write normalized content
-       void normalize(NormalStream & ns) const;
+       void normalize(NormalStream & ns) const override;
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void infoize(odocstream & os) const override;
        ///
-       void infoize(odocstream & os) const;
+       InsetCode lyxCode() const override { return MATH_ENV_CODE; }
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       Inset * clone() const override;
        /// name of that environment
        docstring name_;
 };