First time here? Check out the FAQ!
answered 2013-04-28 23:30:13 +0200jorendc
Currently there is no build in feature to delete unused styles at once. I was investigating to solve fdo#46719 (to add an "unused styles" filter), but I think I need to unassign me from this task due my lack of development skills.
So current status: not yet implemented.
Reading @CyanCG's excellent answer gave me the idea to ask for a feature enahcnement that LibO should have filters
show only used styles
show only unused custom styles
By doing so the styles which cannot be deleted (= not customized styles) and are not used can be hidden but made visible when needed.
When importing Word files, I observe that always a long list of unused styles appear in the styles window, but only very little of these styles are used. All imported styles are customized styles, thus can be deleted However to identify which of them are used or unused is a time consuming task. Thus, being able to see only unused custom styles (they include the unused imported styles) and have the functionality to delete the unused custom styles
one by one
or as selected groups
or all at once
would be a very good feature. (More or less like deleting files and folders in windows)
Before I post an enhancement request, I would like to see what opinions others have and look forward to answers.
Careful here. I also wish one could easily delete all unused custom styles at once in a document. However, here is an important distinction to make if this feature is implemented:
Allowing one to delete unused custom styles is generally benign and beneficial, but in many cases a lack of applied styles should ring a bell: it often means that the template on which the document was based was not correctly used (i.e. the stylistic resources were underused) and in such cases structure always suffers. The conclusion is that the application should, before purging all unused custom styles, remind the user that they should apply the following:
As for the unused default styles, the application should never allow one to delete them, because they all have a purpose and are all potentially important. For example, a subset of those default styles are used to preserve the structure of HTML documents. Furthermore, some OpenDocument Text elements, such as ruby annotations, can only be created by applying a ruby character style, even though ruby annotations are not character styles per se. Finally, the default styles are the backbone of LibreOffice’s (and OpenDocument’s) style inheritance model, a powerful system which has no direct equivalent in Microsoft Office (this is one big advantage that ODF and LibreOffice have over MS Office) In fact, this inheritance model as specified in ODF and as implemented in LibreOffice is very similar to CSS’s, and that is A Good Thing™.
In conclusion, styles in a document are always potentially a precious resource and should not be seen as pollution, even though they take up space in the style list.
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-04-26 14:06:56 +0200
Seen: 150 times
Last updated: Apr 29