From: pmasoudi Date: Tue, 9 Sep 2003 16:21:25 +0000 (+0000) Subject: snapshot X-Git-Tag: v0_0_1~9 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=4d6c4a7262efde3ffa94e3d62307b517b6d83924;hp=e446d5f0746b4f3edc1b9742888410af310d815e;p=helm.git snapshot --- diff --git a/helm/gtkmathview-bonobo/src/Makefile.am b/helm/gtkmathview-bonobo/src/Makefile.am index 4de86a0b7..e856b6f53 100644 --- a/helm/gtkmathview-bonobo/src/Makefile.am +++ b/helm/gtkmathview-bonobo/src/Makefile.am @@ -8,12 +8,12 @@ CLEANFILES = $(server_in_files:.server.in.in=.server) IDL = $(top_srcdir)/idl/GtkMathView.idl IDL_GENERATED_C = \ - GNOME_GtkMathView_View-common.c \ - GNOME_GtkMathView_View-skels.c \ - GNOME_GtkMathView_View-stubs.c + GtkMathView-common.c \ + GtkMathView-skels.c \ + GtkMathView-stubs.c IDL_GENERATED_H = \ - GNOME_GtkMathView_View.h + GtkMathView.h IDL_GENERATED = $(IDL_GENERATED_C) $(IDL_GENERATED_H) diff --git a/helm/gtkmathview-bonobo/src/view.c b/helm/gtkmathview-bonobo/src/view.c index 95848730f..9f7451f40 100644 --- a/helm/gtkmathview-bonobo/src/view.c +++ b/helm/gtkmathview-bonobo/src/view.c @@ -11,6 +11,7 @@ view_object_finalize(GObject* object) View* view = VIEW(object); /* free resources */ view_parent_class->finalize(object); + return; } static void @@ -19,6 +20,7 @@ impl_view_freeze(PortableServer_Servant servant, { View* view = VIEW (bonobo_object (servant)); gtk_math_view_freeze(view->control_data->math_view); + return; } static void @@ -27,6 +29,7 @@ impl_view_thaw(PortableServer_Servant servant, { View* view = VIEW (bonobo_object (servant)); gtk_math_view_thaw(view->control_data->math_view); + return; } static void @@ -36,6 +39,152 @@ impl_view_load(PortableServer_Servant servant, { 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 @@ -49,6 +198,24 @@ view_class_init(ViewClass* klass) 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 diff --git a/helm/gtkmathview-bonobo/src/view.h b/helm/gtkmathview-bonobo/src/view.h index 9116a3c98..a652726ad 100644 --- a/helm/gtkmathview-bonobo/src/view.h +++ b/helm/gtkmathview-bonobo/src/view.h @@ -4,7 +4,7 @@ #include -#include "GNOME_GtkMathView_View.h" +#include "GtkMathView.h" #include "control-data.h" #define VIEW_TYPE (view_get_type()) diff --git a/helm/gtkmathview-bonobo/test/Makefile.am b/helm/gtkmathview-bonobo/test/Makefile.am index 3336948ff..204ae3dfc 100644 --- a/helm/gtkmathview-bonobo/test/Makefile.am +++ b/helm/gtkmathview-bonobo/test/Makefile.am @@ -3,8 +3,8 @@ noinst_PROGRAMS = viewer viewer_SOURCES = \ main.c \ - $(top_srcdir)/src/GNOME_GtkMathView_View-common.c \ - $(top_srcdir)/src/GNOME_GtkMathView_View-stubs.c + $(top_srcdir)/src/GtkMathView-common.c \ + $(top_srcdir)/src/GtkMathView-stubs.c viewer_LDADD = \ $(BONOBOUI_LIBS) \ diff --git a/helm/gtkmathview-bonobo/test/main.c b/helm/gtkmathview-bonobo/test/main.c index 84aa7cae1..0986fdd71 100644 --- a/helm/gtkmathview-bonobo/test/main.c +++ b/helm/gtkmathview-bonobo/test/main.c @@ -4,7 +4,7 @@ #include #include "control-factory.h" -#include "GNOME_GtkMathView_View.h" +#include "GtkMathView.h" static GtkWidget *control;