Download it now!
Bug 126662 - Disable the delete button at the autoformat dialog for predefined Table Styles
Summary: Disable the delete button at the autoformat dialog for predefined Table Styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Writer-Tables-Style
  Show dependency treegraph
Reported: 2019-08-01 14:18 UTC by Harald Koester
Modified: 2019-08-16 13:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2019-08-01 14:18:34 UTC
In order to reproduce the bug:

[1] Open new text document and insert a simple table.
[2] Display table styles in sidebar.
[3] Right click a predefined table style. A context menu only with the item “Hide” is displayed. Here the style can't be deleted.
[4] Click into table.
[5] Open dialogue AutoFormat: Table > AutoFormat Styles…
[6] Select a predefined table style e.g. Box List Blue.
[7] Click Delete. Then OK. The deleted style is no longer listed in AutoFormat dialogue. Expected: Delete button should be greyed and a deletion of a predefined style should not be possible.
[8] Close dialogue with Close. In the sidebar the deleted style is still displayed. Expected: No display of deleted style. (Now you can even assign the deleted style to a table. Strange!)
[9] Close the document without saving.
[10] Open another new text document and display the table styles in the sidebar. Now the deleted style is no longer listed.

There is no simple way to get the deleted table style back. I only know the possibility to delete the user profile with all its disadvantages.

The bug exists similarly in all versions. Hence inherited from OOo.
Comment 1 Roman Kuznetsov 2019-08-02 06:28:49 UTC
confirm in

Version: (x86)
Build ID: ca6df519a78e5bfc96030c916f242b86306194e5
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded
Comment 2 Heiko Tietze 2019-08-02 08:13:57 UTC
The current implementation does not allow to remove hard coded TS. So what we have to do, is to disable the Delete button in this case. OTOH, the Autoformat dialog will be removed once the new TS edit dialog is implemented. So close as WF or hope for dev effort?
Comment 3 Heiko Tietze 2019-08-16 13:20:38 UTC
When you create a new TS per sidebar it's shown there but not in the autoformat dialog (the TS is stored in the document only and disappears when closed). Doing this per dialog makes the style permanent.
Comment 4 Heiko Tietze 2019-08-16 13:22:21 UTC
Code pointer: (sc has extra code and should be handled in the same way!).