https://bugs.freedesktop.org/show_bug.cgi?id=63700

          Priority: medium
            Bug ID: 63700
          Assignee: [email protected]
           Summary: : Master Document, Template and Field interaction
                    issue
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.0.2.2 release
         Component: Writer
           Product: LibreOffice

Problem description: When a Master Document with embedded .odt files is opened,
it asks whether links should be updated. Answering yes causes references to the
level-1 heandings that occur in page headers and footers to be replaced by
"Error: Reference source not found". Embedded files have a "Chapter Start" page
style with a next page style of "Chapter Page" (which in turn have a next page
style of "Chapter Page".

This essentially follows the documented method to handle restarting page
numbers for sections. Some embedded files have more than one level-1 heading,
but they are carefully started on a new page (manually inserted page break)
with a "Chapter Start" page style.

It is probably irrelevant, but the OS distribution is "Linux Mint" (but that
was not a choice — Ubuntu was specified as Mint is based on Ubuntu).

Steps to reproduce:
1. Set up Template file and save as .ott file (to facilitate making changes to
it). Also save as template (following the documentation). 
2. Create a Master Document (.odm) file using the saved template.
3. Create a .odt document (copy the template file and "load" the styles from
the template to make sure they are the same). Duplicate it a number of times so
there are multiple files to embed in the Master Document.
4. Make changes to those .odt files.
5. Add them to the Master Document (follow the documentation and use the
Navigator).
6. In each of the .odt files, use the Insert Fields to insert a "Reference" in
the page header and a "Number" in the page footer. Do this for the first page
(page style = "Chapter Start" and for the following page (page style = "Chapter
Page"). As expected the headers and footers of all the chained pages now appear
the same.
7. Save.
8. Open the Master Document and answer the question about linked files "Yes".

Current behavior: The fields in the header and footer of pages having a page
style of "Chapter Start" display correctly. Those of pages having a page style
of "Chapter Page" are replaced by the "Error: Reference source not found"
message.

Expected behavior: Pages following one with a style of "Chapter Start" have the
same field values as it does (until a page style other than "Chapter Page" is
encountered, of course).


Operating System: Ubuntu
Version: 4.0.2.2 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to