asc = row.baseline();
desc = row.height() - asc;
} else
- innerInset()->getCursorDim(bv_, asc, desc);
+ innerInset()->getCursorDim(asc, desc);
}
// Ugly as you like.
//inset->getCursorPos(bv_, x, y);
//y = inset->insetInInsetY() + bv_->text->cursor.y();
- inset->getCursorPos(bv_, x, y);
+ inset->getCursorPos(x, y);
x += inset->x();
y += cached_y_;
}
+
+2003-11-21 Michael Schmitt <michael.schmitt@teststep.org>
+
+ * insetcollapsable.[Ch]:
+ * insettabular.[Ch]:
+ * insettext.[Ch] (getCursorDim): squash unused variable
+
2003-11-21 Alfredo Braunstein <abraunst@lyx.org>
* insettext.C (edit): x0_,y0_ -> xo_,yo_
}
-void InsetCollapsable::getCursorPos(BufferView * bv, int & x, int & y) const
+void InsetCollapsable::getCursorPos(int & x, int & y) const
{
- inset.getCursorPos(bv, x , y);
+ inset.getCursorPos(x , y);
y += - ascent() + height_collapsed() + inset.ascent();
}
///
void validate(LaTeXFeatures & features) const;
/// get the screen x,y of the cursor
- void getCursorPos(BufferView *, int & x, int & y) const;
+ void getCursorPos(int & x, int & y) const;
///
void setFont(BufferView *, LyXFont const &, bool toggleall = false,
bool selectall = false);
}
-void InsetTabular::getCursorPos(BufferView *, int & x, int & y) const
+void InsetTabular::getCursorPos(int & x, int & y) const
{
x = TEXT_TO_INSET_OFFSET + cursorx_ - xo_;
y = TEXT_TO_INSET_OFFSET + cursory_;
///
InsetOld::Code lyxCode() const { return InsetOld::TABULAR_CODE; }
/// get the absolute screen x,y of the cursor
- void getCursorPos(BufferView *, int & x, int & y) const;
+ void getCursorPos(int & x, int & y) const;
///
bool tabularFeatures(BufferView * bv, std::string const & what);
///
}
-void InsetText::getCursorPos(BufferView *, int & x, int & y) const
+void InsetText::getCursorPos(int & x, int & y) const
{
x = text_.cursor.x() + TEXT_TO_INSET_OFFSET;
y = text_.cursor.y() - dim_.asc + TEXT_TO_INSET_OFFSET;
///
InsetOld::Code lyxCode() const { return InsetOld::TEXT_CODE; }
/// FIXME, document
- void getCursorPos(BufferView *, int & x, int & y) const;
+ void getCursorPos(int & x, int & y) const;
///
int insetInInsetY() const;
///
}
-void UpdatableInset::getCursorDim(BufferView *, int &, int &) const
+void UpdatableInset::getCursorDim(int &, int &) const
{
BOOST_ASSERT(false);
}
virtual EDITABLE editable() const;
/// return the cursor pos, relative to the inset pos
- virtual void getCursorPos(BufferView *, int &, int &) const {}
+ virtual void getCursorPos(int &, int &) const {}
/// return the cursor dim
- virtual void getCursorDim(BufferView *, int &, int &) const;
+ virtual void getCursorDim(int &, int &) const;
///
virtual bool insertInset(BufferView *, InsetOld *) { return false; }
///
+2003-11-21 Michael Schmitt <michael.schmitt@teststep.org>
+
+ * formulabase.C (getCursorDim): squash unused variable
+
2003-11-20 Angus Leeming <leeming@lyx.org>
* formulabase.C (getCursorDim): squash warning about unused variable.
}
-void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const
+void InsetFormulaBase::getCursorPos(int & x, int & y) const
{
if (!mathcursor) {
lyxerr << "getCursorPos - should not happen";
}
-void InsetFormulaBase::getCursorDim(BufferView *, int & asc, int & desc) const
+void InsetFormulaBase::getCursorDim(int & asc, int & desc) const
{
if (!mathcursor)
return;
/// what appears in the minibuffer when opening
virtual std::string const editMessage() const;
///
- virtual void getCursorPos(BufferView *, int &, int &) const;
+ virtual void getCursorPos(int &, int &) const;
///
- virtual void getCursorDim(BufferView *, int &, int &) const;
+ virtual void getCursorDim(int &, int &) const;
/// get the absolute document x,y of the cursor
virtual void getCursor(BufferView & bv, int & x, int & y) const;
///