[Libreoffice-bugs] [Bug 118702] New: FILESAVE DOCX Next Style property for page styles lost

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 11 15:53:08 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118702

            Bug ID: 118702
           Summary: FILESAVE DOCX Next Style property for page styles lost
           Product: LibreOffice
           Version: 6.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:docx
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: kelemeng at ubuntu.com

Created attachment 143473
  --> https://bugs.documentfoundation.org/attachment.cgi?id=143473&action=edit
The original document in ODF format.

LibreOffice Writer has page styles, Microsoft Word doesn't. This means that
every time a document with multiple page styles is saved as DOCX and reopened,
page styles have to be converted back and forth.

This works well when the page styles are separated with manual breaks with
directly set next page styles, but it doesn't if the next page style is applied
via the Next style property from the page style settings and pages are
separated with regular page breaks. I think that in this case regular page
breaks should be converted to page breaks with style changes to preserve the
original layout as much as possible.

Interestingly, if the page has a next style property, and there are no page
breaks set at all between pages (so when the text flows freely from one to the
next page) LibreOffice adds page breaks with style changes automatically.


Steps to reproduce:

1.      Create a new document in LibreOffice Writer.
2.      Open the “Style and Formatting” sidebar by pressing F11, and select the
“Page Styles” view.
3.      Create a new page style: Name it as you like, set the Next Style to
“Default style” and set the page orientation to Landscape.
4.      Apply the newly created page style and add some random text.
5.      Press Ctrl+Enter to insert a page break. The next page should be in
portrait, if everything was done right. Add some more random text to this page.
6.      Save the document as DOCX and reload it.

Actual results:
Both the first and second page are in landscape.

Expected results:
Only the first page should be in landscape, the second page should be in
portrait.

LibreOffice details:
Version: 6.2.0.0.alpha0+
Build ID: bb1d5780226bb1b9156580972eea9aa849178742
CPU threads: 1; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86 at 42, Branch:master, Time: 2018-07-03_05:56:48
Locale: hu-HU (hu_HU); Calc: group threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180711/919c5ab8/attachment.html>


More information about the Libreoffice-bugs mailing list