Bug 137094 - Group letter-related paragraph styles together
Summary: Group letter-related paragraph styles together
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyMedium, easyHack, skillDesign, topicDesign
Depends on:
Blocks: 69551
  Show dependency treegraph
 
Reported: 2020-09-28 11:33 UTC by andreas_k
Modified: 2020-09-30 03:57 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
left: Default Template from Template manager, right: New writer file (39.45 KB, image/png)
2020-09-28 11:35 UTC, andreas_k
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreas_k 2020-09-28 11:33:55 UTC
There are some Styles within LibO that will be used by LibO itself. For example the envelope function use the paragraph style >>Addressee<<.

I would recommend to define that the system used styles will get the value style:hidden="true" so they are not visible in the styles sidebar as long as they are not in use.

for example you can hopen a new writer file and Template Manager -> Default Template the style sidebars are different, cause Default Template has some styles selected as hidden by default.
Comment 1 andreas_k 2020-09-28 11:35:47 UTC
Created attachment 165914 [details]
left: Default Template from Template manager, right: New writer file
Comment 2 andreas_k 2020-09-28 11:36:56 UTC
maybe some code pointers:
grep for RES_POOLCOLL_JAKETADRESS in sw/
sw/source/core/doc/DocumentStylePoolManager.cxx:974
Comment 3 Heiko Tietze 2020-09-28 13:43:12 UTC
Addressee maybe, and I can imagine also Complimentray Close, Endnote, Footnote, Frame Contents, Horizontal line, Sender, Signature. But wouldn't do for headings, captions, and all other PS. OTOH, what do we gain from hiding a few styles?
Comment 4 V Stuart Foote 2020-09-28 13:57:51 UTC
Maybe hidden on the default 'Hierarchical' listing, but not ALWAYS hidden. 

Standard template provided styles, and custom styles, for current document still require  manipulation. E.g. I want to change the font and pitch of my envelope addressee.

If possible to isolate depending on the listbox type--sure, hide for Hierarchical but we still will have the 'All Styles' listing to consider.

If they can't be isolated for listbox handling then a clear => WF
Comment 5 andreas_k 2020-09-28 14:16:15 UTC
If an hidden style is in used, the style is visible. So no problem.

When use an envelope document, the styles are visible.
Comment 6 Roman Kuznetsov 2020-09-28 14:39:30 UTC
dupe of bug 69551?
Comment 7 Heiko Tietze 2020-09-29 07:22:55 UTC
(In reply to andreas_k from comment #5)
> When use an envelope document, the styles are visible.

Stuart's use case is to modify PS before using it, meaning you format the layout of the letter first and write afterwards. Your assumption of "internal styles" is different. And since we don't distinguish between hierarchical and list view I think Roman's suggestion is a good compromise.

*** This bug has been marked as a duplicate of bug 69551 ***
Comment 8 andreas_k 2020-09-29 07:50:16 UTC
As we now have the nice Style Inspector I found out that:

- Addressee
- Sender
have the same settings.

- Complimentary Close
- Signature
have the same settings.

My question is can we group at least stlyes with the same settings? So there want be any styles hidden, but the tree list is a bit smaler? 

Or we make an Envelope group where this 4 styles are grouped by. At Heading, Index, Caption, ... we do the same we group styles.
Comment 9 Heiko Tietze 2020-09-29 08:06:59 UTC
(In reply to andreas_k from comment #8)
> My question is can we group at least stlyes with the same settings?

It has been discussed in bug 121369 and I don't find a comment against a style "Letter" holding these four styles. Samuel, concerns regarding Signature under Letter?

For code pointers see the solution in the mentioned ticket.