Skip to content
Newer
Older
100644 68 lines (62 sloc) 1.98 KB
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 /* display2.h */
2 /* Copyright 1995 by Steve Kirkendall */
3
4
5 struct dispmode_s
6 {
7 char *name;
8 char *desc;
9 BOOLEAN canopt;
10 BOOLEAN wordwrap;
11 int nwinopts;
12 OPTDESC *winoptd;
13 int nglobopts;
14 OPTDESC *globoptd;
15 OPTVAL *globoptv;
16 DMINFO *(*init) P_((WINDOW win));
17 void (*term) P_((DMINFO *info));
18 long (*mark2col) P_((WINDOW w, MARK mark, BOOLEAN cmd));
19 MARK (*move) P_((WINDOW w, MARK from, long linedelta, long column, BOOLEAN cmd));
20 MARK (*wordmove) P_((MARK from, long count, BOOLEAN backward, BOOLEAN whitespace));
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
21 MARK (*setup) P_((WINDOW w, MARK top, long cursor, MARK bottom, DMINFO *info));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
22 MARK (*image) P_((WINDOW w, MARK line, DMINFO *info,
23 void (*draw)(CHAR *p, long qty, _char_ font, long offset)));
24 void (*header) P_((WINDOW w, int pagenum, DMINFO *info,
25 void (*draw)(CHAR *p, long qty, _char_ font, long offset)));
26 void (*indent) P_((WINDOW w, MARK line, long linedelta));
27 CHAR *(*tagatcursor) P_((WINDOW win, MARK cursor));
28 MARK (*tagload) P_((CHAR *tagname, MARK from));
29 MARK (*tagnext) P_((MARK cursor));
30 };
31
32 extern DISPMODE dmnormal;
33 #ifdef DISPLAY_HEX
34 extern DISPMODE dmhex;
35 #endif
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
36 #ifdef DISPLAY_HTML
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
37 extern DISPMODE dmhtml;
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
38 #endif
39 #ifdef DISPLAY_MAN
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
40 extern DISPMODE dmman;
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
41 #endif
42 #ifdef DISPLAY_TEX
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
43 extern DISPMODE dmtex;
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
44 #endif
45 #ifdef DISPLAY_SYNTAX
46 extern DISPMODE dmsyntax;
47 #endif
48 extern DISPMODE *allmodes[];
49
50 BEGIN_EXTERNC
51 extern void displist P_((WINDOW win));
52 extern BOOLEAN dispset P_((WINDOW win, char *newmode));
53 extern void dispinit P_((BOOLEAN before));
54 extern void dispoptions P_((DISPMODE *mode, DMINFO *info));
55 extern MARK dispmove P_((WINDOW win, long linedelta, long wantcol));
56 extern long dispmark2col P_((WINDOW win));
57 extern void dispindent P_((WINDOW w, MARK line, long linedelta));
58
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
59 #ifdef DISPLAY_ANYMARKUP
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
60 extern void dmmuadjust P_((MARK from, MARK to, long delta));
61 #endif
62 #ifdef DISPLAY_SYNTAX
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
63 extern CHAR *dmsknown P_((char *filename));
64 extern CHAR dmspreprocessor P_((WINDOW win));
65 extern BOOLEAN dmskeyword P_((WINDOW win, CHAR *word));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
66 #endif
67 END_EXTERNC
Something went wrong with that request. Please try again.