Bug 144947 - IMPORT DOCX: Each page has its own page style after save as docx and reload
Summary: IMPORT DOCX: Each page has its own page style after save as docx and reload
Status: RESOLVED DUPLICATE of bug 145998
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Page DOCX-Styles DOCX-Page
  Show dependency treegraph
 
Reported: 2021-10-05 15:06 UTC by Telesto
Modified: 2022-06-24 19:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (8.15 KB, application/vnd.oasis.opendocument.text)
2021-10-05 15:06 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-10-05 15:06:13 UTC
Description:
IMPORT DOCX: don't make each page style unique but try to group identical styles  

Steps to Reproduce:
1. Open the attached file
2. Put cursor on the last page
3. Format -> Paragraph -> Text Flow -> Notice Page style is set to Landscape
4. Cancel the dialog
5. Save as DOCX
6. File reload
7. Put cursor on the last page
8. Format -> Paragraph -> Text Flow -> Notice Page style is set to Converted5




Actual Results:
Converted5

Expected Results:
Not 5 unique page styles; try to match the same style within the document. Having multiple page breaks with different styles and you end up with tremendous amount of page styles & it breaks the style systematic too.

And maybe some more informative naming; generated/ Reconstructed page style. Converted from what?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: b60b6bfaafa1315e07108dba50f016975b619c59
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-10-05 15:06:30 UTC
Created attachment 175546 [details]
Example file
Comment 2 Dieter 2021-10-27 15:09:55 UTC
I confirm it with

Version: 7.2.2.2 (x64) / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

But I would describe the problem with the following steps:
1. Open the attached file
2. In Sidebar choose Syles => Page Styles and select "Applied Styles" => document has two different Page Styles
3. Save as DOCX
4. File reload
5. Lokk at applied Page Styles in sidebar

Actual result
Documen has 6 different page styles (each page has it's own style)

Expected result
Document has 2 different page styles
Comment 3 Telesto 2021-10-27 18:01:13 UTC
(In reply to Dieter from comment #2)
> Expected result
> Document has 2 different page styles

Well I presented a different way because I expect this going into the direction of page style handling of Word being different from Writer model. So those styles maybe really to be handled properly in Word. 

However LibreOffice literally importing what it's exporting; which kind of ruins the whole user experience regarding to style

So I would expect Writer *importer* to compare styles and merging those if exactly equal. This still 'bad'. You might have used different style names with exact same settings in the ODT. Which would end up in a single fused style. However likely the next best thing being possible

It's probably better compared to having a unique style for each and everything, with unique names suggesting those a different. Aside from spamming the page style list with lots of styles..

I don't expect something can be done at the exporter code, but well this needs evaluation of those who do know more ;-)
Comment 4 Justin L 2021-10-27 18:17:38 UTC
A completely pointless bug report.
Comment 5 Telesto 2021-10-27 18:57:25 UTC
(In reply to Justin L from comment #4)
> A completely pointless bug report.

Less is more, but this really minimalistic answer. Call me naïve, but I don't grasp where pointlessness points too 
* This being uncommon
* This practically not being a problem
* There is nothing which can be done

Ever tried to change page style in a document where everything called converted? and having a multitude of page styles..
Comment 6 Justin L 2022-06-24 19:02:20 UTC

*** This bug has been marked as a duplicate of bug 145998 ***