summaryrefslogtreecommitdiffstats
path: root/private/mvdm/wow16/write/printdef.h
blob: 964553178406e30603fb34fedea620e7a51d1908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/************************************************************/
/* Windows Write, Copyright 1985-1992 Microsoft Corporation */
/************************************************************/

/* printdefs.h */

#ifndef PAGEONLY        /* ifdef for page table declarations only */

#define wNotSpooler	12741	/* an infamous number */

#define cchMaxProfileSz	256
#define cchMaxIDSTR     30

struct PLD
        { /* print line descriptor */
        typeCP cp;
        int ichCp;
        RECT rc;
        BOOL fParaFirst;
        };

#define cwPLD           (sizeof(struct PLD) / sizeof(int))
#define cpldInit        25
#define cpldChunk       10
#define cpldRH          5

#endif  /* PAGEONLY */

#define ipgdMaxFile     2

struct PGD
        {
        int pgn;
        typeCP cpMin;
        };

#define bcpPGD          2
#define cchPGD          (sizeof(struct PGD))
#define cwPGD           (sizeof(struct PGD) / sizeof(int))
#define cpgdChunk       10
#define cwPgtbBase      2

struct PGTB
        { /* Page table */
        int             cpgd;   /* Number of entries (sorted ascending) */
        int             cpgdMax; /* Heap space allocated */
        struct PGD      rgpgd[ipgdMaxFile]; /* Size varies */
        };

struct PDB
        { /* Print dialog buffer */
        struct PLD      (**hrgpld)[];
        int             ipld;
        int             ipldCur;
        struct PGTB     **hpgtb;
        int             ipgd;
        BOOL            fCancel;
        BOOL            fRemove;
        };