X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph.h;h=5febe6ce64ec2bc9ddc7fdd759fcfd98538f4c4a;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=fedd97c3c3e0da1f50d99733d30ece73e4100da5;hpb=34bca87dd83897a193fdc8ab02b524d9577a7be4;p=lyx.git diff --git a/src/paragraph.h b/src/paragraph.h index fedd97c3c3..5febe6ce64 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -178,8 +178,6 @@ public: /// bool empty() const { return text_.empty(); } /// - void setContentsFromPar(Paragraph const & par); - /// void clearContents(); /// @@ -198,6 +196,10 @@ public: /// is there a change within the given range ? bool isChanged(pos_type start, pos_type end) const; + /// is there an unchanged char at the given pos ? + bool isUnchanged(pos_type pos) const { + return lookupChange(pos).type == Change::UNCHANGED; + } /// is there an insertion at the given pos ? bool isInserted(pos_type pos) const { return lookupChange(pos).type == Change::INSERTED; @@ -213,11 +215,11 @@ public: /// set change at given pos void setChange(pos_type pos, Change const & change); - /// accept change - void acceptChange(pos_type start, pos_type end); + /// accept changes within the given range + void acceptChanges(pos_type start, pos_type end); - /// reject change - void rejectChange(pos_type start, pos_type end); + /// reject changes within the given range + void rejectChanges(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