]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.h
rename Inset to InsetOld
[lyx.git] / src / bufferview_funcs.h
index b847825df38b2625ae7cb5c825ec582917b99581..4d5fb1267e6f291e476367fa230126e72b0298d3 100644 (file)
@@ -22,6 +22,8 @@ class LyXText;
 
 namespace bv_funcs {
 
+///
+void resizeInsets(BufferView * bv);
 /** Set \param data using \param font and \param toggle.
  *  If successful, returns true.
  */
@@ -48,8 +50,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 +86,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