Apache OpenOffice (AOO) Bugzilla – Issue 78589
WW8: zoom factor is incorrect when importing a ms word document
Last modified: 2017-05-20 11:15:22 UTC
Reproduct step: 1. Create a MS word document by MS word 2000/2003, set the zoom factor as 200% 2. Import the ms word document by OOo 2.0, the zoom factor changes into 100%. Zoom factor is not supported in ww8 filter. I will make a patch for it in the cws cjksp1 soon.
Created attachment 46021 [details] test case
Please attach the patch proposal to this issue. Otherwise this could not be flagged as "Patch" issue.
Created attachment 46051 [details] patch to implement
Thanks for the patch; unfortunately it doesn't work correctly as it sets the zoom factor globally for all documents. Even more unfortunately there is no simple way to achieve the desired effect (otherwise it would perhaps be fixed already ;-)). In our own format the zoom factor is part of the viewdata that is retrieved through a generic API when the view is created. Applying this to the Word filter is a little bit more work to do. The zoom factor is a property of the view that does not exist at the time when the document is imported. We first have to create a place somewhere in the model where we can store this information. I wonder whether the zoom factor is not view specific in Word ... So I set this type of this issue to "DEFECT" and change the target to 2.x. Os we first must prepare something on the core side I assign this issue to os. The filter work itself seems to be trivial and can be borrowed from the patch once the method for setting the zoom factor will be available.
Oliver, please take over.
Thanks for your valuable comments. I will take more investigation.
move target to 3.x according http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".