]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.h
fix crash when collapsing ert with cursor inside
[lyx.git] / src / bufferview_funcs.h
index 7bc244ac21499e13a4c4a592045f9d9fed5ff41b..1f77007ab5ccf52d50bcbcd4ed68c02ddecda821 100644 (file)
 #define BUFFERVIEW_FUNCS_H
 
 #include <string>
+#include <vector>
 
 class LyXFont;
 class Point;
 class DocIterator;
 class BufferView;
+class InsetBase_code;
 
 
 namespace bv_funcs {
@@ -49,6 +51,13 @@ CurStatus status(BufferView const * bv, DocIterator const & dit);
 
 Point coordOffset(DocIterator const & dit);
 
+// Moves cursor to the next inset with one of the given codes.
+void gotoInset(BufferView * bv, std::vector<InsetBase_code> const & codes,
+              bool same_content);
+
+// Moves cursor to the next inset with given code.
+void gotoInset(BufferView * bv, InsetBase_code code, bool same_content);
+
 
 } // namespace bv_funcs