View* view = VIEW(object);
/* free resources */
view_parent_class->finalize(object);
+ return;
}
static void
{
View* view = VIEW (bonobo_object (servant));
gtk_math_view_freeze(view->control_data->math_view);
+ return;
}
static void
{
View* view = VIEW (bonobo_object (servant));
gtk_math_view_thaw(view->control_data->math_view);
+ return;
}
static void
{
View* view = VIEW (bonobo_object (servant));
gtk_math_view_load_uri(view->control_data->math_view, uri);
+ return;
+}
+
+static void
+impl_view_unload(PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_unload(view->control_data->math_view);
+ return;
+}
+
+static void
+impl_view_setIdAttribute (PortableServer_Servant servant,
+ const CORBA_char *ns,
+ const CORBA_char *name,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+
+static void
+impl_view_getIdAttribute (PortableServer_Servant servant,
+ CORBA_char *ns,
+ CORBA_char *name,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static void
+impl_view_select(PortableServer_Servant servant,
+ //in element_id elem,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static void
+impl_view_unselect(PortableServer_Servant servant,
+ //in element_id elem,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static CORBA_boolean
+impl_view_isSelected(PortableServer_Servant servant,
+ //in element_id elem,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static CORBA_boolean
+impl_view_elementBoundingBox(PortableServer_Servant servant,
+ //in element_id elem,
+ CORBA_short *x,CORBA_short *y,
+ CORBA_short *width,CORBA_short *height,
+ CORBA_short *depth,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static void
+impl_view_getBoundingBox(PortableServer_Servant servant,
+ CORBA_short *width,
+ CORBA_short *height,
+ CORBA_short *depth,
+ CORBA_Environment *ev)
+{
+ return;
+}
+
+static void
+impl_view_getSize(PortableServer_Servant servant,
+ CORBA_short *width,CORBA_short *height,
+ CORBA_short *totalWidth,CORBA_short *totalHeight,
+ CORBA_Environment *ev)
+{
+ //View* view = VIEW (bonobo_object (servant));
+ //gtk_math_view_get_top(view->control_data->math_view,x,y);
+
+ return;
+}
+
+static void
+impl_view_getTop(PortableServer_Servant servant,
+ CORBA_short *x,CORBA_short *y,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_get_top(view->control_data->math_view,x,y);
+ return;
+}
+
+static void
+impl_view_setTop (PortableServer_Servant servant,
+ const CORBA_short x,const CORBA_short y,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_set_top(view->control_data->math_view,x,y);
+ return;
+}
+
+static void
+impl_view_setDefaultFontSize(PortableServer_Servant servant,
+ const CORBA_short size,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_set_font_size(view->control_data->math_view,size);
+ return;
+}
+
+static short
+impl_view_getDefaultFontSize(PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ short int ris;
+ View* view = VIEW (bonobo_object (servant));
+ ris = gtk_math_view_get_font_size(view->control_data->math_view);
+ return ris;
+}
+
+static void
+impl_view_setVerbosity(PortableServer_Servant servant,
+ const CORBA_short level,
+ CORBA_Environment *ev)
+{
+ View* view = VIEW (bonobo_object (servant));
+ gtk_math_view_set_log_verbosity(view->control_data->math_view,level);
+ return;
+}
+
+static short
+impl_view_getVerbosity(PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ short int ris;
+ View* view = VIEW (bonobo_object (servant));
+ ris = gtk_math_view_get_log_verbosity(view->control_data->math_view);
+ return ris;
}
static void
epv->freeze = impl_view_freeze;
epv->thaw = impl_view_thaw;
+ epv->load = impl_view_load;
+ epv->unload = impl_view_unload;
+ epv->setIdAttribute = impl_view_setIdAttribute;
+ epv->getIdAttribute = impl_view_getIdAttribute;
+ epv->select = impl_view_select;
+ epv->unselect = impl_view_unselect;
+ epv->isSelected = impl_view_isSelected;
+ epv->elementBoundingBox = impl_view_elementBoundingBox;
+ epv->getBoundingBox = impl_view_getBoundingBox;
+ epv->getSize = impl_view_getSize;
+ epv->getTop = impl_view_getTop;
+ epv->setTop = impl_view_setTop;
+ epv->setDefaultFontSize = impl_view_setDefaultFontSize;
+ epv->getDefaultFontSize = impl_view_getDefaultFontSize;
+ epv->setVerbosity = impl_view_setVerbosity;
+ epv->getVerbosity = impl_view_getVerbosity;
+
+ return;
}
static void