mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 09:03:38 +00:00
Add support for a large number of different paper sizes to PostScript
driver.
This commit is contained in:
parent
4e407605a6
commit
6dd35697f9
|
@ -30,38 +30,127 @@ static struct {
|
|||
char *PSName;
|
||||
WORD WinPage;
|
||||
} PageTrans[] = {
|
||||
{"10x11", DMPAPER_10X11},
|
||||
{"10x14", DMPAPER_10X14},
|
||||
{"12x11", DMPAPER_12X11},
|
||||
{"15x11", DMPAPER_15X11},
|
||||
{"9x11", DMPAPER_9X11},
|
||||
{"A2", DMPAPER_A2},
|
||||
{"A3", DMPAPER_A3},
|
||||
{"A3.Transverse", DMPAPER_A3_TRANSVERSE},
|
||||
{"A3Extra", DMPAPER_A3_EXTRA},
|
||||
{"A3Extra.Transverse", DMPAPER_A3_EXTRA_TRANSVERSE},
|
||||
{"A3Rotated", DMPAPER_A3_ROTATED},
|
||||
{"A4", DMPAPER_A4},
|
||||
{"A4.Transverse", DMPAPER_A4_TRANSVERSE},
|
||||
{"A4Extra", DMPAPER_A4_EXTRA},
|
||||
{"A4Plus", DMPAPER_A4_PLUS},
|
||||
{"A4Rotated", DMPAPER_A4_ROTATED},
|
||||
{"A4Small", DMPAPER_A4SMALL},
|
||||
{"A5", DMPAPER_A5},
|
||||
{"A5.Transverse", DMPAPER_A5_TRANSVERSE},
|
||||
{"A5Extra", DMPAPER_A5_EXTRA},
|
||||
{"A5Rotated", DMPAPER_A5_ROTATED},
|
||||
{"A6", DMPAPER_A6},
|
||||
{"A6Rotated", DMPAPER_A6_ROTATED},
|
||||
{"ARCHC", DMPAPER_CSHEET},
|
||||
{"ARCHD", DMPAPER_DSHEET},
|
||||
{"ARCHE", DMPAPER_ESHEET},
|
||||
{"B4", DMPAPER_B4},
|
||||
{"B4Rotated", DMPAPER_B4_JIS_ROTATED},
|
||||
{"B5", DMPAPER_B5},
|
||||
{"B5.Transverse", DMPAPER_B5_TRANSVERSE},
|
||||
{"B5Rotated", DMPAPER_B5_JIS_ROTATED},
|
||||
{"B6", DMPAPER_B6_JIS},
|
||||
{"B6Rotated", DMPAPER_B6_JIS_ROTATED},
|
||||
{"C4", DMPAPER_ENV_C4},
|
||||
{"C5", DMPAPER_ENV_C5},
|
||||
{"C6", DMPAPER_ENV_C6},
|
||||
{"Comm10", DMPAPER_ENV_10},
|
||||
{"DL", DMPAPER_ENV_DL},
|
||||
{"DoublePostcard", DMPAPER_DBL_JAPANESE_POSTCARD},
|
||||
{"DoublePostcardRotated", DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED},
|
||||
{"Env9", DMPAPER_ENV_9},
|
||||
{"Env10", DMPAPER_ENV_10},
|
||||
{"Env11", DMPAPER_ENV_11},
|
||||
{"Env12", DMPAPER_ENV_12},
|
||||
{"Env14", DMPAPER_ENV_14},
|
||||
{"EnvC3", DMPAPER_ENV_C3},
|
||||
{"EnvC4", DMPAPER_ENV_C4},
|
||||
{"EnvC5", DMPAPER_ENV_C5},
|
||||
{"EnvC6", DMPAPER_ENV_C6},
|
||||
{"EnvC65", DMPAPER_ENV_C65},
|
||||
{"EnvChou3", DMPAPER_JENV_CHOU3},
|
||||
{"EnvChou3Rotated", DMPAPER_JENV_CHOU3_ROTATED},
|
||||
{"EnvChou4", DMPAPER_JENV_CHOU4},
|
||||
{"EnvChou4Rotated", DMPAPER_JENV_CHOU4_ROTATED},
|
||||
{"EnvDL", DMPAPER_ENV_DL},
|
||||
{"EnvInvite", DMPAPER_ENV_INVITE},
|
||||
{"EnvISOB4", DMPAPER_ENV_B4},
|
||||
{"EnvISOB5", DMPAPER_ENV_B5},
|
||||
{"EnvISOB6", DMPAPER_ENV_B6},
|
||||
{"EnvItalian", DMPAPER_ENV_ITALY},
|
||||
{"EnvKaku2", DMPAPER_JENV_KAKU2},
|
||||
{"EnvKaku2Rotated", DMPAPER_JENV_KAKU2_ROTATED},
|
||||
{"EnvKaku3", DMPAPER_JENV_KAKU3},
|
||||
{"EnvKaku3Rotated", DMPAPER_JENV_KAKU3_ROTATED},
|
||||
{"EnvMonarch", DMPAPER_ENV_MONARCH},
|
||||
{"EnvPersonal", DMPAPER_ENV_PERSONAL},
|
||||
{"EnvPRC1", DMPAPER_PENV_1},
|
||||
{"EnvPRC1Rotated", DMPAPER_PENV_1_ROTATED},
|
||||
{"EnvPRC2", DMPAPER_PENV_2},
|
||||
{"EnvPRC2Rotated", DMPAPER_PENV_2_ROTATED},
|
||||
{"EnvPRC3", DMPAPER_PENV_3},
|
||||
{"EnvPRC3Rotated", DMPAPER_PENV_3_ROTATED},
|
||||
{"EnvPRC4", DMPAPER_PENV_4},
|
||||
{"EnvPRC4Rotated", DMPAPER_PENV_4_ROTATED},
|
||||
{"EnvPRC5", DMPAPER_PENV_5},
|
||||
{"EnvPRC5Rotated", DMPAPER_PENV_5_ROTATED},
|
||||
{"EnvPRC6", DMPAPER_PENV_6},
|
||||
{"EnvPRC6Rotated", DMPAPER_PENV_6_ROTATED},
|
||||
{"EnvPRC7", DMPAPER_PENV_7},
|
||||
{"EnvPRC7Rotated", DMPAPER_PENV_7_ROTATED},
|
||||
{"EnvPRC8", DMPAPER_PENV_8},
|
||||
{"EnvPRC8Rotated", DMPAPER_PENV_8_ROTATED},
|
||||
{"EnvPRC9", DMPAPER_PENV_9},
|
||||
{"EnvPRC9Rotated", DMPAPER_PENV_9_ROTATED},
|
||||
{"EnvPRC10", DMPAPER_PENV_10},
|
||||
{"EnvPRC10Rotated", DMPAPER_PENV_10_ROTATED},
|
||||
{"EnvYou4", DMPAPER_JENV_YOU4},
|
||||
{"EnvYou4Rotated", DMPAPER_JENV_YOU4_ROTATED},
|
||||
{"Executive", DMPAPER_EXECUTIVE},
|
||||
{"FanFoldUS", DMPAPER_FANFOLD_US},
|
||||
{"FanFoldGerman", DMPAPER_FANFOLD_STD_GERMAN},
|
||||
{"FanFoldGermanLegal", DMPAPER_FANFOLD_LGL_GERMAN},
|
||||
{"Folio", DMPAPER_FOLIO},
|
||||
{"ISOB4", DMPAPER_ISO_B4},
|
||||
{"ISOB5Extra", DMPAPER_B5_EXTRA},
|
||||
{"Ledger", DMPAPER_LEDGER},
|
||||
{"Legal", DMPAPER_LEGAL},
|
||||
{"LegalExtra", DMPAPER_LEGAL_EXTRA},
|
||||
{"Letter", DMPAPER_LETTER},
|
||||
{"Letter.Transverse", DMPAPER_LETTER_TRANSVERSE},
|
||||
{"LetterExtra", DMPAPER_LETTER_EXTRA},
|
||||
{"LetterExtra.Transverse", DMPAPER_LETTER_EXTRA_TRANSVERSE},
|
||||
{"LetterPlus", DMPAPER_LETTER_PLUS},
|
||||
{"LetterRotated", DMPAPER_LETTER_ROTATED},
|
||||
{"LetterSmall", DMPAPER_LETTERSMALL},
|
||||
{"Monarch", DMPAPER_ENV_MONARCH},
|
||||
{"Note", DMPAPER_NOTE},
|
||||
{"Postcard", DMPAPER_JAPANESE_POSTCARD},
|
||||
{"PostcardRotated", DMPAPER_JAPANESE_POSTCARD_ROTATED},
|
||||
{"PRC16K", DMPAPER_P16K},
|
||||
{"PRC16KRotated", DMPAPER_P16K_ROTATED},
|
||||
{"PRC32K", DMPAPER_P32K},
|
||||
{"PRC32KBig", DMPAPER_P32KBIG},
|
||||
{"PRC32KBigRotated", DMPAPER_P32KBIG_ROTATED},
|
||||
{"PRC32KRotated", DMPAPER_P32K_ROTATED},
|
||||
{"Quarto", DMPAPER_QUARTO},
|
||||
{"Statement", DMPAPER_STATEMENT},
|
||||
{"SuperA", DMPAPER_A_PLUS},
|
||||
{"SuperB", DMPAPER_B_PLUS},
|
||||
{"Tabloid", DMPAPER_TABLOID},
|
||||
{"TabloidExtra", DMPAPER_TABLOID_EXTRA},
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
|
|
|
@ -2833,13 +2833,62 @@ DECL_WINELIB_TYPE_AW(LPDEVMODE)
|
|||
#define DMPAPER_A3_TRANSVERSE 67
|
||||
#define DMPAPER_A3_EXTRA_TRANSVERSE 68
|
||||
#define DMPAPER_DBL_JAPANESE_POSTCARD 69
|
||||
#define DMPAPER_A6 70
|
||||
#define DMPAPER_JENV_KAKU2 71
|
||||
#define DMPAPER_JENV_KAKU3 72
|
||||
#define DMPAPER_JENV_CHOU3 73
|
||||
#define DMPAPER_JENV_CHOU4 74
|
||||
#define DMPAPER_LETTER_ROTATED 75
|
||||
#define DMPAPER_A3_ROTATED 76
|
||||
#define DMPAPER_A4_ROTATED 77
|
||||
#define DMPAPER_A5_ROTATED 78
|
||||
#define DMPAPER_B4_JIS_ROTATED 79
|
||||
#define DMPAPER_B5_JIS_ROTATED 80
|
||||
#define DMPAPER_JAPANESE_POSTCARD_ROTATED 81
|
||||
#define DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED 82
|
||||
#define DMPAPER_LAST DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED
|
||||
#define DMPAPER_A6_ROTATED 83
|
||||
#define DMPAPER_JENV_KAKU2_ROTATED 84
|
||||
#define DMPAPER_JENV_KAKU3_ROTATED 85
|
||||
#define DMPAPER_JENV_CHOU3_ROTATED 86
|
||||
#define DMPAPER_JENV_CHOU4_ROTATED 87
|
||||
#define DMPAPER_B6_JIS 88
|
||||
#define DMPAPER_B6_JIS_ROTATED 89
|
||||
#define DMPAPER_12X11 90
|
||||
#define DMPAPER_JENV_YOU4 91
|
||||
#define DMPAPER_JENV_YOU4_ROTATED 92
|
||||
#define DMPAPER_P16K 93
|
||||
#define DMPAPER_P32K 94
|
||||
#define DMPAPER_P32KBIG 95
|
||||
#define DMPAPER_PENV_1 96
|
||||
#define DMPAPER_PENV_2 97
|
||||
#define DMPAPER_PENV_3 98
|
||||
#define DMPAPER_PENV_4 99
|
||||
#define DMPAPER_PENV_5 100
|
||||
#define DMPAPER_PENV_6 101
|
||||
#define DMPAPER_PENV_7 102
|
||||
#define DMPAPER_PENV_8 103
|
||||
#define DMPAPER_PENV_9 104
|
||||
#define DMPAPER_PENV_10 105
|
||||
#define DMPAPER_P16K_ROTATED 106
|
||||
#define DMPAPER_P32K_ROTATED 107
|
||||
#define DMPAPER_P32KBIG_ROTATED 108
|
||||
#define DMPAPER_PENV_1_ROTATED 109
|
||||
#define DMPAPER_PENV_2_ROTATED 110
|
||||
#define DMPAPER_PENV_3_ROTATED 111
|
||||
#define DMPAPER_PENV_4_ROTATED 112
|
||||
#define DMPAPER_PENV_5_ROTATED 113
|
||||
#define DMPAPER_PENV_6_ROTATED 114
|
||||
#define DMPAPER_PENV_7_ROTATED 115
|
||||
#define DMPAPER_PENV_8_ROTATED 116
|
||||
#define DMPAPER_PENV_9_ROTATED 117
|
||||
#define DMPAPER_PENV_10_ROTATED 118
|
||||
|
||||
#define DMPAPER_LAST DMPAPER_PENV_10_ROTATED
|
||||
#define DMPAPER_USER 256
|
||||
|
||||
#define DMBIN_FIRST DMBIN_UPPER
|
||||
#define DMBIN_UPPER 1
|
||||
#define DMBIN_ONLYONE 1
|
||||
#define DMBIN_LOWER 2
|
||||
#define DMBIN_MIDDLE 3
|
||||
#define DMBIN_MANUAL 4
|
||||
|
|
Loading…
Reference in a new issue