#include "MetricsInfo.h"
#include "frontends/FontMetrics.h"
-
+#include "support/lassert.h"
namespace lyx {
}
+docstring InsetMathDots::mathmlize(MathStream & os) const
+{
+ // which symbols we support is decided by what is listed in
+ // lib/symbols as generating a dots inset
+ docstring const & n = key_->name;
+ std::string ent;
+ if (n == "dots" || n == "dotsc" || n == "dotso" || n == "ldots")
+ ent = "…";
+ else if (n == "adots")
+ ent = "⋰";
+ else if (n == "cdots" || n == "dotsb" || n == "dotsi" || n == "dotsm")
+ ent = "⋯";
+ else if (n == "ddots")
+ ent = "⋱";
+ else if (n == "iddots")
+ ent = "⋰";
+ else if (n == "vdots")
+ ent = "⋮";
+ else
+ LASSERT(false, ent = "…");
+ os << MTag("mi") << from_ascii(ent) << ETag("mi");
+ return docstring();
+}
+
} // namespace lyx