Bug 156456 - Need ability to delete unused styles
Summary: Need ability to delete unused styles
Status: RESOLVED DUPLICATE of bug 147779
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-24 20:43 UTC by Eyal Rozenberg
Modified: 2023-07-24 22:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-07-24 20:43:25 UTC
Sometimes, a document has a large number of unused styles (typically - the result of importing documents from another format, or of deleting a lot of contents from a document). While one can filter these it would also be nice to simply be able to just delete them - leaving only the styles in use and the inherent/structural styles.
Comment 1 Eyal Rozenberg 2023-07-24 20:44:28 UTC
I should mention I'd like to be able to do that for different categories of styles separately, e.g. unused character styles, unused list styles etc.; and I'm thinking this should be accessible somehow from the style pane of the sidebar, although that last part is not absolutely necessary I suppose.
Comment 2 Mike Kaganski 2023-07-24 21:17:24 UTC
Would this be a reasonable solution - create a "Unused Styles" filter, and this way, allow to use its multi-selection to delete them all or in parts?
Comment 3 Eyal Rozenberg 2023-07-24 21:38:29 UTC
(In reply to Mike Kaganski from comment #2)
> Would this be a reasonable solution - create a "Unused Styles" filter, and
> this way, allow to use its multi-selection to delete them all or in parts?

Yeah, that would work... I'm not entirely sure "Unused styles" would be otherwise useful, but I would be quite ok with it. And it would add no new widgets, which is good.
Comment 4 Stéphane Guillou (stragu) 2023-07-24 22:08:08 UTC
Eyal, you suggested that in bug 147779 already, marking as duplicate.
Thanks!

*** This bug has been marked as a duplicate of bug 147779 ***