From: Luca Padovani Date: Mon, 8 Sep 2003 19:59:22 +0000 (+0000) Subject: * IDL file update (and renamed) X-Git-Tag: v0_0_1~14 X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=86cbebadef669ffb8a721e5bf15b77ed8bba3039 * IDL file update (and renamed) --- diff --git a/helm/gtkmathview-bonobo/idl/GNOME_GtkMathView_View.idl b/helm/gtkmathview-bonobo/idl/GNOME_GtkMathView_View.idl deleted file mode 100644 index b0142894a..000000000 --- a/helm/gtkmathview-bonobo/idl/GNOME_GtkMathView_View.idl +++ /dev/null @@ -1,83 +0,0 @@ - -#include - -module GNOME { - - module GtkMathView { - - typedef string element_id; - - interface View : Bonobo::Unknown { - - /** - * load: - * @uri: URI of a MathML document - * - * Loads the document at the specified URI in the component - * and displays it. If the load is successful returns @TRUE, - * @FALSE otherwise. - */ - boolean load (in string uri); - - /** - * unload: - * - * Unload any loaded document from the component - */ - void unload (); - - /** - * freeze: - * - * Freezes the component. Any modification to the document is - * not reflected by the view. - */ - void freeze (); - - /** - * thaw: - * - * Thaws the component. If the document was changed while the - * component was frozen, the view is updated. - */ - void thaw (); - - void setIdAttribute (in string ns, in string name); - void getIdAttribute (out string ns, out string name); - - void select (in element_id elem); - void unselect (in element_id elem); - boolean isSelected (in element_id elem); - - /** - * elementRectangle: - * @elem: ID of the element - * @x: x coordinate of the element - * @y: y coordinate of the element - * @width: width of the element - * @height: height of the element - * - * Returns the position and the size of the rectangle includes @elem - */ - boolean elementRectangle (in element_id elem, - out short x, out short y, - out short width, out short height); - - void getSize (out short width, out short height, - out short totalWidth, out short totalHeight); - - void getTop (out short x, out short y); - void setTop (in short x, in short y); - - void setDefaultFontSize (in short size); - short getDefaultFontSize (); - - void setVerbosity (in short level); - short getVerbosity (); - - }; - - }; - -}; - diff --git a/helm/gtkmathview-bonobo/idl/GtkMathView.idl b/helm/gtkmathview-bonobo/idl/GtkMathView.idl new file mode 100644 index 000000000..8c850f788 --- /dev/null +++ b/helm/gtkmathview-bonobo/idl/GtkMathView.idl @@ -0,0 +1,85 @@ + +#include + +module GNOME { + + module GtkMathView { + + typedef string element_id; + + interface View : Bonobo::Unknown { + + /** + * load: + * @uri: URI of a MathML document + * + * Loads the document at the specified URI in the component + * and displays it. If the load is successful returns @TRUE, + * @FALSE otherwise. + */ + boolean load (in string uri); + + /** + * unload: + * + * Unload any loaded document from the component + */ + void unload (); + + /** + * freeze: + * + * Freezes the component. Any modification to the document is + * not reflected by the view. + */ + void freeze (); + + /** + * thaw: + * + * Thaws the component. If the document was changed while the + * component was frozen, the view is updated. + */ + void thaw (); + + void setIdAttribute (in string ns, in string name); + void getIdAttribute (out string ns, out string name); + + void select (in element_id elem); + void unselect (in element_id elem); + boolean isSelected (in element_id elem); + + /** + * elementRectangle: + * @elem: ID of the element + * @x: x coordinate of the element + * @y: y coordinate of the element + * @width: width of the element + * @height: height of the element + * + * Returns the position and the size of the rectangle includes @elem + */ + boolean elementBoundingBox (in element_id elem, + out short x, out short y, + out short width, out short height, out short depth); + + void getBoundingBox (out short width, out short height, out short depth); + + void getSize (out short width, out short height, + out short totalWidth, out short totalHeight); + + void getTop (out short x, out short y); + void setTop (in short x, in short y); + + void setDefaultFontSize (in short size); + short getDefaultFontSize (); + + void setVerbosity (in short level); + short getVerbosity (); + + }; + + }; + +}; + diff --git a/helm/gtkmathview-bonobo/idl/Makefile.am b/helm/gtkmathview-bonobo/idl/Makefile.am index 1f5839309..14555d1e3 100644 --- a/helm/gtkmathview-bonobo/idl/Makefile.am +++ b/helm/gtkmathview-bonobo/idl/Makefile.am @@ -1,5 +1,5 @@ idldir = $(datadir)/idl/bonobo-2.0 -idl_DATA = GNOME_GtkMathView_View.idl +idl_DATA = GtkMathView.idl EXTRA_DIST = $(idl_DATA)