Bug 46719 - UI: Show unused custom styles
Summary: UI: Show unused custom styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sidebar-Styles
  Show dependency treegraph
 
Reported: 2012-02-28 04:01 UTC by Jens Reimann
Modified: 2021-04-27 09:30 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Basic macro which has needed functionality (22.23 KB, application/vnd.oasis.opendocument.text)
2012-12-13 05:22 UTC, sasha.libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Reimann 2012-02-28 04:01:21 UTC
Provide a list showing the usage of styles in a document. At least show if the style is used or not and allow direct deletion (with prior multiple selection) from that list.

This would help cleaning up migrated word documents a lot.
Comment 1 sasha.libreoffice 2012-05-24 05:21:41 UTC
Thanks for new idea
Possible workaround: select all content of document, copy-paste it to new empty document.
Comment 2 Joel Madero 2012-12-11 19:59:07 UTC
Marking as NEW as it's a valid enhancement request. 

Leaving as Medium priority as it seems like it could be useful for quite a few people using styles. 

Thanks for the suggestion!
Comment 3 sasha.libreoffice 2012-12-13 05:22:36 UTC
Created attachment 71422 [details]
Basic macro which has needed functionality

I have written Basic Macro which shows all unused styles and allows deleting them.
Please, tell me if something is wrong or additional functionality needed.
Comment 4 Jorendc 2013-03-09 20:13:08 UTC Comment hidden (obsolete)
Comment 5 Jorendc 2013-04-28 21:32:40 UTC Comment hidden (obsolete)
Comment 6 bugquestcontri 2013-04-29 04:17:08 UTC
I would like to draw the attention to the AskLibO entry http://ask.libreoffice.org/en/question/2196/wish-purge-unused-styles/?answer=16767#post-id-16767

What is discussed there appears to me slightly different from this bug report but closely related and could possibly be tackled in one development work.
Comment 7 Kumāra 2014-05-19 08:07:31 UTC
I added "custom" to the summary for precision. Hope someone can add this enhancement.
Comment 8 Kumāra 2014-05-19 08:45:35 UTC
(In reply to comment #0)
> Provide a list showing the usage of styles in a document. At least show if
> the style is used or not and allow direct deletion (with prior multiple
> selection) from that list.
> 
> This would help cleaning up migrated word documents a lot.

If cleaning up is all that you want to do, you can add a macro as documented here: https://forum.openoffice.org/en/forum/viewtopic.php?f=21&t=42571

I've used it a few times with no problems.

Still, the enhancement request is valid.
Comment 9 Kumāra 2014-05-19 08:49:37 UTC
(In reply to comment #3)
> Created attachment 71422 [details]
> Basic macro which has needed functionality
> 
> I have written Basic Macro which shows all unused styles and allows deleting
> them.
> Please, tell me if something is wrong or additional functionality needed.

Don't know how to use it. How do I import this?