]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathNumber.h
index e9142256a39329e35e7e2516be2c0f44c9d4f77a..d9ca5a263c85f71195e3c95c8f2d32b81661881c 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 "InsetMath.h"
 
+#include "support/docstring.h"
 
-namespace lyx {
 
+namespace lyx {
 
-/** Some inset that "is" a number
- *  mainly for math-extern
+/** Some inset that "is" a number mainly for math-extern
  */
 class InsetMathNumber : public InsetMath {
 public:
        ///
        explicit InsetMathNumber(docstring const & s);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -48,11 +48,12 @@ public:
        void write(WriteStream & os) const;
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        /// the number as string
        docstring str_;
 };
 
 
 } // namespace lyx
+
 #endif