]>
git.ipfire.org Git - thirdparty/cups.git/blob - filter/textcommon.h
2 * "$Id: textcommon.h 4559 2005-08-04 18:40:13Z mike $"
4 * Common text filter definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2005 by Easy Software Products.
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
28 * Include necessary headers...
40 #endif /* __cplusplus */
47 #define ATTR_NORMAL 0x00
48 #define ATTR_BOLD 0x01
49 #define ATTR_ITALIC 0x02
50 #define ATTR_BOLDITALIC 0x03
51 #define ATTR_FONT 0x03
53 #define ATTR_UNDERLINE 0x04
54 #define ATTR_RAISED 0x08
55 #define ATTR_LOWERED 0x10
57 #define ATTR_GREEN 0x40
58 #define ATTR_BLUE 0x80
61 #define PRETTY_PLAIN 1
63 #define PRETTY_SHELL 3
72 typedef struct /**** Character/attribute structure... ****/
74 unsigned short ch
, /* Character */
75 attr
; /* Any attributes */
83 extern int WrapLines
, /* Wrap text in lines */
84 SizeLines
, /* Number of lines on a page */
85 SizeColumns
, /* Number of columns on a line */
86 PageColumns
, /* Number of columns on a page */
87 ColumnGutter
, /* Number of characters between text columns */
88 ColumnWidth
, /* Width of each column */
89 PrettyPrint
, /* Do pretty code formatting? */
90 Copies
; /* Number of copies to produce */
91 extern lchar_t
**Page
; /* Page characters */
92 extern int NumPages
; /* Number of pages in document */
93 extern float CharsPerInch
, /* Number of character columns per inch */
94 LinesPerInch
; /* Number of lines per inch */
95 extern int UTF8
, /* Use UTF-8 encoding? */
96 NumKeywords
; /* Number of known keywords */
97 extern char **Keywords
; /* List of known keywords... */
101 * Required functions...
104 extern int TextMain(const char *name
, int argc
, char *argv
[]);
105 extern void WriteEpilogue(void);
106 extern void WritePage(void);
107 extern void WriteProlog(const char *title
, const char *user
,
108 const char *classification
, const char *label
,
118 #endif /* __cplusplus */
122 * End of "$Id: textcommon.h 4559 2005-08-04 18:40:13Z mike $".