]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.h
Fix bug #3294
[lyx.git] / src / mathed / InsetMathNumber.h
index 040ed4fd408d9ca75dbf68c6fd7eccfda47b294a..68d08bd31598b37c5feded4a751119be9b513e91 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;
        ///
@@ -45,7 +45,11 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void write(WriteStream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_NUMBER_CODE; }
 
 private:
        virtual Inset * clone() const;
@@ -55,4 +59,5 @@ private:
 
 
 } // namespace lyx
+
 #endif