MathInset::MathInset()
- : xo_(0), yo_(0)
{}
}
-int MathInset::xo() const
-{
- return xo_;
-}
-
-
-int MathInset::yo() const
-{
- return yo_;
-}
-
-
-void MathInset::xo(int x) const
-{
- xo_ = x;
-}
-
-
-void MathInset::yo(int y) const
-{
- yo_ = y;
-}
-
-
MathInset::size_type MathInset::nargs() const
{
return 0;
{}
-void MathInset::getXY(int & x, int & y) const
-{
- x = xo();
- y = yo();
-}
-
-
void MathInset::writeNormal(std::ostream & os) const
{
os << "[unknown ";
bool MathInset::covers(int x, int y) const
{
- //lyxerr << "cover? p: " << this << " x: " << x << " y: " << y
- // << " xo_: " << xo_ << " yo_: " << yo_ << endl;
- return
- x >= xo_ &&
- x <= xo_ + width() &&
- y >= yo_ - ascent() &&
- y <= yo_ + descent();
+ lyxerr << "MathInset::covers() called directly!\n";
+ return false;
}