- /// Returns paragraph id and position from a row number
- void getIdFromRow(int row, int & id, int & pos);
+ /**
+ * getIdFromRow - find pid and position for a given row
+ * @param row row number to find
+ * @param id set to id if found
+ * @param pos set to paragraph position if found
+ * @return true if found, false otherwise
+ *
+ * If the row could not be found, pos is set to zero and
+ * id is set to -1
+ */
+ bool getIdFromRow(int row, int & id, int & pos) const;