- /// if persistent=false, save to temp_bookmark
- void saveBookmark(bool persistent);
- /// goto a specified position.
- void moveToPosition(
- int par_id, ///< Paragraph ID, \sa Paragraph
- pos_type par_pos ///< Position in the \c Paragraph
+ /// if idx == 0, save to temp_bookmark
+ void saveBookmark(unsigned int idx);
+ /// goto a specified position, try top_id first, and then bottom_pit.
+ /// \return true if success
+ bool moveToPosition(
+ pit_type bottom_pit, ///< Paragraph pit, used when par_id is zero or invalid.
+ pos_type bottom_pos, ///< Paragraph pit, used when par_id is zero or invalid.
+ int top_id, ///< Paragraph ID, \sa Paragraph
+ pos_type top_pos ///< Position in the \c Paragraph