Bug 72728

Summary: EDITING: Page number field with offset
Product: LibreOffice Reporter: Никита <evolve32>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: CLOSED NOTABUG    
Severity: normal CC: rb.henschel
Priority: medium    
Version: 4.1.2.3 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: There are exported to pdf examples in archive.

Description Никита 2013-12-15 10:23:55 UTC
Created attachment 90797 [details]
There are exported to pdf examples in archive.

Problem description: When using offset for page number field, pages starts counting normally but numerating ends at 'real number of pages', contrary to 'real number of pages + offset'

Steps to reproduce(working with footer):
1. Insert -> Fields -> Page Number
2. Right mouse button on inserted field -> Fields... -> Offset=4

Expected behavior: Suppose, pages must be enumerated from 'offset' to 'num of pages + offset'.

Steps to reproduce correct example (see attach):
1. Insert -> Fields -> Page Number. It is for footer.
2. Right mouse button on text area -> Paragraph... -> Text Flow -> Insert is checked, With Page style is checked, Page Number is set to 'some page number' (e.g. 5).
Operating System: Linux (Other)
Version: 4.1.2.3 release
Comment 1 Regina Henschel 2013-12-15 17:36:16 UTC
It is no bug, but the desired behavior as defined in the specification.

<quote>
19.845.2 <text:page-number>
The text:page-adjust attribute specifies an adjustment of the value of a page number field, in order to display of page numbers of following or preceding pages. The specified value is added to the current page number. If a page with the resulting page number does not exist, no number is displayed.
</quote>

http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1419094_253892949