-
-int MathInset::workwidth;
-
-
-MathInset::MathInset(int nargs, string const & name, MathInsetTypes ot)
- : name_(name), objtype(ot), width_(0), ascent_(0), descent_(0),
- size_(LM_ST_DISPLAY), cells_(nargs), xo_(0), yo_(0)
-{}
-
-
-int MathInset::ascent() const
-{
- return ascent_;
-}
-
-
-int MathInset::descent() const
-{
- return descent_;
-}
-
-
-int MathInset::width() const
-{
- return width_;
-}
-
-
-int MathInset::height() const
-{
- return ascent_ + descent_;
-}
-
-
-int MathInset::limits() const
-{
- return false;
-}
-
-
-void MathInset::limits(int)
-{
-}
-
-string const & MathInset::name() const
-{
- return name_;
-}
-
-
-MathInsetTypes MathInset::getType() const
-{
- return objtype;
-}
-
-
-void MathInset::setType(MathInsetTypes t)
-{
- objtype = t;
-}
-
-
-void MathInset::setName(string const & n)
-{
- name_ = n;
-}
-
-
-MathStyles MathInset::size() const
-{
- return size_;
-}
-
-
-void MathInset::size(MathStyles s)
-{
- size_ = s;
-}
-
-std::ostream & operator<<(std::ostream & os, MathInset const & inset)
-{
- inset.write(os, false);
- return os;
-}
-
-
-int MathInset::xo() const
-{
- return xo_;
-}
-
-
-int MathInset::yo() const
-{
- return yo_;
-}
-
-
-void MathInset::xo(int x)
-{
- xo_ = x;
-}
-
-
-void MathInset::yo(int y)
-{
- yo_ = y;
-}
-
-
-int MathInset::nargs() const
-{
- return cells_.size();
-}
-