![]() |
![]() |
![]() |
GOffice Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
GOPluginService; GOPluginServiceClass; GOPluginServiceGObjectLoaderClass; GType (*GOPluginServiceCreate) (void
); GOPluginServiceFileOpener; GOPluginServiceFileOpenerCallbacks; GOPluginServiceFileSaver; GOPluginServiceFileSaverCallbacks; GOPluginServiceGObjectLoader; GOPluginServiceGeneral; GOPluginServiceGeneralCallbacks; GOPluginServicePluginLoader; GOPluginServicePluginLoaderCallbacks; GOPluginServiceSimple; void go_plugin_service_activate (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_deactivate (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_define (char const *type_str
,GOPluginServiceCreate ctor
); gpointer go_plugin_service_get_cbs (GOPluginService *service
); char const * go_plugin_service_get_description (GOPluginService *service
); char const * go_plugin_service_get_id (const GOPluginService *service
); GOPlugin * go_plugin_service_get_plugin (GOPluginService *service
); void go_plugin_service_load (GOPluginService *service
,GOErrorInfo **ret_error
); GOPluginService * go_plugin_service_new (GOPlugin *plugin
,xmlNode *tree
,GOErrorInfo **ret_error
); GType go_plugin_service_plugin_loader_generate_type (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_unload (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_services_shutdown (void
);
GObject +----GOPluginService +----GOPluginServiceFileOpener +----GOPluginServiceFileSaver +----GOPluginServiceGeneral +----GOPluginServiceSimple +----GOPluginServicePluginLoader +----GOPluginServiceResource
GObject +----GOPluginService +----GOPluginServiceFileOpener
GObject +----GOPluginService +----GOPluginServiceFileSaver
GObject +----GOPluginService +----GOPluginServiceSimple +----GOPluginServiceGObjectLoader
GObject +----GOPluginService +----GOPluginServiceGeneral
GObject +----GOPluginService +----GOPluginServicePluginLoader
GObject +----GOPluginService +----GOPluginServiceSimple +----GOPluginServiceGObjectLoader
typedef struct { GObjectClass g_object_class; void (*read_xml) (GOPluginService *service, xmlNode *tree, GOErrorInfo **ret_error); void (*activate) (GOPluginService *service, GOErrorInfo **ret_error); void (*deactivate) (GOPluginService *service, GOErrorInfo **ret_error); char *(*get_description) (GOPluginService *service); } GOPluginServiceClass;
GObjectClass |
|
read XML node containing the service description. | |
actviates the service. | |
deactivates the service. | |
gets the service description. |
typedef struct { GOPluginServiceClass plugin_service_class; GHashTable *pending; /* has service instances by type names */ } GOPluginServiceGObjectLoaderClass;
GOPluginServiceClass |
parent class. |
GHashTable * |
has service instances by type names. |
typedef struct { /* plugin_func_file_probe may be NULL */ gboolean (*plugin_func_file_probe) ( GOFileOpener const *fo, GOPluginService *service, GsfInput *input, GOFileProbeLevel pl); void (*plugin_func_file_open) ( GOFileOpener const *fo, GOPluginService *service, GOIOContext *io_context, GoView *view, GsfInput *input, char const *enc); } GOPluginServiceFileOpenerCallbacks;
probes the file, may be NULL .
|
|
opens and reads the file. |
typedef struct { void (*plugin_func_file_save) ( GOFileSaver const *fs, GOPluginService *service, GOIOContext *io_context, GoView const *view, GsfOutput *output); } GOPluginServiceFileSaverCallbacks;
typedef struct _GOPluginServiceGObjectLoader GOPluginServiceGObjectLoader;
typedef struct { void (*plugin_func_init) (GOPluginService *service, GOErrorInfo **ret_error); void (*plugin_func_cleanup) (GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServiceGeneralCallbacks;
typedef struct _GOPluginServicePluginLoader GOPluginServicePluginLoader;
typedef struct { GType (*plugin_func_get_loader_type) ( GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServicePluginLoaderCallbacks;
returns a GType for a function loader. Used by gnumeric in the Python and Perl plugins. |
void go_plugin_service_activate (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
void go_plugin_service_deactivate (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
void go_plugin_service_define (char const *type_str
,GOPluginServiceCreate ctor
);
Allow the definition of new service types
|
char const * |
|
GOPluginServiceCreate. [scope async] |
gpointer go_plugin_service_get_cbs (GOPluginService *service
);
|
GOPluginService |
Returns : |
the callbacks for the service. [transfer none] |
char const * go_plugin_service_get_description (GOPluginService *service
);
|
|
Returns : |
char const * go_plugin_service_get_id (const GOPluginService *service
);
|
|
Returns : |
GOPlugin * go_plugin_service_get_plugin (GOPluginService *service
);
|
GOPluginService |
Returns : |
the plugin offering service . [transfer none]
|
void go_plugin_service_load (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
GOPluginService * go_plugin_service_new (GOPlugin *plugin
,xmlNode *tree
,GOErrorInfo **ret_error
);
|
|
|
|
|
|
Returns : |
GType go_plugin_service_plugin_loader_generate_type (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
|
Returns : |
void go_plugin_service_unload (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|