6 static GObjectClass* view_parent_class;
9 view_object_finalize(GObject* object)
11 View* view = VIEW(object);
13 view_parent_class->finalize(object);
18 impl_view_freeze(PortableServer_Servant servant,
19 CORBA_Environment *ev)
21 View* view = VIEW (bonobo_object (servant));
22 gtk_math_view_freeze(view->control_data->math_view);
27 impl_view_thaw(PortableServer_Servant servant,
28 CORBA_Environment *ev)
30 View* view = VIEW (bonobo_object (servant));
31 gtk_math_view_thaw(view->control_data->math_view);
36 impl_view_load(PortableServer_Servant servant,
37 const CORBA_char *uri,
38 CORBA_Environment *ev)
40 View* view = VIEW (bonobo_object (servant));
41 gtk_math_view_load_uri(view->control_data->math_view, uri);
46 impl_view_unload(PortableServer_Servant servant,
47 CORBA_Environment *ev)
49 View* view = VIEW (bonobo_object (servant));
50 gtk_math_view_unload(view->control_data->math_view);
55 impl_view_setIdAttribute (PortableServer_Servant servant,
57 const CORBA_char *name,
58 CORBA_Environment *ev)
65 impl_view_getIdAttribute (PortableServer_Servant servant,
68 CORBA_Environment *ev)
74 impl_view_select(PortableServer_Servant servant,
76 CORBA_Environment *ev)
82 impl_view_unselect(PortableServer_Servant servant,
84 CORBA_Environment *ev)
90 impl_view_isSelected(PortableServer_Servant servant,
92 CORBA_Environment *ev)
98 impl_view_elementBoundingBox(PortableServer_Servant servant,
100 CORBA_short *x,CORBA_short *y,
101 CORBA_short *width,CORBA_short *height,
103 CORBA_Environment *ev)
109 impl_view_getBoundingBox(PortableServer_Servant servant,
113 CORBA_Environment *ev)
119 impl_view_getSize(PortableServer_Servant servant,
120 CORBA_short *width,CORBA_short *height,
121 CORBA_short *totalWidth,CORBA_short *totalHeight,
122 CORBA_Environment *ev)
124 //View* view = VIEW (bonobo_object (servant));
125 //gtk_math_view_get_top(view->control_data->math_view,x,y);
131 impl_view_getTop(PortableServer_Servant servant,
132 CORBA_short *x,CORBA_short *y,
133 CORBA_Environment *ev)
135 View* view = VIEW (bonobo_object (servant));
136 gtk_math_view_get_top(view->control_data->math_view,x,y);
141 impl_view_setTop (PortableServer_Servant servant,
142 const CORBA_short x,const CORBA_short y,
143 CORBA_Environment *ev)
145 View* view = VIEW (bonobo_object (servant));
146 gtk_math_view_set_top(view->control_data->math_view,x,y);
151 impl_view_setDefaultFontSize(PortableServer_Servant servant,
152 const CORBA_short size,
153 CORBA_Environment *ev)
155 View* view = VIEW (bonobo_object (servant));
156 gtk_math_view_set_font_size(view->control_data->math_view,size);
161 impl_view_getDefaultFontSize(PortableServer_Servant servant,
162 CORBA_Environment *ev)
165 View* view = VIEW (bonobo_object (servant));
166 ris = gtk_math_view_get_font_size(view->control_data->math_view);
171 impl_view_setVerbosity(PortableServer_Servant servant,
172 const CORBA_short level,
173 CORBA_Environment *ev)
175 View* view = VIEW (bonobo_object (servant));
176 gtk_math_view_set_log_verbosity(view->control_data->math_view,level);
181 impl_view_getVerbosity(PortableServer_Servant servant,
182 CORBA_Environment *ev)
185 View* view = VIEW (bonobo_object (servant));
186 ris = gtk_math_view_get_log_verbosity(view->control_data->math_view);
191 view_class_init(ViewClass* klass)
193 GObjectClass* object_class = (GObjectClass *) klass;
194 POA_GNOME_GtkMathView_View__epv* epv = &klass->epv;
196 view_parent_class = g_type_class_peek_parent (klass);
197 object_class->finalize = view_object_finalize;
199 epv->freeze = impl_view_freeze;
200 epv->thaw = impl_view_thaw;
201 epv->load = impl_view_load;
202 epv->unload = impl_view_unload;
203 epv->setIdAttribute = impl_view_setIdAttribute;
204 epv->getIdAttribute = impl_view_getIdAttribute;
205 epv->select = impl_view_select;
206 epv->unselect = impl_view_unselect;
207 epv->isSelected = impl_view_isSelected;
208 epv->elementBoundingBox = impl_view_elementBoundingBox;
209 epv->getBoundingBox = impl_view_getBoundingBox;
210 epv->getSize = impl_view_getSize;
211 epv->getTop = impl_view_getTop;
212 epv->setTop = impl_view_setTop;
213 epv->setDefaultFontSize = impl_view_setDefaultFontSize;
214 epv->getDefaultFontSize = impl_view_getDefaultFontSize;
215 epv->setVerbosity = impl_view_setVerbosity;
216 epv->getVerbosity = impl_view_getVerbosity;
222 view_init(View* view)
224 /* do some initialization */
227 BONOBO_TYPE_FUNC_FULL (View, GNOME_GtkMathView_View, BONOBO_TYPE_OBJECT, view)
230 view_new(GtkMathViewControlData* control_data)
233 g_return_val_if_fail(control_data != NULL, NULL);
234 view = g_object_new(VIEW_TYPE, NULL);
235 view->control_data = control_data;