]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.h
Move #includes out of header files.
[lyx.git] / src / bufferview_funcs.h
index e829c53dcd5cacaf51cacefb85f62d31fbafb95a..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
@@ -20,6 +20,8 @@ class BufferView;
 class LyXFont;
 class LyXText;
 
+namespace bv_funcs {
+
 /** Set \param data using \param font and \param toggle.
  *  If successful, returns true.
  */
@@ -40,6 +42,18 @@ void update_and_apply_freefont(BufferView * bv, string const & data);
  */
 void apply_freefont(BufferView * bv);
 
+/// what type of depth change to make
+enum DEPTH_CHANGE {
+       INC_DEPTH,
+       DEC_DEPTH
+};
+
+/**
+ * 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 *);
@@ -54,8 +68,6 @@ extern void number(BufferView *);
 ///
 extern void tex(BufferView *);
 ///
-extern void changeDepth(BufferView *, LyXText *, int);
-///
 extern void code(BufferView *);
 ///
 extern void sans(BufferView *);
@@ -72,4 +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