Bug 126536 - LibreOffice WRITER: Proposal to operate on several Styles simultaneously
Summary: LibreOffice WRITER: Proposal to operate on several Styles simultaneously
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2019-07-25 09:57 UTC by Adalbert Hanßen
Modified: 2019-07-31 07:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
first picture, severla styles are selected (42.82 KB, image/png)
2019-07-25 10:02 UTC, Adalbert Hanßen
Details
second picture, a sequence of styles is selected (40.71 KB, image/png)
2019-07-25 10:03 UTC, Adalbert Hanßen
Details
third picture: after right-clicking on the selection it only operates on one style. (46.10 KB, image/png)
2019-07-25 10:03 UTC, Adalbert Hanßen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adalbert Hanßen 2019-07-25 09:57:05 UTC
Description:
This bug report pertains to LibreOfficeDev
Version: 6.4.0.0.alpha0+
Build ID: 4248d759744f83a68d334a8b347124719a2886a8
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-07-09_15:00:58
Locale: de-DE (de_DE.UTF-8); UI-Language: en-US
Calc: threaded
and probably also to all other versions of LibreOffice.

I have a document which originated from a scanner and was processed with AbbyyFineReader 9 under Windows 10 and exported from there as a Word document (unfortunately AFR does not provide export as *.odt). The OCR process could not retrieve the systematics of formatting by assigning a proper style sheet to the document which takes into account that a proper document only uses a few styles for paragraphs but uses them over and over again. Instead AFR produced lots of styles called Style1, Style2, …

Therefore I came across the topic of working on the Styles of a document on a whole because I wanted to unify those paragraph styles. My first idea was to get rid of those many Styles named in the mentioned fashion or at east to assign common spacings above or below to them. That was not possible:

One can mark more than one style in the F11 Styles menu, e.g. like in my first picture.

or one can select a sequence of styles like this one in my second picture.

My third picture shows, what happens, after I have right-clicked on the selection from the second picture (I probably clicked on the line “Style 11”):

So it is impossible to perform actions on several styles at once, e.g. it is impossible to change their alignment, their organization, inheritance, styles, text flow and orphan control etc.

Therefore I propose to add actions operating on a selected set of styles, e.g.

1. delete a marked set of styles (thus merging the styles with the parent style according to their organization),

2 modify the font of all of them (possibly without changing the other font parameters as size, slant, boldness, italics etc as long as those remain untouched in this operation),

3. modify the indentation, spacing, text flow and other properties of styles (one often wants to do that on groups of styles e.g. for headlines of different orders)

4. merge all marked styles into an existing target style (the properties of the target style apply to all paragraphs which were assigned to one of the styles from the marked list before). The target style should be selectable.

Steps to Reproduce:
1. Take a document which has many styles assigned to similar formatting, e.g. one from on OCR process.
2. Mark several of those styles as shown in picture 1 or 2
3. Try to delete them all at once

Actual Results:
3 changes the selection to a single style and proposes Modify or Delete. 

Expected Results:
I expect being able to delete all those marked styles or to modify them all at once. Options which are unchanged with respect to the beginning of the dialogue might be shown in grey, changing them to what the user wants and letting them appear in black. Until "ok" they should all be applied at once to those styles.


Reproducible: Always


User Profile Reset: No



Additional Info:
I also proposed a new function to merge several styles into one, which can be selected from the existing ones.
Comment 1 Adalbert Hanßen 2019-07-25 10:02:01 UTC
Created attachment 152975 [details]
first picture, severla styles are selected
Comment 2 Adalbert Hanßen 2019-07-25 10:03:00 UTC
Created attachment 152976 [details]
second picture, a sequence of styles is selected
Comment 3 Adalbert Hanßen 2019-07-25 10:03:59 UTC
Created attachment 152977 [details]
third picture: after right-clicking on the selection it only operates on one style.
Comment 4 Heiko Tietze 2019-07-30 11:53:49 UTC
Paragraph styles are organized in hierarchies. If you, for example, change the font of Defaul from Serif to Sans all children will use this property. So the right solution is to put everything underneath a new item and change this. Works perfectly for me and no multiselection is needed.
Comment 5 Adalbert Hanßen 2019-07-30 17:35:18 UTC
(In reply to Heiko Tietze from comment #4)
> ...
> So the right solution is to put everything underneath a new item and change
> this. Works perfectly for me and no multiselection is needed.

How do I put several styles underneath one after I have created it? Of course, modifying each one separately in the section Organizer and telling to which one it is subordinate, that's an awkward solution. And how can one easily get rid off a whole bunch of unneeded styles?

By the way: the multiselection it already there. My first picture shows several styles selected at once. The only thing that is missing is the function to operate on the selected bunch of styles, e.g. delete them (to get rid of such a plethora as the one introduced through the OCR process).
Comment 6 Heiko Tietze 2019-07-31 07:37:22 UTC
(In reply to Adalbert Hanßen from comment #5)
> How do I put several styles underneath one after I have created it?

You can use drag and drop in the Styles deck of the sidebar or use the property "Inherit from" at the Organizer tab of the paragraph properties dialog. 

There is no multi-selection for me with Gtk3, so it has do be done one after the other. And about deletion that's possible for user-defined styles per Del key or context menu.
Ultimately I would say proper styling of documents is key rather than adding more functions. Keep it clean and simple.