]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/common.h
Sandboxed applications were not able to get the default printer (Issue #5676)
[thirdparty/cups.git] / filter / common.h
1 /*
2 * Common filter definitions for CUPS.
3 *
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2006 by Easy Software Products.
6 *
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8 */
9
10 /*
11 * Include necessary headers...
12 */
13
14 #include <cups/string-private.h>
15 #include <cups/cups.h>
16 #include <cups/ppd.h>
17 #include <time.h>
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);
56 extern void WriteTextComment(const char *name, const char *value);
57
58
59 /*
60 * C++ magic...
61 */
62
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */