]> git.lyx.org Git - lyx.git/blobdiff - src/Session.h
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Session.h
index 9cbe6d8bf59643ee6114dd0c764852979ab11b98..857e0561000395445e11eb1f27d25fd03c80b859 100644 (file)
@@ -246,7 +246,7 @@ public:
        bool hasValid() const;
 
        ///
-       unsigned int size() const { return max_bookmarks; }
+       unsigned int size() const { return bookmarks.size(); }
 
        /// clear all bookmarks
        void clear();
@@ -262,6 +262,12 @@ public:
        */
        BookmarkList & load() { return bookmarks; }
 
+       ///
+       typedef std::vector<std::pair<unsigned int, pos_type>> BookmarkPosList;
+
+       /// return a list of bookmarks and position for this paragraph
+       BookmarkPosList bookmarksInPar(support::FileName const & fn, int par_id) const;
+
 private:
 
        /// allow 9 regular bookmarks, bookmark 0 is temporary