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

            Bug ID: 108048
           Summary: Change numbering pages with new style not working when
                    set from within the macro
           Product: LibreOffice
           Version: 5.3.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

My document have some sections that must start on odd pages with new page
numbering.
It is than need to insert page break with new page style staring on the right
or left page and change page numbering to "1".
You can do this from menu: menu>insert>manual page break, choose new pagestyle
and tick the box to change page number to "1".
BUT
it is impossible to get the same result when executing above steps in recorded
macro because page numbering is continued despite setting PageNumber value.

Below is the code "tools>macro>record>"


dim args5(2) as new com.sun.star.beans.PropertyValue
args5(0).Name = "Kind"
args5(0).Value = 3
args5(1).Name = "TemplateName"
args5(1).Value = "Left Page"
args5(2).Name = "PageNumber"
args5(2).Value = 1 // THIS VALUE WILL NOT BE SET!
dispatcher.executeDispatch(document, ".uno:InsertBreak", "", 0, args5())

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

Reply via email to