X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferview_funcs.h;h=4d5fb1267e6f291e476367fa230126e72b0298d3;hb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;hp=b847825df38b2625ae7cb5c825ec582917b99581;hpb=d533ee39957efe9ce61941944706275da9124fc3;p=lyx.git diff --git a/src/bufferview_funcs.h b/src/bufferview_funcs.h index b847825df3..4d5fb1267e 100644 --- a/src/bufferview_funcs.h +++ b/src/bufferview_funcs.h @@ -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