]>
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 CUPS.
6 * Copyright 2007-2010 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...
22 #include <cups/string-private.h>
23 #include <cups/cups.h>
34 #endif /* __cplusplus */
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 */
57 extern ppd_file_t
*SetCommonOptions(int num_options
, cups_option_t
*options
,
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
);
73 #endif /* __cplusplus */
77 * End of "$Id: common.h 6649 2007-07-11 21:46:42Z mike $".