Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / compiler / include / prefs / printertxt.h
blob75f970e6cd6d9e7a4a4df5a2fcc3f19bd6f2f858
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef PREFS_PRINTERTXT_H
7 #define PREFS_PRINTERTXT_H
10 #ifndef EXEC_TYPES_H
11 # include <exec/types.h>
12 #endif
14 #ifndef LIBRARIES_IFFPARSE_H
15 # include <libraries/iffparse.h>
16 #endif
19 #define ID_PTXT MAKE_ID('P','T','X','T')
20 #define ID_PUNT MAKE_ID('P','U','N','T')
23 #define DRIVERNAMESIZE 30
24 #define DEVICENAMESIZE 32
27 struct PrinterTxtPrefs
29 LONG pt_Reserved[4];
30 UBYTE pt_Driver[DRIVERNAMESIZE];
31 UBYTE pt_Port;
33 UWORD pt_PaperType;
34 UWORD pt_PaperSize;
35 UWORD pt_PaperLength;
37 UWORD pt_Pitch;
38 UWORD pt_Spacing;
39 UWORD pt_LeftMargin;
40 UWORD pt_RightMargin;
41 UWORD pt_Quality;
44 #define PP_PARALLEL 0
45 #define PP_SERIAL 1
47 #define PT_FANFOLD 0
48 #define PT_SINGLE 1
50 #define PS_US_LETTER 0
51 #define PS_US_LEGAL 1
52 #define PS_N_TRACTOR 2
53 #define PS_W_TRACTOR 3
54 #define PS_CUSTOM 4
55 #define PS_EURO_A0 5
56 #define PS_EURO_A1 6
57 #define PS_EURO_A2 7
58 #define PS_EURO_A3 8
59 #define PS_EURO_A4 9
60 #define PS_EURO_A5 10
61 #define PS_EURO_A6 11
62 #define PS_EURO_A7 12
63 #define PS_EURO_A8 13
65 #define PP_PICA 0
66 #define PP_ELITE 1
67 #define PP_FINE 2
69 #define PS_SIX_LPI 0
70 #define PS_EIGHT_LPI 1
72 #define PQ_DRAFT 0
73 #define PQ_LETTER 1
76 struct PrinterUnitPrefs
78 LONG pu_Reserved[4];
79 LONG pu_UnitNum;
80 ULONG pu_OpenDeviceFlags;
81 UBYTE pu_DeviceName[DEVICENAMESIZE];
85 #endif /* PREFS_PRINTERTXT_H */