Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8335 | maxcodehac | 1 | |
2 | GNU UnRTF, a command-line program to convert RTF documents to other formats. |
||
3 | Copyright (C) 2000,2001 Zachary Thayer Smith |
||
4 | |||
5 | |||
6 | it under the terms of the GNU General Public License as published by |
||
7 | the Free Software Foundation; either version 2 of the License, or |
||
8 | (at your option) any later version. |
||
9 | |||
10 | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
13 | GNU General Public License for more details. |
||
14 | |||
15 | |||
16 | along with this program; if not, write to the Free Software |
||
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
18 | |||
19 | |||
20 | =============================================================================*/ |
||
21 | |||
22 | |||
23 | |||
24 | * Module name: output |
||
25 | * Author name: Zach Smith |
||
26 | * Create date: 18 Sep 01 |
||
27 | * Purpose: Definitions for the generalized output module |
||
28 | *---------------------------------------------------------------------- |
||
29 | * Changes: |
||
30 | *--------------------------------------------------------------------*/ |
||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | |||
37 | char *comment_begin; |
||
38 | char *comment_end; |
||
39 | |||
40 | |||
41 | char *document_end; |
||
42 | |||
43 | |||
44 | char *header_end; |
||
45 | |||
46 | |||
47 | char *document_title_end; |
||
48 | |||
49 | |||
50 | char *document_keywords_end; |
||
51 | |||
52 | |||
53 | char *document_author_end; |
||
54 | |||
55 | |||
56 | char *document_changedate_end; |
||
57 | |||
58 | |||
59 | char *body_end; |
||
60 | |||
61 | |||
62 | char *word_end; |
||
63 | |||
64 | |||
65 | char *paragraph_end; |
||
66 | |||
67 | |||
68 | char *center_end; |
||
69 | |||
70 | |||
71 | char *align_left_end; |
||
72 | |||
73 | |||
74 | char *align_right_end; |
||
75 | |||
76 | |||
77 | char *justify_end; |
||
78 | |||
79 | |||
80 | char *line_break; |
||
81 | char *page_break; |
||
82 | |||
83 | |||
84 | char *hyperlink_end; |
||
85 | |||
86 | |||
87 | char *imagelink_end; |
||
88 | |||
89 | |||
90 | char *table_end; |
||
91 | |||
92 | |||
93 | char *table_row_end; |
||
94 | |||
95 | |||
96 | char *table_cell_end; |
||
97 | |||
98 | |||
99 | char *font_begin; |
||
100 | char *font_end; |
||
101 | |||
102 | |||
103 | char *fontsize_end; |
||
104 | |||
105 | |||
106 | char *fontsize8_begin; |
||
107 | char *fontsize8_end; |
||
108 | |||
109 | |||
110 | char *fontsize10_end; |
||
111 | |||
112 | |||
113 | char *fontsize12_end; |
||
114 | |||
115 | |||
116 | char *fontsize14_end; |
||
117 | |||
118 | |||
119 | char *fontsize18_end; |
||
120 | |||
121 | |||
122 | char *fontsize24_end; |
||
123 | |||
124 | |||
125 | char *fontsize36_end; |
||
126 | |||
127 | |||
128 | char *fontsize48_end; |
||
129 | |||
130 | |||
131 | char *smaller_end; |
||
132 | |||
133 | |||
134 | char *bigger_end; |
||
135 | |||
136 | |||
137 | char *foreground_end; |
||
138 | |||
139 | |||
140 | char *background_end; |
||
141 | |||
142 | |||
143 | char *bold_end; |
||
144 | |||
145 | |||
146 | char *italic_end; |
||
147 | |||
148 | |||
149 | char *underline_end; |
||
150 | |||
151 | |||
152 | char *dbl_underline_end; |
||
153 | |||
154 | |||
155 | char *superscript_end; |
||
156 | |||
157 | |||
158 | char *subscript_end; |
||
159 | |||
160 | |||
161 | char *strikethru_end; |
||
162 | |||
163 | |||
164 | char *dbl_strikethru_end; |
||
165 | |||
166 | |||
167 | char *emboss_end; |
||
168 | |||
169 | |||
170 | char *engrave_end; |
||
171 | |||
172 | |||
173 | char *shadow_end; |
||
174 | |||
175 | |||
176 | char *outline_end; |
||
177 | |||
178 | |||
179 | char *small_caps_end; |
||
180 | |||
181 | |||
182 | char *pointlist_end; |
||
183 | |||
184 | |||
185 | char *pointlist_item_end; |
||
186 | |||
187 | |||
188 | char *numericlist_end; |
||
189 | |||
190 | |||
191 | char *numericlist_item_end; |
||
192 | |||
193 | |||
194 | char *expand_end; |
||
195 | |||
196 | |||
197 | char *toc_entry_end; |
||
198 | |||
199 | |||
200 | char *index_entry_end; |
||
201 | |||
202 | |||
203 | * to one of the charsets. |
||
204 | */ |
||
205 | struct { |
||
206 | char *bullet; |
||
207 | char *left_quote; |
||
208 | char *right_quote; |
||
209 | char *left_dbl_quote; |
||
210 | char *right_dbl_quote; |
||
211 | char *nonbreaking_space; |
||
212 | char *emdash; |
||
213 | char *endash; |
||
214 | char *lessthan; |
||
215 | char *greaterthan; |
||
216 | char *amp; |
||
217 | char *copyright; |
||
218 | char *trademark; |
||
219 | char *nonbreaking_hyphen; |
||
220 | char *optional_hyphen; |
||
221 | } chars; |
||
222 | |||
223 | |||
224 | |||
225 | |||
226 | int simulate_all_caps : 1; |
||
227 | int simulate_word_underline : 1; |
||
228 | |||
229 | |||
230 | short ansi_first_char; |
||
231 | short ansi_last_char; |
||
232 | char **cp437_translation_table; |
||
233 | short cp437_first_char; |
||
234 | short cp437_last_char; |
||
235 | char **cp850_translation_table; |
||
236 | short cp850_first_char; |
||
237 | short cp850_last_char; |
||
238 | char **mac_translation_table; |
||
239 | short mac_first_char; |
||
240 | short mac_last_char; |
||
241 | |||
242 | |||
243 | } |
||
244 | OutputPersonality; |
||
245 | |||
246 | |||
247 | |||
248 | extern void op_free (OutputPersonality*); |
||
249 | extern char* op_translate_char (OutputPersonality*,int,int); |
||
250 | |||
251 | |||
252 | extern void op_end_std_fontsize (OutputPersonality*, int); |
||
253 | |||
254 | |||
255 | |||
256 | #endif |
||
257 |