/// 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;
+ void ClearSelection(BufferView *) const;
///
string const selectionAsString(Buffer const *) const;
LyXAlignment align,
string labelwidthstring,
bool noindent);
+#ifndef NO_PEXTRA
///
void SetParagraphExtraOpt(BufferView *, int type,
string const & width,
string const & widthp,
int alignment, bool hfill,
bool start_minipage);
-
+#endif
/* these things are for search and replace */
- /** returns true if the specified string is at the specified
- position
- */
- bool IsStringInText(LyXParagraph * par,
- LyXParagraph::size_type pos,
- string const & str) const;
/** sets the selection over the number of characters of string,
no check!!
*/
*/
void ReplaceSelectionWithString(BufferView *, string const & str);
- /** if the string can be found: return true and set the cursor to
- the new position */
- bool SearchForward(BufferView *, string const & str) const;
- ///
- bool SearchBackward(BufferView *, string const & str) const;
-
/// needed to insert the selection
void InsertStringA(BufferView *, string const & str);
/// 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