X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNumber.cpp;h=6a67ce18d75d92840db8f46c808a0834f6bf627d;hb=704328d3488c75733ddeb9ad5439b1907e323e39;hp=57f6ad9253a7d918cc30354cf2fd6084bb87b2b5;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git
diff --git a/src/mathed/InsetMathNumber.cpp b/src/mathed/InsetMathNumber.cpp
index 57f6ad9253..6a67ce18d7 100644
--- a/src/mathed/InsetMathNumber.cpp
+++ b/src/mathed/InsetMathNumber.cpp
@@ -3,7 +3,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.
*/
@@ -15,10 +15,10 @@
#include "MathStream.h"
#include "MathSupport.h"
+using namespace std;
-namespace lyx {
-using std::vector;
+namespace lyx {
InsetMathNumber::InsetMathNumber(docstring const & s)
: str_(s)
@@ -31,13 +31,9 @@ Inset * InsetMathNumber::clone() const
}
-bool InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathNumber::metrics(MetricsInfo & mi, Dimension & dim) const
{
mathed_string_dim(mi.base.font, str_, dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}
@@ -73,7 +69,13 @@ void InsetMathNumber::octave(OctaveStream & os) const
void InsetMathNumber::mathmlize(MathStream & os) const
{
- os << " " << str_ << " ";
+ os << "" << str_ << "";
+}
+
+
+void InsetMathNumber::htmlize(HtmlStream & os) const
+{
+ os << str_;
}