]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.h
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathNumber.h
index e9142256a39329e35e7e2516be2c0f44c9d4f77a..dc9d3cd84891a634fd23aceac2e0fc14c38d174b 100644 (file)
 
 #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