]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/common.h
Merge changes from CUPS 1.5svn-r9049 (private header support)
[thirdparty/cups.git] / filter / common.h
1 /*
2 * "$Id: common.h 6649 2007-07-11 21:46:42Z mike $"
3 *
4 * Common filter definitions for CUPS.
5 *
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products.
8 *
9 * These coded instructions, statements, and computer programs are the
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/".
14 *
15 * This file is subject to the Apple OS-Developed Software exception.
16 */
17
18 /*
19 * Include necessary headers...
20 */
21
22 #include <cups/string-private.h>
23 #include <cups/cups.h>
24 #include <cups/language.h>
25 #include <time.h>
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);
64 extern void WriteTextComment(const char *name, const char *value);
65
66
67 /*
68 * C++ magic...
69 */
70
71 #ifdef __cplusplus
72 }
73 #endif /* __cplusplus */
74
75
76 /*
77 * End of "$Id: common.h 6649 2007-07-11 21:46:42Z mike $".
78 */