]>
git.ipfire.org Git - thirdparty/cups.git/blob - filter/common.h
2 * "$Id: common.h 6649 2007-07-11 21:46:42Z mike $"
4 * Common filter definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 2007 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products.
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/".
15 * This file is subject to the Apple OS-Developed Software exception.
19 * Include necessary headers...
29 #include <cups/cups.h>
30 #include <cups/language.h>
31 #include <cups/string.h>
40 #endif /* __cplusplus */
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 */
63 extern ppd_file_t
*SetCommonOptions(int num_options
, cups_option_t
*options
,
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
);
79 #endif /* __cplusplus */
83 * End of "$Id: common.h 6649 2007-07-11 21:46:42Z mike $".