8 typedef string element_id;
10 interface View : Bonobo::Unknown {
14 * @uri: URI of a MathML document
16 * Loads the document at the specified URI in the component
17 * and displays it. If the load is successful returns @TRUE,
20 boolean load (in string uri);
25 * Unload any loaded document from the component
32 * Freezes the component. Any modification to the document is
33 * not reflected by the view.
40 * Thaws the component. If the document was changed while the
41 * component was frozen, the view is updated.
45 void setIdAttribute (in string ns, in string name);
46 void getIdAttribute (out string ns, out string name);
48 void select (in element_id elem);
49 void unselect (in element_id elem);
50 boolean isSelected (in element_id elem);
54 * @elem: ID of the element
55 * @x: x coordinate of the element
56 * @y: y coordinate of the element
57 * @width: width of the element
58 * @height: height of the element
60 * Returns the position and the size of the rectangle includes @elem
62 boolean elementRectangle (in element_id elem,
63 out short x, out short y,
64 out short width, out short height);
66 void getSize (out short width, out short height,
67 out short totalWidth, out short totalHeight);
69 void getTop (out short x, out short y);
70 void setTop (in short x, in short y);
72 void setDefaultFontSize (in short size);
73 short getDefaultFontSize ();
75 void setVerbosity (in short level);
76 short getVerbosity ();