]>
Commit | Line | Data |
---|---|---|
2d35d8ee | 1 | /* |
1d9595ab | 2 | * "$Id: common.h,v 1.6.2.6 2003/01/07 18:26:51 mike Exp $" |
2d35d8ee | 3 | * |
4 | * Common filter definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
1d9595ab | 6 | * Copyright 1997-2003 by Easy Software Products. |
2d35d8ee | 7 | * |
8 | * These coded instructions, statements, and computer programs are the | |
9 | * property of Easy Software Products and are protected by Federal | |
10 | * copyright law. Distribution and use rights are outlined in the file | |
11 | * "LICENSE.txt" which should have been included with this file. If this | |
12 | * file is missing or damaged please contact Easy Software Products | |
13 | * at: | |
14 | * | |
15 | * Attn: CUPS Licensing Information | |
16 | * Easy Software Products | |
17 | * 44141 Airport View Drive, Suite 204 | |
18 | * Hollywood, Maryland 20636-3111 USA | |
19 | * | |
20 | * Voice: (301) 373-9603 | |
21 | * EMail: cups-info@cups.org | |
22 | * WWW: http://www.cups.org | |
dab1a4d8 | 23 | * |
24 | * This file is subject to the Apple OS-Developed Software exception. | |
2d35d8ee | 25 | */ |
26 | ||
27 | /* | |
28 | * Include necessary headers... | |
29 | */ | |
30 | ||
31 | #include <stdio.h> | |
32 | #include <stdlib.h> | |
33 | #include <string.h> | |
34 | #include <errno.h> | |
35 | #include <ctype.h> | |
36 | #include <time.h> | |
37 | ||
38 | #include <cups/cups.h> | |
39 | #include <cups/language.h> | |
40 | #include <cups/string.h> | |
41 | ||
42 | ||
43 | /* | |
44 | * Globals... | |
45 | */ | |
46 | ||
47 | extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */ | |
48 | Duplex, /* Duplexed? */ | |
49 | LanguageLevel, /* Language level of printer */ | |
50 | ColorDevice; /* Do color text? */ | |
51 | extern float PageLeft, /* Left margin */ | |
52 | PageRight, /* Right margin */ | |
53 | PageBottom, /* Bottom margin */ | |
54 | PageTop, /* Top margin */ | |
55 | PageWidth, /* Total page width */ | |
56 | PageLength; /* Total page length */ | |
57 | ||
58 | ||
59 | /* | |
60 | * Prototypes... | |
61 | */ | |
62 | ||
4e989042 | 63 | extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options, |
64 | int change_size); | |
b5cb0608 | 65 | extern void UpdatePageVars(void); |
6df23e27 | 66 | extern void WriteCommon(void); |
8b8cca8e | 67 | extern void WriteLabelProlog(const char *label, float bottom, |
68 | float top, float width); | |
69 | extern void WriteLabels(int orient); | |
2d35d8ee | 70 | |
71 | ||
72 | /* | |
1d9595ab | 73 | * End of "$Id: common.h,v 1.6.2.6 2003/01/07 18:26:51 mike Exp $". |
2d35d8ee | 74 | */ |