]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.h
Move #includes out of header files.
[lyx.git] / src / bufferview_funcs.h
index b847825df38b2625ae7cb5c825ec582917b99581..9e67bf69f156a59f669b3af4836c1376c0952332 100644 (file)
@@ -4,11 +4,11 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef BUFFERVIEW_FUNCS_H
@@ -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