Bug 91253 - No "Keep with next paragraph" for customs toolbars
Summary: No "Keep with next paragraph" for customs toolbars
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Customize-Dialog-Toolbars
  Show dependency treegraph
 
Reported: 2015-05-13 08:23 UTC by chbok
Modified: 2023-05-08 19:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
KeepTogether.odt (10.49 KB, application/vnd.oasis.opendocument.text)
2015-05-24 09:10 UTC, pierre-yves samyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chbok 2015-05-13 08:23:12 UTC
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.
Comment 1 pierre-yves samyn 2015-05-24 09:09:49 UTC
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
Comment 2 pierre-yves samyn 2015-05-24 09:10:16 UTC
Created attachment 115958 [details]
KeepTogether.odt
Comment 3 chbok 2015-05-25 17:15:02 UTC
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 ":".
Comment 4 pierre-yves samyn 2015-05-26 07:00:13 UTC
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
Comment 5 chbok 2020-08-06 11:44:38 UTC
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).