]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_envinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_envinset.h
index 374fbc5acb8e56053bdf53fe338ab8ef85475f7c..ab32bda5e6da01a31977084d615e03f7d25ed480 100644 (file)
 #define MATH_ENVINSET_H
 
 #include "math_nestinset.h"
-#include "metricsinfo.h"
+
+#include <string>
 
 
 /// Environtments รก la \begin{something}...\end{something}
 class MathEnvInset : public MathNestInset {
 public:
        ///
-       MathEnvInset(string const & name_);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       MathEnvInset(std::string const & name_);
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -35,8 +34,9 @@ public:
        void infoize(std::ostream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// name of that environment
-       string name_;
+       std::string name_;
 };
 
 #endif