Goffice Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
Synopsis
#define GO_TYPE_PLUGIN_SERVICE #define GO_PLUGIN_SERVICE (o) #define GO_IS_PLUGIN_SERVICE (o) GOPluginService; GOPluginServiceClass; GType go_plugin_service_get_type (void
); #define GO_TYPE_PLUGIN_SERVICE_GENERAL #define GO_PLUGIN_SERVICE_GENERAL (o) #define GO_IS_PLUGIN_SERVICE_GENERAL (o) GType go_plugin_service_general_get_type (void
); GOPluginServiceGeneral; GOPluginServiceGeneralCallbacks; #define GO_TYPE_PLUGIN_SERVICE_FILE_OPENER #define GO_PLUGIN_SERVICE_FILE_OPENER (o) #define GO_IS_PLUGIN_SERVICE_FILE_OPENER (o) GType go_plugin_service_file_opener_get_type (void
); GOPluginServiceFileOpener; GOPluginServiceFileOpenerCallbacks; #define GO_TYPE_PLUGIN_SERVICE_FILE_SAVER #define GO_PLUGIN_SERVICE_FILE_SAVER (o) #define GO_IS_PLUGIN_SERVICE_FILE_SAVER (o) GType go_plugin_service_file_saver_get_type (void
); GOPluginServiceFileSaver; GOPluginServiceFileSaverCallbacks; #define GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER #define GO_PLUGIN_SERVICE_PLUGIN_LOADER (o) #define GO_IS_PLUGIN_SERVICE_PLUGIN_LOADER (o) GType go_plugin_service_plugin_loader_get_type (void
); GOPluginServicePluginLoader; GOPluginServicePluginLoaderCallbacks; GType go_plugin_service_plugin_loader_generate_type (GOPluginService *service
,GOErrorInfo **ret_error
); #define GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER #define GO_PLUGIN_SERVICE_GOBJECT_LOADER (o) #define GO_IS_PLUGIN_SERVICE_GOBJECT_LOADER (o) GType go_plugin_service_gobject_loader_get_type (void
); GOPluginServiceGObjectLoader; GOPluginServiceGObjectLoaderClass; #define GO_TYPE_PLUGIN_SERVICE_SIMPLE #define GO_PLUGIN_SERVICE_SIMPLE (o) #define GO_IS_PLUGIN_SERVICE_SIMPLE (o) GType go_plugin_service_simple_get_type (void
); GOPluginServiceSimple; GOPluginServiceSimpleClass; GOPluginService * go_plugin_service_new (GOPlugin *plugin
,xmlNode *tree
,GOErrorInfo **ret_error
); char const * go_plugin_service_get_id (const GOPluginService *service
); char const * go_plugin_service_get_description (GOPluginService *service
); GOPlugin * go_plugin_service_get_plugin (GOPluginService *service
); gpointer go_plugin_service_get_cbs (GOPluginService *service
); void go_plugin_service_activate (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_deactivate (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_load (GOPluginService *service
,GOErrorInfo **ret_error
); void go_plugin_service_unload (GOPluginService *service
,GOErrorInfo **ret_error
); GType (*GOPluginServiceCreate) (void
); void go_plugin_services_shutdown (void
); void go_plugin_service_define (char const *type_str
,GOPluginServiceCreate ctor
);
Object Hierarchy
GObject +----GOPluginService +----GOPluginServiceFileOpener +----GOPluginServiceFileSaver +----GOPluginServiceGeneral +----GOPluginServiceSimple +----GOPluginServicePluginLoader
GObject +----GOPluginService +----GOPluginServiceGeneral
GObject +----GOPluginService +----GOPluginServiceFileOpener
GObject +----GOPluginService +----GOPluginServiceFileSaver
GObject +----GOPluginService +----GOPluginServicePluginLoader
GObject +----GOPluginService +----GOPluginServiceSimple +----GOPluginServiceGObjectLoader
GObject +----GOPluginService +----GOPluginServiceSimple +----GOPluginServiceGObjectLoader
Details
GO_PLUGIN_SERVICE()
#define GO_PLUGIN_SERVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE, GOPluginService))
|
GO_IS_PLUGIN_SERVICE()
#define GO_IS_PLUGIN_SERVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE))
|
GOPluginServiceClass
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;
GO_TYPE_PLUGIN_SERVICE_GENERAL
#define GO_TYPE_PLUGIN_SERVICE_GENERAL (go_plugin_service_general_get_type ())
GO_PLUGIN_SERVICE_GENERAL()
#define GO_PLUGIN_SERVICE_GENERAL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_GENERAL, GOPluginServiceGeneral))
|
GO_IS_PLUGIN_SERVICE_GENERAL()
#define GO_IS_PLUGIN_SERVICE_GENERAL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_GENERAL))
|
GOPluginServiceGeneralCallbacks
typedef struct { void (*plugin_func_init) (GOPluginService *service, GOErrorInfo **ret_error); void (*plugin_func_cleanup) (GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServiceGeneralCallbacks;
GO_TYPE_PLUGIN_SERVICE_FILE_OPENER
#define GO_TYPE_PLUGIN_SERVICE_FILE_OPENER (go_plugin_service_file_opener_get_type ())
GO_PLUGIN_SERVICE_FILE_OPENER()
#define GO_PLUGIN_SERVICE_FILE_OPENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_FILE_OPENER, GOPluginServiceFileOpener))
|
GO_IS_PLUGIN_SERVICE_FILE_OPENER()
#define GO_IS_PLUGIN_SERVICE_FILE_OPENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_FILE_OPENER))
|
go_plugin_service_file_opener_get_type ()
GType go_plugin_service_file_opener_get_type
(void
);
Returns : |
GOPluginServiceFileOpenerCallbacks
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, gpointer fixme_workbook_view, GsfInput *input); } GOPluginServiceFileOpenerCallbacks;
GO_TYPE_PLUGIN_SERVICE_FILE_SAVER
#define GO_TYPE_PLUGIN_SERVICE_FILE_SAVER (go_plugin_service_file_saver_get_type ())
GO_PLUGIN_SERVICE_FILE_SAVER()
#define GO_PLUGIN_SERVICE_FILE_SAVER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_FILE_SAVER, GOPluginServiceFileSaver))
|
GO_IS_PLUGIN_SERVICE_FILE_SAVER()
#define GO_IS_PLUGIN_SERVICE_FILE_SAVER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_FILE_SAVER))
|
go_plugin_service_file_saver_get_type ()
GType go_plugin_service_file_saver_get_type
(void
);
Returns : |
GOPluginServiceFileSaverCallbacks
typedef struct { void (*plugin_func_file_save) ( GOFileSaver const *fs, GOPluginService *service, GOIOContext *io_context, gconstpointer fixme_workbook_view, GsfOutput *output); } GOPluginServiceFileSaverCallbacks;
GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER
#define GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER (go_plugin_service_plugin_loader_get_type ())
GO_PLUGIN_SERVICE_PLUGIN_LOADER()
#define GO_PLUGIN_SERVICE_PLUGIN_LOADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER, GOPluginServicePluginLoader))
|
GO_IS_PLUGIN_SERVICE_PLUGIN_LOADER()
#define GO_IS_PLUGIN_SERVICE_PLUGIN_LOADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_PLUGIN_LOADER))
|
go_plugin_service_plugin_loader_get_type ()
GType go_plugin_service_plugin_loader_get_type
(void
);
Returns : |
GOPluginServicePluginLoader
typedef struct _GOPluginServicePluginLoader GOPluginServicePluginLoader;
GOPluginServicePluginLoaderCallbacks
typedef struct { GType (*plugin_func_get_loader_type) ( GOPluginService *service, GOErrorInfo **ret_error); } GOPluginServicePluginLoaderCallbacks;
go_plugin_service_plugin_loader_generate_type ()
GType go_plugin_service_plugin_loader_generate_type (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
|
Returns : |
GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER
#define GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER (go_plugin_service_gobject_loader_get_type ())
GO_PLUGIN_SERVICE_GOBJECT_LOADER()
#define GO_PLUGIN_SERVICE_GOBJECT_LOADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER, GOPluginServiceGObjectLoader))
|
GO_IS_PLUGIN_SERVICE_GOBJECT_LOADER()
#define GO_IS_PLUGIN_SERVICE_GOBJECT_LOADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_GOBJECT_LOADER))
|
go_plugin_service_gobject_loader_get_type ()
GType go_plugin_service_gobject_loader_get_type
(void
);
Returns : |
GOPluginServiceGObjectLoader
typedef struct _GOPluginServiceGObjectLoader GOPluginServiceGObjectLoader;
GOPluginServiceGObjectLoaderClass
typedef struct { GOPluginServiceClass plugin_service_class; GHashTable *pending; /* has service instances by type names */ } GOPluginServiceGObjectLoaderClass;
GO_TYPE_PLUGIN_SERVICE_SIMPLE
#define GO_TYPE_PLUGIN_SERVICE_SIMPLE (go_plugin_service_simple_get_type ())
GO_PLUGIN_SERVICE_SIMPLE()
#define GO_PLUGIN_SERVICE_SIMPLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_PLUGIN_SERVICE_SIMPLE, GOPluginServiceSimple))
|
GO_IS_PLUGIN_SERVICE_SIMPLE()
#define GO_IS_PLUGIN_SERVICE_SIMPLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_PLUGIN_SERVICE_SIMPLE))
|
GOPluginServiceSimpleClass
typedef struct { GOPluginServiceClass plugin_service_class; } GOPluginServiceSimpleClass;
go_plugin_service_new ()
GOPluginService * go_plugin_service_new (GOPlugin *plugin
,xmlNode *tree
,GOErrorInfo **ret_error
);
|
|
|
|
|
|
Returns : |
go_plugin_service_get_id ()
char const * go_plugin_service_get_id (const GOPluginService *service
);
|
|
Returns : |
go_plugin_service_get_description ()
char const * go_plugin_service_get_description (GOPluginService *service
);
|
|
Returns : |
go_plugin_service_get_plugin ()
GOPlugin * go_plugin_service_get_plugin (GOPluginService *service
);
|
|
Returns : |
go_plugin_service_get_cbs ()
gpointer go_plugin_service_get_cbs (GOPluginService *service
);
|
|
Returns : |
go_plugin_service_activate ()
void go_plugin_service_activate (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
go_plugin_service_deactivate ()
void go_plugin_service_deactivate (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
go_plugin_service_load ()
void go_plugin_service_load (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
go_plugin_service_unload ()
void go_plugin_service_unload (GOPluginService *service
,GOErrorInfo **ret_error
);
|
|
|
go_plugin_service_define ()
void go_plugin_service_define (char const *type_str
,GOPluginServiceCreate ctor
);
Allow the definition of new service types
|
char const * |
|
GOPluginServiceCreate |