-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename SetLegacyDrawingHF to AddHeaderFooterImage #2023
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2023 +/- ##
=======================================
Coverage 99.20% 99.20%
=======================================
Files 32 32
Lines 29880 29947 +67
=======================================
+ Hits 29642 29709 +67
Misses 158 158
Partials 80 80
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BTW, it looks like it may be possible to set multiple images somehow: https://github.com/jmcnamara/XlsxWriter/blob/main/xlsxwriter/worksheet.py#L4244 Perhaps multiple shapes in the VML? No idea, I wasn't able to follow this code. I don't need this myself, but perhaps an improvement for later. |
The name |
Well there's still only one drawing allowed, so probably have to set them
all at once. Otherwise you have to edit the vml.
|
Yep, support append VML shapes (just like form controls) to allow call |
- Add new exported HeaderFooterImagePositionType enumeration - An error will be return if the image format is unsupported - Rename exported data type HeaderFooterGraphics to HeaderFooterImageOptions - Support add and update exist header and footer images - Changes the VML data ID to sheet ID - Update unit tests - Update dependencies modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some changes based on your branch, now support append VML shapes by call AddHeaderFooterImage
multiple times.
Question: should
HeaderFooterGraphics
be renamed to something, or OK as-is?PR Details
Rename SetLegacyDrawingHF to SetHeaderFooterImage.
Motivation and Context
This is being done per request from @xuri. Probably fits in better with the overall naming convention.
How Has This Been Tested
go test
passes. Given that this was generated withsed -i
, no further testing has been done.Types of changes
Checklist