X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph.h;h=6a1539243899fbacaa879485512afe351c020ce5;hb=e7f4618bcce770369cf46335c2c7f0164b4b8857;hp=9dd468671686f8c1a7e52a495130170bd575b24d;hpb=b7518c3c951ab4dc47f000650f9a651c4e98cc16;p=lyx.git diff --git a/src/paragraph.h b/src/paragraph.h index 9dd4686716..6a15392438 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -168,8 +168,6 @@ public: pos_type size() const { return text_.size(); } /// bool empty() const { return text_.empty(); } - /// - void clearContents(); /// LyXLayout_ptr const & layout() const; @@ -211,10 +209,10 @@ public: void setChange(pos_type pos, Change const & change); /// accept changes within the given range - void acceptChanges(pos_type start, pos_type end); + void acceptChanges(BufferParams const & bparams, pos_type start, pos_type end); /// reject changes within the given range - void rejectChanges(pos_type start, pos_type end); + void rejectChanges(BufferParams const & bparams, pos_type start, pos_type end); /// Paragraphs can contain "manual labels", for example, Description /// environment. The text for this user-editable label is stored in @@ -341,8 +339,9 @@ public: /// returns -1 if inset not found int getPositionOfInset(InsetBase const * inset) const; - /// Returns the number of line breaks and white-space stripped at the start - int stripLeadingSpaces(bool trackChanges); + /// returns true if at least one line break or line separator has been deleted + /// at the beginning of the paragraph (either physically or logically) + bool stripLeadingSpaces(bool trackChanges); /// return true if we allow multiple spaces bool isFreeSpacing() const;