1 (* Copyright (C) 2000, Luca Padovani <luca.padovani@cs.unibo.it>.
3 * This file is part of lablgtkmathview, the Ocaml binding
4 * for the GtkMathView widget.
6 * lablgtkmathview is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * lablgtkmathview is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with lablgtkmathview; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * For details, send a mail to the author.
23 exception ErrorLoadingFile of string
24 exception ErrorWritingFile of string
25 exception ErrorLoadingDOM
28 class math_view_signals :
29 ([> `container | `widget | `base | `math_view] as 'b) Gtk.obj ->
31 inherit GContainer.container_signals
33 method clicked : callback:(Gdome.element -> unit) -> GtkSignal.id
34 method element_changed :
35 callback:(Gdome.element option -> unit) -> GtkSignal.id
37 callback:(Gdome.element option -> Gdome.element option -> unit) -> GtkSignal.id
40 class math_view_skel :
41 (Gtk_mathview.math_view Gtk.obj as 'a)->
43 inherit GContainer.container
46 method export_to_postscript :
51 ?disable_colors:bool -> filename:string -> unit -> unit
52 method get_anti_aliasing : bool
53 method get_buffer : Gdk.pixmap
54 method get_font_manager_type : [ `font_manager_gtk | `font_manager_t1]
55 method get_font_size : int
56 method get_frame : GBin.frame
57 method get_hadjustment : GData.adjustment
58 method get_height : int
59 method get_log_verbosity : int
60 method get_top : int * int
61 method get_transparency : bool
62 method get_vadjustment : GData.adjustment
63 method get_width : int
64 method load_uri : filename:string -> unit
65 method load_doc : dom:Gdome.document -> unit
66 method set_adjustments : GData.adjustment -> GData.adjustment -> unit
67 method set_anti_aliasing : bool -> unit
68 method set_font_manager_type :
69 fm_type:[ `font_manager_gtk | `font_manager_t1] -> unit
70 method set_font_size : int -> unit
71 method set_log_verbosity : int -> unit
72 method select : Gdome.element -> unit
73 method unselect : Gdome.element -> unit
74 method is_selected : Gdome.element -> bool
75 method set_top : int -> int -> unit
76 method set_transparency : bool -> unit
82 Gtk_mathview.math_view Gtk.obj ->
84 inherit math_view_skel
85 method connect : math_view_signals
89 ?adjustmenth:GData.adjustment ->
90 ?adjustmentv:GData.adjustment ->
92 ?font_manager:[ `font_manager_gtk | `font_manager_t1] ->
96 ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> math_view