-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSGMLHyper.h
85 lines (68 loc) · 2.67 KB
/
SGMLHyper.h
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
/*==================================================================*/
/* */
/* SGMLHyperWidget */
/* */
/* B.Raoult (mab@ecmwf.co.uk) Oct.91 */
/* T.Johnson - added SGML facilities June.92 */
/* (Tony Johnson) */
/* */
/* Hyper text like widget. */
/* */
/*==================================================================*/
#ifndef SGMLHYPER_H
#define SGMLHYPER_H
/*
If you define MOTIF, the widget will inherit proprieties
from the XmManager class : Help Callback, user data, ...
*/
/*
#define MOTIF
*/
extern WidgetClass sGMLHyperWidgetClass;
typedef struct _SGMLHyperRec * SGMLHyperWidget;
/*
* Define resource strings for the Hyper widget.
*/
#define SGMLNzoomEffect "zoomEffect"
#define SGMLCZoom "Zoom"
#define SGMLNopenTag "openTag"
#define SGMLNcloseTag "closeTag"
#define SGMLNendTag "endTag"
#define SGMLNparameterTag "parameterTag"
#define SGMLCTagChar "TagChar"
#define SGMLNzoomSpeed "zoomSpeed"
#define SGMLCZoomSpeed "ZoomSpeed"
#define SGMLNcacheSize "cacheSize"
#define SGMLCCacheSize "CacheSize"
#define SGMLNmargin "margin"
#define SGMLNnaturalWidth "naturalWidth"
#define SGMLCWidth "Width"
#define SGMLNcaseSensitiveTags "caseSensitiveTags"
#define SGMLCCaseSensitiveTags "CaseSensitiveTags"
/*
Callback structure
*/
#define SGMLHYPER_REASON 1
typedef struct {
int reason; /* always = SGMLHYPER_REASON */
XEvent *event; /* event */
char *text; /* pointer on highlighted text selected (read only) */
int length; /* length of selected text */
char *hidden; /* pointer to hidden text */
int hidden_length;
} SGMLHyperCallbackStruct;
Widget CreateSGMLHyper();
Widget SGMLHyperLoadFile();
Widget SGMLHyperSetText();
Widget SGMLHyperLoadText();
#ifdef _NO_PROTO
void SGMLHyperSetTags();
char *SGMLHyperGetText();
void SGMLHyperDeclareClass();
#else
void SGMLHyperSetTags();
char *SGMLHyperGetText();
void SGMLHyperDeclareClass();
#endif
#define SGMLIsHyper(w) XtIsSubclass(w,sGMLHyperWidgetClass)
#endif SGMLHYPER_H