]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/language.h
Added idle, processing, and stopped status messages.
[thirdparty/cups.git] / cups / language.h
1 /*
2 * "$Id: language.h,v 1.4 1999/04/19 21:13:26 mike Exp $"
3 *
4 * Multi-language support for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 1997-1999 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 * 44145 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 <locale.h>
30
31
32 /*
33 * Messages...
34 */
35
36 typedef enum /**** Message Indices ****/
37 {
38 CUPS_MSG_OK,
39 CUPS_MSG_CANCEL,
40 CUPS_MSG_HELP,
41 CUPS_MSG_QUIT,
42 CUPS_MSG_CLOSE,
43 CUPS_MSG_YES,
44 CUPS_MSG_NO,
45 CUPS_MSG_AUTO,
46 CUPS_MSG_ON,
47 CUPS_MSG_OFF,
48 CUPS_MSG_SAVE,
49 CUPS_MSG_DISCARD,
50 CUPS_MSG_DEFAULT,
51 CUPS_MSG_USER_DEFINED,
52 CUPS_MSG_OPTIONS,
53 CUPS_MSG_MORE_INFO,
54 CUPS_MSG_BLACK,
55 CUPS_MSG_COLOR,
56 CUPS_MSG_CYAN,
57 CUPS_MSG_MAGENTA,
58 CUPS_MSG_YELLOW,
59 CUPS_MSG_COPYRIGHT,
60 CUPS_MSG_ALL_RIGHTS_RESERVED,
61 CUPS_MSG_GENERAL,
62 CUPS_MSG_PRINTER,
63 CUPS_MSG_POSTSCRIPT,
64 CUPS_MSG_IMAGE,
65 CUPS_MSG_TEXT,
66 CUPS_MSG_HPGL,
67 CUPS_MSG_ADVANCED,
68 CUPS_MSG_PRINT_BANNER_PAGE,
69 CUPS_MSG_VERBOSE_LOGGING,
70 CUPS_MSG_PRINT_PAGES,
71 CUPS_MSG_DOCUMENT,
72 CUPS_MSG_ENTIRE_DOCUMENT,
73 CUPS_MSG_PAGE_RANGE,
74 CUPS_MSG_REVERSE_ORDER,
75 CUPS_MSG_PAGE_FORMAT,
76 CUPS_MSG_1_UP,
77 CUPS_MSG_2_UP,
78 CUPS_MSG_4_UP,
79 CUPS_MSG_IMAGE_SCALING,
80 CUPS_MSG_USE_NATURAL_IMAGE_SIZE,
81 CUPS_MSG_ZOOM_BY_PERCENT,
82 CUPS_MSG_ZOOM_BY_PPI,
83 CUPS_MSG_MIRROR_IMAGE,
84 CUPS_MSG_ROTATE_IMAGE,
85 CUPS_MSG_BEST_FIT,
86 CUPS_MSG_COLOR_SATURATION,
87 CUPS_MSG_COLOR_HUE,
88 CUPS_MSG_NUMBER_OF_COLUMNS,
89 CUPS_MSG_MARGINS,
90 CUPS_MSG_WRAP_TEXT,
91 CUPS_MSG_FIT_TO_PAGE,
92 CUPS_MSG_SHADING,
93 CUPS_MSG_DEFAULT_PEN_WIDTH,
94 CUPS_MSG_GAMMA_CORRECTION,
95 CUPS_MSG_BRIGHTNESS,
96 CUPS_MSG_COLOR_PROFILE,
97 CUPS_MSG_ADD_PRINTER,
98 CUPS_MSG_DELETE_PRINTER,
99 CUPS_MSG_MODIFY_PRINTER,
100 CUPS_MSG_PRINTER_URI,
101 CUPS_MSG_PRINTER_NAME,
102 CUPS_MSG_PRINTER_LOCATION,
103 CUPS_MSG_PRINTER_INFO,
104 CUPS_MSG_PRINTER_MAKE_AND_MODEL,
105 CUPS_MSG_DEVICE_URI,
106 CUPS_MSG_FORMATTING_PAGE,
107 CUPS_MSG_PRINTING_PAGE,
108 CUPS_MSG_INITIALIZING_PRINTER,
109 CUPS_MSG_PRINTER_STATE,
110 CUPS_MSG_ACCEPTING_JOBS,
111 CUPS_MSG_NOT_ACCEPTING_JOBS,
112 CUPS_MSG_PRINT_JOBS,
113 CUPS_MSG_CLASS,
114 CUPS_MSG_LOCAL,
115 CUPS_MSG_REMOTE,
116 CUPS_MSG_DUPLEXING,
117 CUPS_MSG_STAPLING,
118 CUPS_MSG_FAST_COPIES,
119 CUPS_MSG_COLLATED_COPIES,
120 CUPS_MSG_PUNCHING,
121 CUPS_MSG_COVERING,
122 CUPS_MSG_BINDING,
123 CUPS_MSG_SORTING,
124 CUPS_MSG_SMALL,
125 CUPS_MSG_MEDIUM,
126 CUPS_MSG_LARGE,
127 CUPS_MSG_VARIABLE,
128 CUPS_MSG_IDLE,
129 CUPS_MSG_PROCESSING,
130 CUPS_MSG_STOPPED,
131 CUPS_MSG_HTTP_BASE = 200,
132 CUPS_MSG_HTTP_END = 505,
133 CUPS_MSG_MAX
134 } cups_msg_t;
135
136 typedef enum /**** Language Encodings ****/
137 {
138 CUPS_US_ASCII,
139 CUPS_ISO8859_1,
140 CUPS_ISO8859_2,
141 CUPS_ISO8859_3,
142 CUPS_ISO8859_4,
143 CUPS_ISO8859_5,
144 CUPS_ISO8859_6,
145 CUPS_ISO8859_7,
146 CUPS_ISO8859_8,
147 CUPS_ISO8859_9,
148 CUPS_ISO8859_10,
149 CUPS_UTF8
150 } cups_encoding_t;
151
152 typedef struct cups_lang_str /**** Language Cache Structure ****/
153 {
154 struct cups_lang_str *next; /* Next language in cache */
155 int used; /* Number of times this entry has been used. */
156 cups_encoding_t encoding; /* Text encoding */
157 char language[16]; /* Language/locale name */
158 unsigned char *messages[CUPS_MSG_MAX];
159 /* Message array */
160 } cups_lang_t;
161
162
163 /*
164 * Prototypes...
165 */
166
167 #define cupsLangDefault() cupsLangGet(setlocale(LC_ALL, 0))
168 extern char *cupsLangEncoding(cups_lang_t *lang);
169 extern void cupsLangFlush(void);
170 extern void cupsLangFree(cups_lang_t *lang);
171 extern cups_lang_t *cupsLangGet(char *language);
172 #define cupsLangString(lang,msg) (lang)->messages[(msg)]
173
174 /*
175 * End of "$Id: language.h,v 1.4 1999/04/19 21:13:26 mike Exp $".
176 */