It's no possible to add an icon in a toolbars, there is no entry for that when trying to customize a toolbar. A toogle button for formatting "Keep with next paragraph" will be a fine enhancement.
Hi What is possible is to record two macros (Tools> Macros> Record Macro). Before, you need to enable: Tools> Options> LibreOffice> Advanced> Enable macro recording. You can then launch these macros via a toolbar as in the attached example. The document includes a "KeepTogether" toolbar. Note: you need to allow the execution of macros: Tools> Options> LibreOffice> Security> Macro security. "Medium" is an option that meets most needs. Does that answer your question? I put the status to NEEDINFO. Thank you to go back to UNCONFIRMED with your answer. Regards Pierre-Yves
Created attachment 115958 [details] KeepTogether.odt
Hello pierre-yves, I know i could use a macro for activate/desactivate this formatage. I imagined rather a command with a toggle button, that detect if a paragraph have or not the keeptogether's format. When customize toolbars, they're so many other formats that aren't daily useful (hiragana, invertir). When writing a long document, i consider the keepTogether format for a paragraph is useful, e.g before an enumeration introduced by a ":".
Hi (In reply to chbok from comment #3) > I imagined rather a command with a toggle button, that detect if a paragraph > have or not the keeptogether's format. Ok so I set status to New. Thank you for reporting. Regards Pierre-Yves
This bug is still not fixed in version 7.0.0.3 (x64 w10). In addition, some commands refer to '.uno: ###', for example "Increase" the paragraph refers to the command '.uno: ParaspaceIncrease'. The wiki page https://wiki.documentfoundation.org/Development/DispatchCommands lists all the uno commands, and the one for my bug is there: '.uno: ParaKeepTogether'. So I think that the command button could also be added (probably others too).