[NOTEPAD] Improve printing (header/footer/tabs/performance) (#5111)

- Fix GetPrintingRect function.
- Add DrawHeaderOrFooter, DoPrintBody, DoPrintPage, DoCreatePrintFonts, and DoPrintDocument helper functions.
- Implement page header/footer and tabs printing in DIALOG_FilePrint function.
- Improve printing performance.
- Modify the header/footer resource strings.
- Delete the needless resource strings.
CORE-18837
This commit is contained in:
Katayama Hirofumi MZ 2023-03-07 14:42:27 +09:00 committed by GitHub
parent a804ba3200
commit 064ac123d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 478 additions and 437 deletions

View file

@ -68,10 +68,6 @@
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE 0x160
#define STRING_PAGESETUP_FOOTERVALUE 0x161
#define STRING_PAGESETUP_LEFTVALUE 0x162
#define STRING_PAGESETUP_RIGHTVALUE 0x163
#define STRING_PAGESETUP_TOPVALUE 0x164
#define STRING_PAGESETUP_BOTTOMVALUE 0x165
#define STRING_NOTEPAD 0x170
#define STRING_ERROR 0x171