Copy page margins, setup, print options when copying worksheet
Created originally on Bitbucket by johnwoltman (John Woltman)
Was already merged in Bitbucket before import, marked as merged by the import user
WorksheetCopy class now copies the PageMargins, PrintPageSetup, and PrintOptions. Fixes #1244.
Merge request reports
Activity
Created by: johnwoltman
I looked into it, and found that:
- PageMargins, PrintPageSetup, and PrintOptions are subclasses of Serialisable.
-
Serialisable
implements__copy__()
by turning the object into its XML representation and then converting back into a Python object. - The child classes, which are subclasses of Descriptor and Set, appear to be handled by Serialisable's
__copy__
and are part of the Python-to-XML-to-Python cycle.
If you’d like me to do anything further with this, let me know. (I haven’t contributed much to any open source project before, so any help or tips are appreciated).
Please register or sign in to reply