/// the current font
mutable LyXFont real_current_font;
/// first visible pixel-row is set from LyXScreen!!!
- unsigned int first;
+ // unsigned is wrong here for text-insets!
+ int first;
///
BufferView * bv_owner;
///
///
UpdatableInset * the_locking_inset;
+ ///
+ int GetRealCursorX(BufferView *) const;
///
LyXFont const GetFont(Buffer const *, LyXParagraph * par,
LyXParagraph::size_type pos) const;
LyXCursor toggle_end_cursor;
/// need the selection cursor:
- void SetSelection();
+ void SetSelection(BufferView *);
///
void ClearSelection() const;
///
/// needed to insert the selection
void InsertStringB(BufferView *, string const & str);
- /// usefull when texing from within LyX
- bool GotoNextError(BufferView *) const;
-
- /// just another feature :)
- bool GotoNextNote(BufferView *) const;
+ /// Find next inset of some specified type.
+ bool GotoNextInset(BufferView *, std::vector<Inset::Code> const & codes,
+ string const & contents = string()) const;
+ ///
/* for the greater insets */
}
///
inline
- int bidi_level(LyXParagraph::size_type pos) const {
+ LyXParagraph::size_type bidi_level(LyXParagraph::size_type pos) const {
if (bidi_start == -1)
return 0;
else