]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
bc44d920 | 2 | * "$Id: common.h 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | * |
4 | * Common filter definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
bc44d920 | 6 | * Copyright 2007 by Apple Inc. |
2abf387c | 7 | * Copyright 1997-2006 by Easy Software Products. |
ef416fc2 | 8 | * |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | * property of Apple Inc. and are protected by Federal copyright |
11 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | * which should have been included with this file. If this file is | |
13 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | * |
15 | * This file is subject to the Apple OS-Developed Software exception. | |
16 | */ | |
17 | ||
18 | /* | |
19 | * Include necessary headers... | |
20 | */ | |
21 | ||
22 | #include <stdio.h> | |
23 | #include <stdlib.h> | |
24 | #include <string.h> | |
25 | #include <errno.h> | |
26 | #include <ctype.h> | |
27 | #include <time.h> | |
28 | ||
29 | #include <cups/cups.h> | |
30 | #include <cups/language.h> | |
31 | #include <cups/string.h> | |
32 | ||
33 | ||
34 | /* | |
35 | * C++ magic... | |
36 | */ | |
37 | ||
38 | #ifdef __cplusplus | |
39 | extern "C" { | |
40 | #endif /* __cplusplus */ | |
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 | ||
63 | extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options, | |
64 | int change_size); | |
65 | extern void UpdatePageVars(void); | |
66 | extern void WriteCommon(void); | |
67 | extern void WriteLabelProlog(const char *label, float bottom, | |
68 | float top, float width); | |
69 | extern void WriteLabels(int orient); | |
2abf387c | 70 | extern void WriteTextComment(const char *name, const char *value); |
ef416fc2 | 71 | |
72 | ||
73 | /* | |
74 | * C++ magic... | |
75 | */ | |
76 | ||
77 | #ifdef __cplusplus | |
78 | } | |
79 | #endif /* __cplusplus */ | |
80 | ||
81 | ||
82 | /* | |
bc44d920 | 83 | * End of "$Id: common.h 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 84 | */ |