File: commands.h

package info (click to toggle)
udo 6.4.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,680 kB
  • sloc: ansic: 42,702; makefile: 81; cpp: 19
file content (237 lines) | stat: -rw-r--r-- 7,431 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/*	############################################################
	# @(#) commands.h: Kommando- und Platzhalterbezeichner
	# @(#)
	# @(#) Copyright (c) 1995-2001 by Dirk Hagedorn
	# @(#) Dirk Hagedorn (udo@dirk-hagedorn.de)
	#
	# This program is free software; you can redistribute it and/or
	# modify it under the terms of the GNU General Public License
	# as published by the Free Software Foundation; either version 2
	# of the License, or (at your option) any later version.
	# 
	# This program is distributed in the hope that it will be useful,
	# but WITHOUT ANY WARRANTY; without even the implied warranty of
	# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	# GNU General Public License for more details.
	# 
	# You should have received a copy of the GNU General Public License
	# along with this program; if not, write to the Free Software
	# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
	# 
	#
	# demnaechst ein Modul cmd.c anlegen, das die Strings
	# global zur Verfuegung stellt, um das Binary kleiner
	# zu halten und den Praeprozessor zu entlasten
	############################################################	*/

/*	--------------------------------------------------	*/
/*	Schriftumschaltungen								*/
/*	--------------------------------------------------	*/
#define	CMD_BOLD_ON				"(!B)"
#define	CMD_BOLD_OFF			"(!b)"
#define	CMD_ITALIC_ON			"(!I)"
#define	CMD_ITALIC_OFF			"(!i)"
#define	CMD_FOOT_ON				"(!N)"
#define	CMD_FOOT_OFF			"(!n)"
#define	CMD_TWRITER_ON			"(!T)"
#define	CMD_TWRITER_OFF			"(!t)"
#define	CMD_UNDER_ON			"(!U)"
#define	CMD_UNDER_OFF			"(!u)"
#define	CMD_VERB_ON				"(!V)"
#define	CMD_VERB_OFF			"(!v)"
#define	CMD_STYLELEN			4


/*	--------------------------------------------------	*/
/* Umgebungen */
/*	--------------------------------------------------	*/
#define CMD_BEGIN_APPENDIX		"!begin_appendix"
#define CMD_END_APPENDIX		"!end_appendix"

#define CMD_BEGIN_CENTER		"!begin_center"
#define CMD_END_CENTER			"!end_center"

#define CMD_BEGIN_RIGHT			"!begin_flushright"
#define CMD_END_RIGHT			"!end_flushright"

#define CMD_BEGIN_LEFT			"!begin_flushleft"
#define CMD_END_LEFT			"!end_flushleft"

#define CMD_BEGIN_DESCRIPTION	"!begin_description"
#define CMD_END_DESCRIPTION		"!end_description"

#define CMD_BEGIN_DOCUMENT		"!begin_document"
#define CMD_END_DOCUMENT		"!end_document"

#define CMD_BEGIN_ENUMERATE		"!begin_enumerate"
#define CMD_END_ENUMERATE		"!end_enumerate"

#define CMD_BEGIN_ITEMIZE		"!begin_itemize"
#define CMD_END_ITEMIZE			"!end_itemize"

#define CMD_BEGIN_QUOTE			"!begin_quote"
#define CMD_END_QUOTE			"!end_quote"

#define CMD_BEGIN_RAW			"!begin_raw"
#define CMD_END_RAW				"!end_raw"
#define CUT_BEGIN_RAW			"!br"
#define CUT_END_RAW				"!er"

#define CMD_BEGIN_TABLE			"!begin_table"
#define CMD_END_TABLE			"!end_table"
#define CUT_BEGIN_TABLE			"!bt"
#define CUT_END_TABLE			"!et"

#define CMD_BEGIN_VERBATIM		"!begin_verbatim"
#define CMD_END_VERBATIM		"!end_verbatim"
#define CUT_BEGIN_VERBATIM		"!bv"
#define CUT_END_VERBATIM		"!ev"

#define CMD_BEGIN_SOURCECODE	"!begin_sourcecode"
#define CMD_END_SOURCECODE		"!end_sourcecode"

#define CMD_BEGIN_COMMENT		"!begin_comment"
#define CMD_END_COMMENT			"!end_comment"

#define CMD_BEGIN_LINEDRAW		"!begin_linedraw"
#define CMD_END_LINEDRAW		"!end_linedraw"

#define CMD_BEGIN_PREFORMATTED	"!begin_preformatted"
#define CMD_END_PREFORMATTED	"!end_preformatted"

#define CMD_BEGIN_XLIST			"!begin_xlist"
#define CMD_END_XLIST			"!end_xlist"

#define CMD_BEGIN_BLIST			"!begin_blist"
#define CMD_END_BLIST			"!end_blist"

