]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
bug 183
[lyx.git] / src / lyxtext.h
index 8c6114ea6241f02b5b2536f47f266d30b3df5723..b7da0fe71e2e798fddf1fccea0b1631df88db0aa 100644 (file)
@@ -107,8 +107,6 @@ public:
                         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);
@@ -306,8 +304,8 @@ public:
        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;
@@ -612,8 +610,8 @@ private:
                                  LyXCursor & cur,
                                  LyXCursor const & where) const;
        
-       /// delete double space or empty paragraphs around old_cursor 
-       void deleteEmptyParagraphMechanism(BufferView *,
+       /// delete double space (false) or empty paragraphs (true) around old_cursor 
+       bool deleteEmptyParagraphMechanism(BufferView *,
                                           LyXCursor const & old_cursor) const;
 
 public: