]>
git.ipfire.org Git - thirdparty/cups.git/blob - filter/common.h
29e73654905e272ecfe2af0103964db9a0655970
2 * Common filter definitions for CUPS.
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2006 by Easy Software Products.
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
11 * Include necessary headers...
14 #include <cups/string-private.h>
15 #include <cups/cups.h>
26 #endif /* __cplusplus */
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 */
49 extern ppd_file_t
*SetCommonOptions(int num_options
, cups_option_t
*options
,
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
);
65 #endif /* __cplusplus */