]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.h
some (yet unfinished) up/down work
[lyx.git] / src / mathed / math_envinset.h
index f56622f28b9ad097bb70f3893f5f06689cfdcbab..ab32bda5e6da01a31977084d615e03f7d25ed480 100644 (file)
@@ -1,23 +1,27 @@
 // -*- C++ -*-
+/**
+ * \file math_envinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_ENVINSET_H
 #define MATH_ENVINSET_H
 
 #include "math_nestinset.h"
-#include "metricsinfo.h"
 
+#include <string>
 
-/** Environtments á la \begin{something}...\end{something}
- *  \author André Pönitz
- *
- * Full author contact details are available in file CREDITS
-*/
 
+/// Environtments á la \begin{something}...\end{something}
 class MathEnvInset : public MathNestInset {
 public:
        ///
-       MathEnvInset(string const & name_);
-       ///
-       MathInset * clone() const;
+       MathEnvInset(std::string const & name_);
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -25,13 +29,14 @@ public:
        /// write normalized content
        void normalize(NormalStream & ns) const;
        ///
-       void metrics(MetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void infoize(std::ostream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// name of that environment
-       string name_;
+       std::string name_;
 };
 
 #endif