mutable LyXFont current_font;
/// the current font
mutable LyXFont real_current_font;
- /// first visible pixel-row is set from LyXScreen!!!
+ /// first visible pixel-row is set from LScreen!!!
// unsigned is wrong here for text-insets!
int first_y;
///
///
void insertInset(BufferView *, Inset * inset);
- /** Completes the insertion with a full rebreak.
- Returns true if something was broken. */
- bool fullRebreak(BufferView *);
+ /** Completes the insertion with a full rebreak. */
+ void fullRebreak(BufferView *);
///
mutable Row * need_break_row;
bool setfont = true,
bool boundary = false) const;
///
+ float getCursorX(BufferView *, Row *, lyx::pos_type pos,
+ lyx::pos_type last, bool boundary) const;
+ ///
void setCurrentFont(BufferView *) const;
///
void setCursorFromCoordinates(BufferView *, LyXCursor &,
int x, int y) const;
///
- void cursorUp(BufferView *) const;
+ void cursorUp(BufferView *, bool selecting = false) const;
///
- void cursorDown(BufferView *) const;
+ void cursorDown(BufferView *, bool selecting = false) const;
///
void cursorLeft(BufferView *, bool internal = true) const;
///
/// draw a mark for foreign language, starting from orig_x
void drawForeignMark(DrawRowParams & p, float const orig_x, LyXFont const & orig_font);
/// draw an inset
- void drawInset(DrawRowParams & p, lyx::pos_type const pos);
+ bool drawInset(DrawRowParams & p, lyx::pos_type const pos);
/// draw new line marker
void drawNewline(DrawRowParams & p, lyx::pos_type const pos);
/// draw text
- void draw(DrawRowParams & p, lyx::pos_type & vpos);
+ bool draw(DrawRowParams & p, lyx::pos_type & vpos);
/// get the next breakpoint in a given paragraph
lyx::pos_type nextBreakPoint(BufferView *, Row const * row, int width) const;
///
lyx::pos_type beginningOfMainBody(Buffer const *, Paragraph const * par) const;
- /** Returns the left beginning of the text.
- This information cannot be taken from the layouts-objekt, because
- in LaTeX the beginning of the text fits in some cases
- (for example sections) exactly the label-width.
- */
+ /**
+ * Returns the left beginning of the text.
+ * This information cannot be taken from the layout object, because
+ * in LaTeX the beginning of the text fits in some cases
+ * (for example sections) exactly the label-width.
+ */
int leftMargin(BufferView *, Row const * row) const;
///
int rightMargin(Buffer const *, Row const * row) const;