]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
503b54c9 | 2 | * Common filter definitions for CUPS. |
ef416fc2 | 3 | * |
503b54c9 MS |
4 | * Copyright 2007-2010 by Apple Inc. |
5 | * Copyright 1997-2006 by Easy Software Products. | |
ef416fc2 | 6 | * |
e3101897 | 7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ef416fc2 | 8 | */ |
9 | ||
10 | /* | |
11 | * Include necessary headers... | |
12 | */ | |
13 | ||
71e16022 | 14 | #include <cups/string-private.h> |
ef416fc2 | 15 | #include <cups/cups.h> |
aaf19ab0 | 16 | #include <cups/ppd.h> |
71e16022 | 17 | #include <time.h> |
ef416fc2 | 18 | |
19 | ||
20 | /* | |
21 | * C++ magic... | |
22 | */ | |
23 | ||
24 | #ifdef __cplusplus | |
25 | extern "C" { | |
26 | #endif /* __cplusplus */ | |
27 | ||
28 | ||
29 | /* | |
30 | * Globals... | |
31 | */ | |
32 | ||
33 | extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */ | |
34 | Duplex, /* Duplexed? */ | |
35 | LanguageLevel, /* Language level of printer */ | |
36 | ColorDevice; /* Do color text? */ | |
37 | extern float PageLeft, /* Left margin */ | |
38 | PageRight, /* Right margin */ | |
39 | PageBottom, /* Bottom margin */ | |
40 | PageTop, /* Top margin */ | |
41 | PageWidth, /* Total page width */ | |
42 | PageLength; /* Total page length */ | |
43 | ||
44 | ||
45 | /* | |
46 | * Prototypes... | |
47 | */ | |
48 | ||
49 | extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options, | |
50 | int change_size); | |
51 | extern void UpdatePageVars(void); | |
52 | extern void WriteCommon(void); | |
53 | extern void WriteLabelProlog(const char *label, float bottom, | |
54 | float top, float width); | |
55 | extern void WriteLabels(int orient); | |
2abf387c | 56 | extern void WriteTextComment(const char *name, const char *value); |
ef416fc2 | 57 | |
58 | ||
59 | /* | |
60 | * C++ magic... | |
61 | */ | |
62 | ||
63 | #ifdef __cplusplus | |
64 | } | |
65 | #endif /* __cplusplus */ |