+ /// search for next occurence of an \c Inset type.
+ /// \return the position of the found inset.
+ /// \retval -1 if no \c Inset is found.
+ pos_type find(
+ InsetCode code, ///< Code of inset to find.
+ pos_type startpos = 0 ///< start position for the search.
+ ) const;
+
+ /// count occurrences of an \c Inset type.
+ /// \return the number of found inset(s).
+ int count(
+ InsetCode code, ///< Code of inset type to count.
+ pos_type startpos = 0 ///< start position for the counting.
+ ) const;
+