3 #include "math_dotsinset.h"
4 #include "math_mathmlstream.h"
5 #include "math_streamstr.h"
6 #include "math_support.h"
7 #include "math_parser.h"
12 MathDotsInset::MathDotsInset(latexkeys const * key)
17 auto_ptr<InsetBase> MathDotsInset::clone() const
19 return auto_ptr<InsetBase>(new MathDotsInset(*this));
23 void MathDotsInset::metrics(MetricsInfo & mi, Dimension & dim) const
25 mathed_char_dim(mi.base.font, 'M', dim_);
27 if (key_->name == "cdots" || key_->name == "dotsb"
28 || key_->name == "dotsm" || key_->name == "dotsi")
30 else if (key_->name == "dotsc")
32 else if (key_->name == "vdots") {
33 dim_.wid = (dim_.wid / 2) + 1;
36 else if (key_->name == "ddots")
42 void MathDotsInset::draw(PainterInfo & pain, int x, int y) const
44 mathed_draw_deco(pain, x + 2, y - dh_, dim_.width() - 2, dim_.ascent(),
46 if (key_->name == "vdots" || key_->name == "ddots")
48 if (key_->name != "vdots")
50 mathed_draw_deco(pain, x + 2, y - dh_, dim_.width() - 2, dim_.ascent(),
55 string MathDotsInset::name() const