]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/common.h
Import CUPS 1.4svn-r7226.
[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 the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007 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 <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);
70 extern void WriteTextComment(const char *name, const char *value);
71
72
73 /*
74 * C++ magic...
75 */
76
77 #ifdef __cplusplus
78 }
79 #endif /* __cplusplus */
80
81
82 /*
83 * End of "$Id: common.h 6649 2007-07-11 21:46:42Z mike $".
84 */