]>
git.ipfire.org Git - thirdparty/cups.git/blob - filter/textcommon.h
2 * "$Id: textcommon.h,v 1.3 2000/01/04 13:45:49 mike Exp $"
4 * Common text filter definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2000 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-3111 USA
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
26 * Include necessary headers...
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
42 #define ATTR_GREEN 0x40
43 #define ATTR_BLUE 0x80
50 typedef struct /**** Character/attribute structure... ****/
52 unsigned short ch
, /* Character */
53 attr
; /* Any attributes */
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... */
78 * Required functions...
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
);
88 * End of "$Id: textcommon.h,v 1.3 2000/01/04 13:45:49 mike Exp $".