Apache OpenOffice (AOO) Bugzilla – Issue 119470
[From Symphony]page number in header lost when we save the .doc file as another in web layout
Last modified: 2012-12-26 08:39:26 UTC
Created attachment 77657 [details] sample file build: A003.4 1. open the sample file 2. click View->Web Layout 3. save as a new .doc file 4. close and reopen the new .doc file 5. click View->print layout the page nubmber fields in header moved out of page and the fields are empty.
Created attachment 77658 [details] page number fileds in header
I am checking the issue find the root cause. The page number is lost, when export in browser mode. In browser mode, there's no header or footer, so the filter will fail in finding the field in a textbox.
When exporting a text box object (and the types alike), the filter will find the object's info through the instance of the object in the "view module". In browse mode, the header/footer is not shown, so their content text box has no instance in the view module. The text box can not be find, and it can not be exported. The solution will made a "backup clue" for the filter to find the correct object info in case that the original method fails
Created attachment 78836 [details] patch for the issue
I am volunteering to review this patch. Adding text box object export process in Browse Mode to solve this issue is reasonable. The patch is OK to me.
"leidb" committed SVN revision 1369728 into trunk: #119470# fix page number in header lost when we save the .doc file as another...
Thanks zuo jun for the code review.
verified on the AOO3.5