Bug 136741 - Default page style rotation changes to landscape after DOCX export
Summary: Default page style rotation changes to landscape after DOCX export
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2020-09-14 08:07 UTC by Telesto
Modified: 2020-12-10 18:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (8.10 KB, application/vnd.oasis.opendocument.text)
2020-09-14 08:08 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-09-14 08:07:56 UTC
Description:
Default page style rotation changes to landscape after DOCX export

Steps to Reproduce:
1. Open the attached file
2. Format -> Page Style for the the first page. Take a look at Text flow settings
3. Close the dialog
4. Save as docx
5. File reload
6. Format -> Page Style

Actual Results:
Default page style is set as first page style; the orientation of the page style has changed

Expected Results:
This slightly confusing. 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: ed4f610f4a3de12016f8308a17b6ad4f86e9d67a
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-09-14 08:08:11 UTC
Created attachment 165476 [details]
Example file
Comment 2 Telesto 2020-09-14 08:09:49 UTC
@Justin
Can the first page style not simply be a 'converted' style. Instead of 'converting' they default page style. As happens with second page break
Comment 3 Justin L 2020-09-14 08:51:35 UTC
It could. But then no DOCX document would ever use the default page style format, which doesn't seem like a good idea either.

DOCX has no concept of page styles, or page style names. So on import the initial page setup is considered to be the default one.  (initial being the first non-title, or non-first style).

I don't see any value in complicating the import by trying to identify certain "traits" that should not be considered appropriate for a default-page-style. In most cases, the main style is used right from the beginning, and thus in the typical document there is no conflict or confusion.

(In reply to Telesto from comment #2)
> @Justin
> Can the first page style not simply be a 'converted' style. Instead of
> 'converting' they default page style. As happens with second page break
Comment 4 Telesto 2020-09-14 09:13:27 UTC
(In reply to Justin L from comment #3)
> It could. But then no DOCX document would ever use the default page style
> format, which doesn't seem like a good idea either.
> 
> DOCX has no concept of page styles, or page style names. So on import the
> initial page setup is considered to be the default one.  (initial being the
> first non-title, or non-first style).
> 
> I don't see any value in complicating the import by trying to identify
> certain "traits" that should not be considered appropriate for a
> default-page-style. In most cases, the main style is used right from the
> beginning, and thus in the typical document there is no conflict or
> confusion.
> 
> (In reply to Telesto from comment #2)
> > @Justin
> > Can the first page style not simply be a 'converted' style. Instead of
> > 'converting' they default page style. As happens with second page break

In this case they whole Default Style is flipped around. The Next Page has Default style, but is called Converted.. 

But yes, of course, likely most document start with 'Default'. Not sure what Master Style stuff does. And if you supposed to change the default style, or should always apply a different style (in some models, you could lock the default style as unchangeable/ similar what I more or less proposed with landscape style which can be actually set to portrait; being counterintuitive too). But that's already workflow topic.

Based on ODT perspective, I would make more sense to call the first stye 'converted'. Instead of having a Default Style in ODT not matching Default style in DOCX, simply because DOCX export..

Of course not sure how this would be received by the MSO users. Different topic is of course the 'evil' style names. Being called converted (and the lovely idea to 'generate' a new style pretty often (even if you used the same style). But that are all other matters, discussed before.. and also complicated :-(

Lets add Heiko, not assuming he has the magic answer, except sticking with the current implementation..
Comment 5 Justin L 2020-09-14 09:42:20 UTC
> Based on ODT perspective, I would make more sense to call the first stye
> 'converted'. Instead of having a Default Style in ODT not matching Default
> style in DOCX, simply because DOCX export..
That is a somewhat false conclusion. A user is capable of modifying the Default Page Style in ODT - so it is possible to have an ODT landscape default page, just as what you see in your DOCX example. Just think of the DOCX user as having modified the default page style, and then there is no problem here at all.

 
> Of course not sure how this would be received by the MSO users.
Like I said, there are no names for MSO users, so nothing here will have any impact on them. There is only first, second, third section for MSO users.
Comment 6 Heiko Tietze 2020-09-14 10:41:27 UTC
(In reply to Telesto from comment #4)
> Lets add Heiko, not assuming he has the magic answer, except sticking with
> the current implementation..

Why not stick to the current implementation? :-)

Seriously, I have no idea about these back-end internals. Neither run MSO and can test it. And I don't see how UX can help here.
Comment 7 Justin L 2020-12-10 18:31:36 UTC
Never using "Default Page Style" in DOCX would be considered even a larger bug - and that is the only sane alternative. Based on that and comment 3, NOTABUG.
Comment 8 Justin L 2020-12-10 18:37:34 UTC
P.S. If you DID set Converted1 for the first page, you would re-introduce the kind of problems just fixed in bug 107555.