]> git.ipfire.org Git - thirdparty/cups.git/blob - filter/textcommon.h
Y2k copyright changes.
[thirdparty/cups.git] / filter / textcommon.h
1 /*
2 * "$Id: textcommon.h,v 1.3 2000/01/04 13:45:49 mike Exp $"
3 *
4 * Common text filter definitions for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 1997-2000 by Easy Software Products.
7 *
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
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
19 *
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
23 */
24
25 /*
26 * Include necessary headers...
27 */
28
29 #include "common.h"
30
31
32 /*
33 * Constants...
34 */
35
36 #define ATTR_BOLD 0x01
37 #define ATTR_UNDERLINE 0x02
38 #define ATTR_RAISED 0x04
39 #define ATTR_LOWERED 0x08
40 #define ATTR_ITALIC 0x10
41 #define ATTR_RED 0x20
42 #define ATTR_GREEN 0x40
43 #define ATTR_BLUE 0x80
44
45
46 /*
47 * Structures...
48 */
49
50 typedef struct /**** Character/attribute structure... ****/
51 {
52 unsigned short ch, /* Character */
53 attr; /* Any attributes */
54 } lchar_t;
55
56
57 /*
58 * Globals...
59 */
60
61 extern int WrapLines, /* Wrap text in lines */
62 SizeLines, /* Number of lines on a page */
63 SizeColumns, /* Number of columns on a line */
64 PageColumns, /* Number of columns on a page */
65 ColumnGutter, /* Number of characters between text columns */
66 ColumnWidth, /* Width of each column */
67 PrettyPrint, /* Do pretty code formatting */
68 Copies; /* Number of copies to produce */
69 extern lchar_t **Page; /* Page characters */
70 extern int NumPages; /* Number of pages in document */
71 extern int CharsPerInch, /* Number of character columns per inch */
72 LinesPerInch, /* Number of lines per inch */
73 UTF8; /* Use UTF-8 encoding? */
74 extern char *Keywords[]; /* List of known keywords... */
75
76
77 /*
78 * Required functions...
79 */
80
81 extern int TextMain(char *name, int argc, char *argv[]);
82 extern void WriteEpilogue(void);
83 extern void WritePage(void);
84 extern void WriteProlog(char *title, char *user, ppd_file_t *ppd);
85
86
87 /*
88 * End of "$Id: textcommon.h,v 1.3 2000/01/04 13:45:49 mike Exp $".
89 */