]>
git.ipfire.org Git - thirdparty/cups.git/blob - filter/textcommon.h
2 * "$Id: textcommon.h 6649 2007-07-11 21:46:42Z mike $"
4 * Common text filter definitions for CUPS.
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2005 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...
31 #endif /* __cplusplus */
38 #define ATTR_NORMAL 0x00
39 #define ATTR_BOLD 0x01
40 #define ATTR_ITALIC 0x02
41 #define ATTR_BOLDITALIC 0x03
42 #define ATTR_FONT 0x03
44 #define ATTR_UNDERLINE 0x04
45 #define ATTR_RAISED 0x08
46 #define ATTR_LOWERED 0x10
48 #define ATTR_GREEN 0x40
49 #define ATTR_BLUE 0x80
52 #define PRETTY_PLAIN 1
54 #define PRETTY_SHELL 3
63 typedef struct /**** Character/attribute structure... ****/
65 unsigned short ch
, /* Character */
66 attr
; /* Any attributes */
74 extern int WrapLines
, /* Wrap text in lines */
75 SizeLines
, /* Number of lines on a page */
76 SizeColumns
, /* Number of columns on a line */
77 PageColumns
, /* Number of columns on a page */
78 ColumnGutter
, /* Number of characters between text columns */
79 ColumnWidth
, /* Width of each column */
80 PrettyPrint
, /* Do pretty code formatting? */
81 Copies
; /* Number of copies to produce */
82 extern lchar_t
**Page
; /* Page characters */
83 extern int NumPages
; /* Number of pages in document */
84 extern float CharsPerInch
, /* Number of character columns per inch */
85 LinesPerInch
; /* Number of lines per inch */
86 extern int UTF8
, /* Use UTF-8 encoding? */
87 NumKeywords
; /* Number of known keywords */
88 extern char **Keywords
; /* List of known keywords... */
92 * Required functions...
95 extern int TextMain(const char *name
, int argc
, char *argv
[]);
96 extern void WriteEpilogue(void);
97 extern void WritePage(void);
98 extern void WriteProlog(const char *title
, const char *user
,
99 const char *classification
, const char *label
,
109 #endif /* __cplusplus */
113 * End of "$Id: textcommon.h 6649 2007-07-11 21:46:42Z mike $".