X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.h;h=b7443b9cab5eb0dd4683fd9ea330d77820ebf63f;hb=5d96ee69eb9173779932575cb6d6ce70db9860b9;hp=857e0561000395445e11eb1f27d25fd03c80b859;hpb=42b23f3fb24ea38e2b40543f4822a62d492e305a;p=lyx.git diff --git a/src/Session.h b/src/Session.h index 857e056100..b7443b9cab 100644 --- a/src/Session.h +++ b/src/Session.h @@ -196,7 +196,7 @@ public: /// top and bottom level information sometimes needs to be sync'ed. In particular, /// top_id is determined when a bookmark is restored from session; and /// bottom_pit and bottom_pos are determined from top_id when a bookmark - /// is save to session. (What a mess! :-) + /// is saved to session. (What a mess! :-) /// /// TODO: bottom level pit and pos will be replaced by StableDocIterator class Bookmark { @@ -268,6 +268,13 @@ public: /// return a list of bookmarks and position for this paragraph BookmarkPosList bookmarksInPar(support::FileName const & fn, int par_id) const; + /* An insertion/deletion in paragraph \c par_id of buffer \c fn + * lead to an offset \c offset after position \c pos. Update + * bookmarks accordingly. + */ + void adjustPosAfterPos(support::FileName const & fn, + int const par_id, pos_type pos, int offset); + private: /// allow 9 regular bookmarks, bookmark 0 is temporary