#define CMD_BEGIN_ILIST			"!begin_ilist"
#define CMD_END_ILIST			"!end_ilist"

#define CMD_BEGIN_TLIST			"!begin_tlist"
#define CMD_END_TLIST			"!end_tlist"

/*	--------------------------------------------------	*/
/*	Platzhalter (ohne !)								*/
/*	--------------------------------------------------	*/
#define CMD_IDX					"idx"



/*	--------------------------------------------------	*/
/*	Kapitel und Ueberschriften							*/
/*	--------------------------------------------------	*/
#define CMD_HEADING				"!heading"
#define CMD_SUBHEADING			"!subheading"
#define CMD_SUBSUBHEADING		"!subsubheading"
#define CMD_SUBSUBSUBHEADING	"!subsubsubheading"

/*	--------------------------------------------------	*/
/*	Sonstiges, alphabetisch sortiert					*/
/*	--------------------------------------------------	*/
#define CMD_ALIAS				"!alias"
#define CMD_AUTOREF				"!autoref"
#define CMD_AUTOREF_ITEMS		"!autoref_items"
#define CMD_BREAK				"!break"
#define CMD_DEFINE				"!define"
#define CMD_HYPHEN				"!hyphen"
#define CMD_INDEX				"!index"
#define CMD_KEYWORD				"!keyword"
#define CMD_LABEL				"!label"
#define CMD_MACRO				"!macro"
#define CMD_SET					"!set"
#define CMD_UNSET				"!unset"
#define CMD_UNIVERSAL_CHARSET	"!universal_charset"
#define CMD_VERBATIMSIZE		"!verbatimsize"
#define CMD_LINEDRAWSIZE		"!linedrawsize"
#define CMD_RTF_KEEP_TABLES		"!rtf_keep_tables"


/*	--------------------------------------------------	*/
/*	HTML-Kommandos										*/
/*	--------------------------------------------------	*/

#define	HTML_BR			"<br>"
#define	HTML_HR			"<hr>"
#define	HTML_CENTER_ON	"<p align=center>"
#define	HTML_CENTER_OFF	"</p>"

#if 0

#define	html_bq_on		"<blockquote>"
#define	html_bq_off		"</blockquote>"
#define	html_ul_on		"<ul>"
#define	html_ul_off		"</ul>"
#define	html_html_on	"<html>"
#define	html_html_off	"</html>"
#define	html_title_on	"<title>"
#define	html_title_off	"</title>"
#define	html_head_on	"<head>"
#define	html_head_off	"</head>"
#define	html_body_on	"<body>"
#define	html_body_off	"</body>"

#define	html_italic_on	"<i>"
#define	html_italic_off	"</i>"
#define	html_bold_on	"<b>"
#define	html_bold_off	"</b>"
#define	html_pre_on		"<pre>"
#define	html_pre_off	"</pre>"

#endif

/*	--------------------------------------------------	*/
/*	RTF-Kommandos										*/
/*	--------------------------------------------------	*/

#define rtf_par       "\\par"
#define rtf_pard      "\\pard"
#define rtf_plain     "\\plain"

#define rtf_parpard   "\\par\\pard"
#define rtf_pardpar   "\\pard\\par"

#define rtf_pardplain "\\pard\\plain"
#define rtf_parplain  "\\par\\plain"

#define rtf_norm		"\\s1\\qj\\f0"
#define rtf_verb		"\\s2\\ql\\f1"

#define rtf_chapt		"\\s3\\ql\\b\\f0"
#define rtf_node1		"\\s4\\ql\\b\\f0\n\\li567\\fi-567"
#define rtf_node2		"\\s5\\ql\\b\\f0\\li907\\fi-907"
#define rtf_node3		"\\s6\\ql\\b\\f0\\li1134\\fi-1134"
#define rtf_node4		"\\s7\\ql\\b\\f0\\li1248\\fi-1248"

#define rtf_inv_chapt	"\\s8\\ql\\b\\f0"
#define rtf_inv_node1	"\\s9\\ql\\b\\f0"
#define rtf_inv_node2	"\\s10\\ql\\b\\f0"
#define rtf_inv_node3	"\\s11\\ql\\b\\f0"
#define rtf_inv_node4	"\\s12\\ql\\b\\f0"

#define rtf_linedraw	"\\s13\\ql\\f2"

/*	--------------------------------------------------	*/
/*	WinHelp-Kommandos									*/
/*	--------------------------------------------------	*/

#define win_text			"\\f0 "
#define win_verb			"\\f1 "
#define win_symb			"\\f2 "

#define win_verb_on			"{\\f1\\keep"
#define win_verb_off		"}\\pard"

#define win_browse			"+{\\footnote 00001:002}"


/*	--------------------------------------------------	*/
/*	Fuer Pure-C-Help									*/
/*	--------------------------------------------------	*/
#define	PCH_LINK			"\\#"


/*	############################################################
	# commands.h
	############################################################	*/