]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_boxinset.h
index 0f956c2ff5b5ed93c162c9520880482a211b9962..df9bcd6cff566150af7de2c64c57f5f4620fe020 100644 (file)
@@ -1,9 +1,20 @@
 // -*- C++ -*-
+/**
+ * \file math_boxinset.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_BOXINSET_H
 #define MATH_BOXINSET_H
 
 #include "math_nestinset.h"
-#include "LString.h"
+
+#include <string>
 
 
 class LyXFont;
@@ -13,9 +24,7 @@ class LyXFont;
 class MathBoxInset : public MathNestInset {
 public:
        ///
-       explicit MathBoxInset(string const & name);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathBoxInset(std::string const & name);
        ///
        mode_type currentMode() const { return TEXT_MODE; }
        ///
@@ -30,8 +39,9 @@ public:
        void infoize(std::ostream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        ///
-       string name_;
+       std::string name_;
 };