Bug: All custom styles are missing from the style selection widget

Do you want to: Report a bug
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.

When opening a document with custom style definitions, or creating one from a template, the custom styles are not visible in the style selection widget. However, OO does read the styles, because the styles can be updated from the context menu - just not assigned to new document elements.

Steps to reproduce:

  1. Download acsPageWide-MSW2010.dotx from here:

https://pubs.acs.org/page/jacsat/submission/jacsat_templates.html

  1. Open the file in OO. Observe that the styles widget only displays the built-in generic styles:

  1. The correct styles show up in the context menus:

(can’t attach the second screenshot due to posting limitations)

Expected behavior: all custom styles are available in the widget.

This bug might be the same as this: Bug: not all style templates are visible in home menu
However, my OS/OO versions are different

OS version: Fedora 42
App version: 9.0.0 (flathub)
Downloaded from: Flathub using Fedora’s GNOME software manager
Additional information: This happens with all ACS templates. I do have all the custom fonts installed as system fonts.

I did more investigation, and it appears that the styles may not be showing because they are not “quick format” styles.

If I open the same .dotx template in MS Word, the styles also do not appear in the style gallery. However, they become visible as soon as the widget is popped out. Unfortunately, OO does not appear to have similar functionality, and simply does not show the styles.

The same issue appears to have been submitted for OO Document Server about 5 years ago:

Would it be possible for OO to simply ignore the <w:qFormat/> tag? Its very existence does not make much sense. If there are styles in the document/template, surely I would want to use them.

Hello @tersono

Thank you for the investigation. I will forward your query to the devteam.

One more update on this with a workaround.

The template can be opened with MS Word, and each style can be modified by checking the “Add to the Styles gallery” checkbox (see below).

Of course, this workaround is not perfect, because not everyone would have access to MS Word, and modifying a template with multiple styles one by one quickly gets tedious.

Technically, it appears that OO’s model reproduces the MS Word behavior faithfully. However, there is no UI option to reveal the “hidden” styles, which can be problematic for some templates. Thus, I would still classify this behavior as a bug.

Hello @tersono
Thank you for the provided workaround solution, I hope it will be useful for other users, while we’re working on the situation.