}
-
void MathCursor::interpret(string const & s)
{
//lyxerr << "interpret: '" << s << "'\n";
}
-MathCursorPos MathCursor::firstSelectionPos() const
-{
- MathCursorPos anc = normalAnchor();
- return anc < cursor() ? anc : cursor();
-}
-
-
-MathCursorPos MathCursor::lastSelectionPos() const
-{
- MathCursorPos anc = normalAnchor();
- return anc < cursor() ? cursor() : anc;
-}
-
-
void MathCursor::getSelection(MathCursorPos & i1, MathCursorPos & i2) const
{
MathCursorPos anc = normalAnchor();
// anchor is behind cursor -> move anchor behind the inset
++normal.pos_;
}
- //lyxerr << "normalizing: from " << Anchor_[Anchor_.size() - 1] << " to "
- // << normal << "\n";
return normal;
}
///
MathXArray & xarray() const;
- /// returns the first position of the (normalized) selection
- MathCursorPos firstSelectionPos() const;
- /// returns the last position of the (normalized) selection
- MathCursorPos lastSelectionPos() const;
/// returns the selection
void getSelection(MathCursorPos &, MathCursorPos &) const;
/// returns the normalized anchor of the selection