change tracking:

* paragraph.h: add method isUnchanged(..)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15511 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-10-23 16:04:51 +00:00
parent 504fa6f918
commit b08f0d1f39

View File

@ -198,6 +198,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;