12 y : int; (* first row *)
13 x : int; (* first column *)
14 rf: int; (* finite rows *)
15 cf: int; (* finite columns *)
16 ri: int; (* infinite rows *)
17 ci: int; (* infinite columns *)
18 p : bool option; (* parent kind *)
28 type text = Plain of string
29 | Link of absolute * string * string
31 type key = Text of text list
35 tn: anchor; (* named anchor *)
36 mutable tc: css; (* css classes *)
37 mutable tu: uri; (* uri *)
38 mutable tx: ext; (* uri extension *)
39 mutable ts: size; (* dimension *)
40 tb: border; (* border *)
41 te: entry; (* contents *)
42 ti: int; (* table identifier *)
45 and entry = Key of key
46 | Line of bool * table list (* true for a row *)
49 let current = ref 0 in
50 fun () -> incr current; !current
53 y = 0; x = 0; rf = 0; cf = 0; ri = 0; ci = 0; p = None;
57 n = b; s = b; e = b; w = b;
60 let mk_key k tc tu tx tn = {
61 ts = no_size; tb = border false; te = Key k;
62 tc = tc; tu = tu; tx = tx; tn = tn;
66 let mk_line b tl tc tu tx tn = {
67 ts = no_size; tb = border b; te = Line (b, tl);
68 tc = tc; tu = tu; tx = tx; tn = tn;