• Adam Co's avatar
    fdo#44689: fix for specific case of page restart-value 0 · c2ccd20c
    Adam Co yazdı
    This bug fix is for roundtripping a DOCX that has
    a specific 'start value' for the page numbers.
    In most cases LO imports it ok.
    However - until now - Word allowed you to start page number
    from 0, while LO only allowed starting page numbers from 1.
    This was because the 'start value' was stored in an 'unsigned int',
    and the value '0' was used to mark 'there is no start value'.
    This patch changes the way the 'start value' is stored
    from 'unsigned int' to 'optional unsigned int'.
    This way - if there is no value applied - the variable will hold NULL.
    However - if a value is set - it can be 0 or more.
    This meant also tweaking all the places that used to get this value,
    so that now they handle an 'optional uint', instead of a 'uint'.
    
    Conflicts:
    	sw/source/ui/inc/break.hxx
    	sw/source/ui/inc/wrtsh.hxx
    	sw/source/ui/shells/textsh1.cxx
    	sw/source/ui/utlui/uitool.cxx
    	sw/source/ui/wrtsh/wrtsh1.cxx
    
    Change-Id: I6ad9d90e03b42c58eed2271477df43c20ad6f20a
    Reviewed-on: https://gerrit.libreoffice.org/5681
    c2ccd20c