/*1* Common filter definitions for CUPS.2*3* Copyright 2007-2010 by Apple Inc.4* Copyright 1997-2006 by Easy Software Products.5*6* Licensed under Apache License v2.0. See the file "LICENSE" for more information.7*/89/*10* Include necessary headers...11*/1213#include <cups/string-private.h>14#include <cups/cups.h>15#include <cups/ppd.h>16#include <time.h>171819/*20* C++ magic...21*/2223#ifdef __cplusplus24extern "C" {25#endif /* __cplusplus */262728/*29* Globals...30*/3132extern int Orientation, /* 0 = portrait, 1 = landscape, etc. */33Duplex, /* Duplexed? */34LanguageLevel, /* Language level of printer */35ColorDevice; /* Do color text? */36extern float PageLeft, /* Left margin */37PageRight, /* Right margin */38PageBottom, /* Bottom margin */39PageTop, /* Top margin */40PageWidth, /* Total page width */41PageLength; /* Total page length */424344/*45* Prototypes...46*/4748extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options,49int change_size);50extern void UpdatePageVars(void);51extern void WriteCommon(void);52extern void WriteLabelProlog(const char *label, float bottom,53float top, float width);54extern void WriteLabels(int orient);55extern void WriteTextComment(const char *name, const char *value);565758/*59* C++ magic...60*/6162#ifdef __cplusplus63}64#endif /* __cplusplus */656667