]> git.ipfire.org Git - thirdparty/cups.git/blame - filter/common.h
Load cups into easysw/current.
[thirdparty/cups.git] / filter / common.h
CommitLineData
ef416fc2 1/*
f7deaa1a 2 * "$Id: common.h 5997 2006-10-02 15:33:05Z mike $"
ef416fc2 3 *
4 * Common filter definitions for the Common UNIX Printing System (CUPS).
5 *
2abf387c 6 * Copyright 1997-2006 by Easy Software Products.
ef416fc2 7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
19 *
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
23 *
24 * This file is subject to the Apple OS-Developed Software exception.
25 */
26
27/*
28 * Include necessary headers...
29 */
30
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <errno.h>
35#include <ctype.h>
36#include <time.h>
37
38#include <cups/cups.h>
39#include <cups/language.h>
40#include <cups/string.h>
41
42
43/*
44 * C++ magic...
45 */
46
47#ifdef __cplusplus
48extern "C" {
49#endif /* __cplusplus */
50
51
52/*
53 * Globals...
54 */
55
56extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */
57 Duplex, /* Duplexed? */
58 LanguageLevel, /* Language level of printer */
59 ColorDevice; /* Do color text? */
60extern float PageLeft, /* Left margin */
61 PageRight, /* Right margin */
62 PageBottom, /* Bottom margin */
63 PageTop, /* Top margin */
64 PageWidth, /* Total page width */
65 PageLength; /* Total page length */
66
67
68/*
69 * Prototypes...
70 */
71
72extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options,
73 int change_size);
74extern void UpdatePageVars(void);
75extern void WriteCommon(void);
76extern void WriteLabelProlog(const char *label, float bottom,
77 float top, float width);
78extern void WriteLabels(int orient);
2abf387c 79extern void WriteTextComment(const char *name, const char *value);
ef416fc2 80
81
82/*
83 * C++ magic...
84 */
85
86#ifdef __cplusplus
87}
88#endif /* __cplusplus */
89
90
91/*
f7deaa1a 92 * End of "$Id: common.h 5997 2006-10-02 15:33:05Z mike $".
ef416fc2 93 */