4 * Author: Teemu Rantanen <tvr@cs.hut.fi>
5 * Copyright (c) 1992 Teemu Rantanen
8 * Created: Wed Feb 26 15:57:03 1992 tvr
9 * Last modified: Mon Apr 27 23:55:47 1992 tvr
15 * Maximum Htext object data size
18 #define HTEXT_MAX_OBJECT_SIZE 1024
21 * Region changes on hypertext
23 #define HTEXT_PARAGRAPH 1
25 #define HTEXT_NEWLINE 3
26 #define HTEXT_CONTINUE 4
30 * Hypertext object structure.
33 typedef struct HTextObject
36 * Pointers to next and previous objects
39 struct HTextObject *prev;
40 struct HTextObject *next;
43 * All Hypertext specific fields here
47 * If object is an anchor, have anchordata here
49 HTChildAnchor *anchor;
52 * Style of this object.
57 * what data on this object
67 * Marks paragraph change at the end of this object
72 * All Xl specific data here
76 * Position of an object on a virtual screen. These will be set when
77 * object is being positioned.
83 * Size of an object. These are calculated once (as these does
90 * Xl specific data of this object
92 struct XlObjectData *xl_data;
97 * Hypertext structure of a page
103 * First and last hypertext objects
106 struct HTextObject *first;
107 struct HTextObject *last;
110 * Node anchor of this page
112 HTParentAnchor *node_anchor;
115 * Xl specific global data for a page
117 struct XlGlobalData *xl_global;
122 struct HTextAnchor *anchorlist;
125 * Cursor object of this page
127 struct HTextObject *cursor;
133 * HREF pointer list on a page
135 typedef struct HTextAnchor
140 struct HTextAnchor *next;
145 HTChildAnchor *anchor;
148 * To which hypertextobject is this connected to
150 struct HTextObject *object;
159 HText_t *HtDuplicate (HText_t * text);