1 (* Copyright (C) 2000, HELM Team.
3 * This file is part of HELM, an Hypertextual, Electronic
4 * Library of Mathematics, developed at the Computer Science
5 * Department, University of Bologna, Italy.
7 * HELM is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * HELM is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with HELM; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * For details, see the HELM World-Wide-Web page,
23 * http://cs.unibo.it/helm/.
26 (*************************************************************************)
30 (* Andrea Asperti <asperti@cs.unibo.it> *)
33 (*************************************************************************)
40 | H of attr * ('expr box) list
41 | V of attr * ('expr box) list
42 | HV of attr * ('expr box) list
43 | HOV of attr * ('expr box) list
44 | Object of attr * 'expr
45 | Action of attr * ('expr box) list
47 and attr = (string option * string * string) list
49 val get_attr: 'a box -> attr
50 val set_attr: attr -> 'a box -> 'a box
52 val smallskip : 'expr box
54 val indent : 'expr box -> 'expr box
57 obj2xml:('a -> Xml.token Stream.t) -> 'a box ->
60 val map: ('a -> 'b) -> 'a box -> 'b box
64 ~obj2xml:('a -> Xml.token Stream.t) -> 'a box -> Xml.token Stream.t
67 val b_h: attr -> 'expr box list -> 'expr box
68 val b_v: attr -> 'expr box list -> 'expr box
69 val b_hv: attr -> 'expr box list -> 'expr box (** default indent and spacing *)
70 val b_hov: attr -> 'expr box list -> 'expr box (** default indent and spacing *)
71 val b_text: attr -> string -> 'expr box
72 val b_object: 'expr -> 'expr box
73 val b_indent: 'expr box -> 'expr box
74 val b_space: 'expr box
75 val b_kw: string -> 'expr box
76 val b_toggle: 'expr box list -> 'expr box (** action which toggle among items *)
78 val pp_attr: attr -> string