lyx::pos_type pos, LyXFont const & font);
void setCharFont(BufferView *, Paragraph * par,
lyx::pos_type pos, LyXFont const & font, bool toggleall);
- /// returns a pointer to the very first Paragraph
- Paragraph * firstParagraph() const;
/// what you expect when pressing <enter> at cursor position
void breakParagraph(BufferView *, char keep_layout = 0);
string const selectNextWordToSpellcheck(BufferView *, float & value) const;
///
void selectSelectedWord(BufferView *);
- ///
- void setCursor(BufferView *, Paragraph * par,
+ /// returns true if par was empty and was removed
+ bool setCursor(BufferView *, Paragraph * par,
lyx::pos_type pos,
bool setfont = true,
bool boundary = false) const;
/// paint env depth bar
void paintRowDepthBar(DrawRowParams & p);
+ /// get the on-screen size of the length marker
+ int getLengthMarkerHeight(BufferView * bv, VSpace const & vsp) const;
+
+ /// paint an added space marker
+ int drawLengthMarker(DrawRowParams & p, string const & str,
+ VSpace const & vsp, int start);
+
/// paint a first row in a paragraph
void paintFirstRow(DrawRowParams & p);
LyXCursor & cur,
LyXCursor const & where) const;
- ///
- void deleteEmptyParagraphMechanism(BufferView *,
+ /// delete double space (false) or empty paragraphs (true) around old_cursor
+ bool deleteEmptyParagraphMechanism(BufferView *,
LyXCursor const & old_cursor) const;
public: