-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSGMLFormattedTextP.h
67 lines (47 loc) · 1.92 KB
/
SGMLFormattedTextP.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
/*==================================================================*/
/* */
/* SGMLFormattedTextObject */
/* */
/* T.Johnson - ([email protected]) June.92 */
/* */
/* Defines a text segment for the SGMLHyper widget */
/* */
/*==================================================================*/
#ifndef SGMLFORMATTEDTEXTP_H
#define SGMLFORMATTEDTEXTP_H
#include "SGMLFormattedText.h"
#include "SGMLTextP.h"
typedef struct _SGMLFormattedTextClassPart{
int ignore; /* no new class elements */
} SGMLFormattedTextClassPart;
typedef struct _SGMLFormattedTextClassRec{
ObjectClassPart object_class;
SGMLTextClassPart sgml_text_class;
SGMLFormattedTextClassPart sgml_formatted_text_class;
} SGMLFormattedTextClassRec, *SGMLFormattedTextObjectClass;
extern SGMLFormattedTextClassRec sGMLFormattedTextClassRec;
typedef struct _WordInfo {
char *word;
int length;
Dimension size;
} WordInfo;
typedef struct _LineInfo {
int start;
int stop;
int nchars;
Dimension size;
} LineInfo;
typedef struct _SGMLFormattedTextPart {
WordInfo *word_info;
LineInfo *line_info;
int nwords;
int nlines;
Dimension left_indent; /* left margin */
Dimension right_indent; /* right margin */
} SGMLFormattedTextPart;
typedef struct _SGMLFormattedTextRec {
ObjectPart object;
SGMLTextPart sgml_text;
SGMLFormattedTextPart sgml_formatted_text;
} SGMLFormattedTextRec;
#endif SGMLFORMATTEDTEXTP_H