using std::ostream;
+BufferView * MathInset::view() const
+{
+ if (!mathcursor)
+ return 0;
+ return mathcursor->formula()->view();
+}
+
+
int MathInset::height() const
{
return ascent() + descent();
}
-void MathInset::metrics(MathMetricsInfo &) const
+void MathInset::metrics(MetricsInfo &) const
{
lyxerr << "MathInset::metrics() called directly!\n";
}
-void MathInset::draw(MathPainterInfo &, int, int) const
+void MathInset::draw(PainterInfo &, int, int) const
{
lyxerr << "MathInset::draw() called directly!\n";
}
-void MathInset::drawSelection(MathPainterInfo &,
+void MathInset::drawSelection(PainterInfo &,
idx_type, pos_type, idx_type, pos_type) const
{
lyxerr << "MathInset::drawSelection() called directly!\n";
return os;
}
-
-Dialogs & getDialogs()
-{
- return mathcursor->formula()->view()->owner()->getDialogs();
-}