-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSGMLHyperP.h
83 lines (66 loc) · 2.94 KB
/
SGMLHyperP.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
/*==================================================================*/
/* */
/* SGMLHyperWidget */
/* */
/* B.Raoult ([email protected]) Oct.91 */
/* T.Johnson - added SGML facilities June.92 */
/* (Tony Johnson) */
/* */
/* Hyper text like widget. */
/* */
/*==================================================================*/
#ifndef SGMLHYPERP_H
#define SGMLHYPERP_H
#include "SGMLHyper.h"
#ifdef MOTIF
#include <Xm/XmP.h>
#endif
/* SGMLHyper class : no new fields */
typedef struct _SGMLHyperClassPart{
int ignore;
} SGMLHyperClassPart;
typedef struct _SGMLHyperClassRec{
CoreClassPart core_class;
CompositeClassPart composite_class;
#ifdef MOTIF
XmManagerClassPart manager_class;
#endif
SGMLHyperClassPart sgml_hyper_class;
} SGMLHyperClassRec, *SGMLHyperWidgetClass;
extern SGMLHyperClassRec sGMLHyperClassRec;
typedef struct _SGMLHyperPart {
Cursor hand; /* Selecting cursor shape */
Boolean zoom; /* zoom effect when selected */
int speed; /* zoom speed */
char open_tag; /* start of highlighted text mark */
char close_tag; /* end of highlighted text mark */
char end_tag; /* character used to hide text in highlight */
char parameter_tag; /* parameter tag */
Boolean case_sensitive_tags; /* Case sensitive tags */
Widget managed;
int cache_size; /* maximum number of cached text segments */
Dimension margin; /* margins size */
Dimension natural_width; /* size it tries to fit text into */
/*
text_segment *grep_seg; /* segment where found text is *
*/
char *grep_txt; /* pointer to found text */
int grep_len; /* length of found text */
int grep_off; /* offset of found text */
Position grep_x; /* rectangle of found text*/
Position grep_y;
Dimension grep_width;
Dimension grep_height;
SGMLTextObject last_selected; /* last selected segment */
SGMLTextObject last_cursor; /* last under cursor segment */
XtCallbackList activate; /* callback list */
} SGMLHyperPart;
typedef struct _SGMLHyperRec {
CorePart core;
CompositePart composite;
#ifdef MOTIF
XmManagerPart manager;
#endif
SGMLHyperPart sgml_hyper;
} SGMLHyperRec;
#endif SGMLHYPERP_H