| GOffice Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GODataMatrixVal; GODataScalarStr; GODataScalarVal; GODataVectorStr; GODataVectorVal; GOData * go_data_matrix_val_new (double *val,unsigned rows,unsigned columns,GDestroyNotify notify); GOData * go_data_scalar_str_new (char const *text,gboolean needs_free); void go_data_scalar_str_set_str (GODataScalarStr *str,char const *text,gboolean needs_free); GOData * go_data_scalar_val_new (double val); GOData * go_data_vector_str_new (char const * const *str,unsigned n,GDestroyNotify notify); void go_data_vector_str_set_translate_func (GODataVectorStr *vector,GOTranslateFunc func,gpointer data,GDestroyNotify notify); void go_data_vector_str_set_translation_domain (GODataVectorStr *vector,char const *domain); GOData * go_data_vector_val_new (double *val,unsigned n,GDestroyNotify notify);
GObject +----GOData +----GODataMatrix +----GODataMatrixVal
GObject +----GOData +----GODataScalar +----GODataScalarStr
GObject +----GOData +----GODataScalar +----GODataScalarVal
GObject +----GOData +----GODataVector +----GODataVectorStr
GObject +----GOData +----GODataVector +----GODataVectorVal
GOData * go_data_matrix_val_new (double *val,unsigned rows,unsigned columns,GDestroyNotify notify);
void go_data_scalar_str_set_str (GODataScalarStr *str,char const *text,gboolean needs_free);
GOData * go_data_vector_str_new (char const * const *str,unsigned n,GDestroyNotify notify);
void go_data_vector_str_set_translate_func (GODataVectorStr *vector,GOTranslateFunc func,gpointer data,GDestroyNotify notify);
Sets a function to be used for translating elements of vec
|
a GODataVectorStr |
|
a GOTranslateFunc |
|
data to be passed to func and notify
|
|
a GDestroyNotify function to be called when vec is
destroyed or when the translation function is changed |
void go_data_vector_str_set_translation_domain (GODataVectorStr *vector,char const *domain);
Sets the translation domain and uses dgettext() for translating the
elements of vec.
Note that libgoffice expects all strings to be encoded in UTF-8, therefore
the translation domain must have its codeset set to UTF-8, see
bind_textdomain_codeset() in the gettext() documentation.
If you're not using gettext() for localization, see
go_data_vector_str_set_translate_func().
|
a GODataVectorStr |
|
the translation domain to use for dgettext() calls |
GOData * go_data_vector_val_new (double *val,unsigned n,GDestroyNotify notify);