int MathInset::workwidth;
-MathInset::MathInset(string const & name)
- : name_(name), size_(LM_ST_DISPLAY), code_(LM_TC_MIN), xo_(0), yo_(0)
+MathInset::MathInset()
+ : size_(LM_ST_DISPLAY), xo_(0), yo_(0)
{}
}
-string const & MathInset::name() const
-{
- return name_;
-}
-
-
-void MathInset::setName(string const & n)
-{
- name_ = n;
-}
-
-
MathStyles MathInset::size() const
{
return size_;
}
-void MathInset::size(MathStyles s)
+void MathInset::size(MathStyles s) const
{
size_ = s;
}
}
-void MathInset::xo(int x)
+void MathInset::xo(int x) const
{
xo_ = x;
}
-void MathInset::yo(int y)
+void MathInset::yo(int y) const
{
yo_ = y;
}
void MathInset::writeNormal(std::ostream & os) const
{
- os << "[" << name_ << "] ";
+ os << "[unknown] ";
}
}
-MathTextCodes MathInset::code() const
+void MathInset::metrics(MathStyles st) const
{
- return code_;
+ lyxerr << "MathInset::metrics() called directly!\n";
+ size_ = st;
}
-void MathInset::code(MathTextCodes t)
+void MathInset::draw(Painter &, int, int) const
{
- code_ = t;
+ lyxerr << "MathInset::draw() called directly!\n";
}
-void MathInset::metrics(MathStyles st)
+void MathInset::write(std::ostream &, bool) const
{
- size_ = st;
+ lyxerr << "MathInset::write() called directly!\n";
}