Bug 94500 - Type Master documents not listed in dialog when loading styles in the current document
Summary: Type Master documents not listed in dialog when loading styles in the current...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2015-09-25 04:37 UTC by Bastián Díaz
Modified: 2021-01-15 08:59 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bastián Díaz 2015-09-25 04:37:46 UTC
System:
Fedora 22 64 bti xfce
LibreOffice 5.0.1.2 81898c9f5c0d43f3473ba111d7b351050be20261

Steps to reply:
- Open new text document
- Select "Styles and Formatting" in the sidebar
- Select Load Styles | From File

Actual result:
In the dialog you can only select ODF (and template) files and OpenOffice.org 1.0 (and template) files.

Expected result:
In addition to ODF and OpenOffice.org 1.0 formats to load styles from master documents (and templates).

Cheers
Comment 1 Cor Nouws 2015-09-26 10:50:34 UTC
Hi Bastián,

For me it works if I simply type the file name in the box...
Could you please try that?

But i think we can agree that it would be better if Master documents were listed in the File types list?

Cheers - Cor
Comment 2 Bastián Díaz 2015-09-26 15:02:24 UTC
(In reply to Cor Nouws from comment #1)
> Hi Bastián,
> 
> For me it works if I simply type the file name in the box...
> Could you please try that?

It took me a while to find this.
It works if active native LibreOffice dialogs (open/save).

> 
> But i think we can agree that it would be better if Master documents were
> listed in the File types list?

I think that would help a lot.

Thanks for your time.
Comment 3 Cor Nouws 2015-09-26 15:21:37 UTC
thanks for your help too!
Comment 4 Robinson Tryon (qubit) 2015-12-13 11:20:54 UTC Comment hidden (obsolete)
Comment 5 sdc.blanco 2020-12-28 12:10:03 UTC
Reproduced in Version: 7.2.0.0.alpha0+ (x64)

NB.  "Master Templates" are shown in the Load Styles dialog box.  No problem if one wants to load styles from a master template.

The problem and the point of this "bug" is that when you want to load styles from a master template that is not shown in the Template Manager, then the file picker does not give "ODF Master Document Template (.otm)" as an option for "File Type"-- so you have to know the workaround (comment 1) to start typing the filename of the master document.

Additional Information:  Same problem arises with "Import Template" from Template Manager,  .otm is not included in the "File Types"

Adding UXEval to see if this can be listed as an EasyHack.
Comment 6 Heiko Tietze 2021-01-11 08:08:15 UTC
(In reply to sdc.blanco from comment #5)
> Adding UXEval to see if this can be listed as an EasyHack.

sw/source/uibase/app/docsh2.cxx #556

Alien formats were blocked for https://bz.apache.org/ooo/show_bug.cgi?id=117339 with https://github.com/LibreOffice/core/commit/38c9a3de2848de7285ddfb0eaa63817780ff6f5c

Not sure if removing the CXML exclusion is okay. Michael, is it?
Comment 7 Michael Stahl (allotropia) 2021-01-11 09:28:32 UTC
i dont see any reason to prevent master documents for Load Styles.

is the CXML check really the problem? because:

filter/source/config/fragments/filters/writerglobal8.xcu:        <prop oor:name="UserData"><value>CXML</value></prop>
filter/source/config/fragments/filters/writerglobal8_template.xcu:        <prop oor:name="UserData"><value>CXMLV</value></prop>
filter/source/config/fragments/filters/writerglobal8_writer.xcu:        <prop oor:name="UserData"><value>CXML</value></prop>
Comment 8 Heiko Tietze 2021-01-11 12:50:25 UTC
(In reply to Michael Stahl (allotropia) from comment #7)
> is the CXML check really the problem?

Without this I get some more formats in the filter, at least.