]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_numberinset.h
index 8c20c3149fe84395483ee0d896257241b7b0afc1..c936b8d034470317feb64e575a24442f7a4869ed 100644 (file)
@@ -1,4 +1,14 @@
 // -*- C++ -*-
+/**
+ * \file math_numberinset.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_NUMBERINSET_H
 #define MATH_NUMBERINSET_H
 
 
 
 /** Some inset that "is" a number
- *  maily for math-extern
- *  \author André Pönitz
- *
- * Full author contact details are available in file CREDITS
+ *  mainly for math-extern
  */
-
 class MathNumberInset : public MathInset {
 public:
        ///
-       explicit MathNumberInset(string const & s);
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       explicit MathNumberInset(std::string const & s);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       string str() const { return str_; }
+       std::string str() const { return str_; }
        ///
        MathNumberInset * asNumberInset() { return this; }
 
@@ -39,7 +43,8 @@ public:
        void write(WriteStream & os) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// the number as string
-       string str_;
+       std::string str_;
 };
 #endif