Closed imirkin closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.20%. Comparing base (
b7375bc
) to head (8e79403
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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 HeaderFooterGraphics
is fine, but I think we need to add new Position
field in this data type, acceptable value is LH, CH, RH, LF, CF, RF, LHFIRST, CHFIRST, RHFIRST, LFFIRST, CFFIRST, RFFIRST for add multiple shapes in the VML. I will tried to update based on this PR in some time.
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 SetHeaderFooterImage
multiple times, that's would be better.
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