]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / bufferview_funcs.h
index b847825df38b2625ae7cb5c825ec582917b99581..8be453589c0f72cedd0d5e5d0b16427995f90ad6 100644 (file)
@@ -48,8 +48,12 @@ enum DEPTH_CHANGE {
        DEC_DEPTH
 };
 
-/// change the nesting depth of the selection
-extern void changeDepth(BufferView *, LyXText *, DEPTH_CHANGE);
+/**
+ * Increase or decrease the nesting depth of the selected paragraph(s)
+ * if test_only, don't change any depths. Returns whether something
+ * (would have) changed
+ */
+extern bool changeDepth(BufferView *, LyXText *, DEPTH_CHANGE, bool test_only);
 
 ///
 extern void emph(BufferView *);
@@ -80,7 +84,8 @@ extern string const currentState(BufferView *);
 ///
 extern void toggleAndShow(BufferView *, LyXFont const &,
                          bool toggleall = true);
-
+/// replace selection with insertion
+extern void replaceSelection(LyXText * lt);
 }; // namespace bv_funcs
 
 #endif