X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.h;h=4d5fb1267e6f291e476367fa230126e72b0298d3;hb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;hp=e829c53dcd5cacaf51cacefb85f62d31fbafb95a;hpb=4a842aeb20a0f0b9e34baff4bc0fac820845c453;p=lyx.git diff --git a/src/bufferview_funcs.h b/src/bufferview_funcs.h index e829c53dcd..4d5fb1267e 100644 --- a/src/bufferview_funcs.h +++ b/src/bufferview_funcs.h @@ -20,6 +20,10 @@ class BufferView; class LyXFont; class LyXText; +namespace bv_funcs { + +/// +void resizeInsets(BufferView * bv); /** Set \param data using \param font and \param toggle. * If successful, returns true. */ @@ -40,6 +44,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 +70,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 +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