GnomeEmbeddable

Name

GnomeEmbeddable —

Synopsis



#define     GNOME_EMBEDDABLE_TYPE
GnomeView*  (*GnomeViewFactory)             (GnomeEmbeddable *bonobo_object,
                                             const GNOME_ViewFrame view_frame,
                                             void *closure);
GnomeEmbeddable* gnome_embeddable_new       (GnomeViewFactory factory,
                                             void *data);
GnomeEmbeddable* gnome_embeddable_construct (GnomeEmbeddable *bonobo_object,
                                             GNOME_Embeddable corba_bonobo_object,
                                             GnomeViewFactory factory,
                                             void *data);
void        gnome_embeddable_add_verb       (GnomeEmbeddable *bonobo_object,
                                             const char *verb_name);
void        gnome_embeddable_add_verbs      (GnomeEmbeddable *bonobo_object,
                                             const char **verb_list);
void        gnome_embeddable_remove_verb    (GnomeEmbeddable *bonobo_object,
                                             const char *verb_name);
void        gnome_embeddable_set_view_factory
                                            (GnomeEmbeddable *bonobo_object,
                                             GnomeViewFactory factory,
                                             void *data);

Description

Details

GNOME_EMBEDDABLE_TYPE

#define GNOME_EMBEDDABLE_TYPE        (gnome_embeddable_get_type ())


GnomeViewFactory ()

GnomeView*  (*GnomeViewFactory)             (GnomeEmbeddable *bonobo_object,
                                             const GNOME_ViewFrame view_frame,
                                             void *closure);

bonobo_object : 
view_frame : 
closure : 
Returns : 


gnome_embeddable_new ()

GnomeEmbeddable* gnome_embeddable_new       (GnomeViewFactory factory,
                                             void *data);

This routine creates a GNOME::Embeddable CORBA server and activates it. The factory routine will be invoked by this CORBA server when a request arrives to get a new view of the embeddable (embeddable should be able to provide multiple views of themselves upon demand). The data pointer is passed to this factory routine untouched to allow the factory to get some context on what it should create.

factory : Factory routine that provides new views of the embeddable on demand
data : pointer passed to the factory routine to provide context.
Returns :a GnomeEmbeddable that contains an activated GNOME::Embeddable CORBA server.


gnome_embeddable_construct ()

GnomeEmbeddable* gnome_embeddable_construct (GnomeEmbeddable *bonobo_object,
                                             GNOME_Embeddable corba_bonobo_object,
                                             GnomeViewFactory factory,
                                             void *data);

This routine constructs a GNOME::Embeddable CORBA server and activates it. The factory routine will be invoked by this CORBA server when a request arrives to get a new view of the embeddable (embeddable should be able to provide multiple views of themselves upon demand). The data pointer is passed to this factory routine untouched to allow the factory to get some context on what it should create.

bonobo_object : 
corba_bonobo_object : 
factory : Factory routine that provides new views of the embeddable on demand
data : pointer passed to the factory routine to provide context.
Returns : The constructed object.


gnome_embeddable_add_verb ()

void        gnome_embeddable_add_verb       (GnomeEmbeddable *bonobo_object,
                                             const char *verb_name);

This routine adds verb_name to the list of verbs supported by this component.

bonobo_object : 
verb_name : A verb string


gnome_embeddable_add_verbs ()

void        gnome_embeddable_add_verbs      (GnomeEmbeddable *bonobo_object,
                                             const char **verb_list);

This routine adds the list of verbs in the NULL terminated array in verbs to the exported verbs for the component.

bonobo_object : 
verb_list : 


gnome_embeddable_remove_verb ()

void        gnome_embeddable_remove_verb    (GnomeEmbeddable *bonobo_object,
                                             const char *verb_name);

This routine removes the verb called verb_name from the list of exported verbs for this embeddable object

bonobo_object : 
verb_name : a verb name


gnome_embeddable_set_view_factory ()

void        gnome_embeddable_set_view_factory
                                            (GnomeEmbeddable *bonobo_object,
                                             GnomeViewFactory factory,
                                             void *data);

This routine defines the view factory for this embeddable component. When a container requires a view, the routine specified in factory will be invoked to create a new GnomeView object to satisfy this request.

bonobo_object : 
factory : A pointer to a function that can provide GnomeView objects on demand.
data : data to pass to the factory function.