Bug 160402 - FILEOPEN DOCX Recognize localized paragraph style name used in StyleRef field
Summary: FILEOPEN DOCX Recognize localized paragraph style name used in StyleRef field
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2024-03-27 22:22 UTC by Gabor Kelemen (allotropia)
Modified: 2024-04-14 06:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2013 (18.78 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-27 22:22 UTC, Gabor Kelemen (allotropia)
Details
The example file in a German Word and English Writer (180.59 KB, image/png)
2024-03-27 22:24 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-03-27 22:22:49 UTC
Created attachment 193358 [details]
Example file from Word 2013

Attached example document was made in a German language Word 13.
It contains some StyleRef fields in the headers, which are set to use localized paragraph style names.
This works in Writer if the UI language is German, but not if it is anything else.
This behavior matches that of Word, but it would be really nice to support these style names if the files are opened in another locale.
This would be similar to what was implemented in bug 153083 for Table of Figures.

1. Open attached document
-> If the UI locale is German, all page headers show correct StyleRef field result
-> If the UI locale is not German, you get "Error: Reference source not found" messages.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0020fc1167b3760d0631001689a44427b72b816e
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default
Comment 1 Gabor Kelemen (allotropia) 2024-03-27 22:24:11 UTC
Created attachment 193359 [details]
The example file in a German Word and English Writer
Comment 2 Stéphane Guillou (stragu) 2024-04-12 14:43:12 UTC
Reproduced in:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d5dcc9de8ebce5d14be89ddeb6606ef0aeebf7a9
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

In the Edit Fields dialog, the field's type comes up as "Überschrift 1".