]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
f2d18633 | 2 | * "$Id$" |
ef416fc2 | 3 | * |
71e16022 | 4 | * Common filter definitions for CUPS. |
ef416fc2 | 5 | * |
71e16022 | 6 | * Copyright 2007-2010 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 | ||
71e16022 | 22 | #include <cups/string-private.h> |
ef416fc2 | 23 | #include <cups/cups.h> |
aaf19ab0 | 24 | #include <cups/ppd.h> |
71e16022 | 25 | #include <time.h> |
ef416fc2 | 26 | |
27 | ||
28 | /* | |
29 | * C++ magic... | |
30 | */ | |
31 | ||
32 | #ifdef __cplusplus | |
33 | extern "C" { | |
34 | #endif /* __cplusplus */ | |
35 | ||
36 | ||
37 | /* | |
38 | * Globals... | |
39 | */ | |
40 | ||
41 | extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */ | |
42 | Duplex, /* Duplexed? */ | |
43 | LanguageLevel, /* Language level of printer */ | |
44 | ColorDevice; /* Do color text? */ | |
45 | extern float PageLeft, /* Left margin */ | |
46 | PageRight, /* Right margin */ | |
47 | PageBottom, /* Bottom margin */ | |
48 | PageTop, /* Top margin */ | |
49 | PageWidth, /* Total page width */ | |
50 | PageLength; /* Total page length */ | |
51 | ||
52 | ||
53 | /* | |
54 | * Prototypes... | |
55 | */ | |
56 | ||
57 | extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options, | |
58 | int change_size); | |
59 | extern void UpdatePageVars(void); | |
60 | extern void WriteCommon(void); | |
61 | extern void WriteLabelProlog(const char *label, float bottom, | |
62 | float top, float width); | |
63 | extern void WriteLabels(int orient); | |
2abf387c | 64 | extern void WriteTextComment(const char *name, const char *value); |
ef416fc2 | 65 | |
66 | ||
67 | /* | |
68 | * C++ magic... | |
69 | */ | |
70 | ||
71 | #ifdef __cplusplus | |
72 | } | |
73 | #endif /* __cplusplus */ | |
74 | ||
75 | ||
76 | /* | |
f2d18633 | 77 | * End of "$Id$". |
ef416fc2 | 78 | */ |