Class: GOffice::DataVectorStr

Inherits:
DataVector show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from DataVector

#decreasing, #get_markup, #get_minmax, #get_str, #get_value, #increasing, #len, #values, #vary_uniformly

Methods inherited from Data

#date_conv, #dup, #emit_changed, #eq, #get_bounds, #get_matrix_markup, #get_matrix_size, #get_matrix_string, #get_matrix_value, #get_vector_markup, #get_vector_string, #get_vector_value, #has_value, #is_decreasing, #is_increasing, #is_valid, #is_varying_uniformly, #n_dimensions, #n_values, #preferred_fmt, #scalar_markup, #scalar_string, #scalar_value, #serialize, #unserialize, #values, #vector_size

Constructor Details

#initialize(str, n) ⇒ GOffice::Data

Returns the newly created #GOData.

Parameters:

  • str (Array<String>)

    the values.

  • n (Integer)

    the values number.

Instance Method Details

#set_translate_func(func, data, notify) ⇒ nil

Sets a function to be used for translating elements of vec

Parameters:

  • func (GOffice::TranslateFunc)

    a GOTranslate::Func

  • data (GObject)

    data to be passed to func and notify

  • notify (GLib::DestroyNotify)

    a GDestroy::Notify function to be called when vec is destroyed or when the translation function is changed

Returns:

  • (nil)

#translation_domain=(domain) ⇒ nil

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().

Parameters:

  • domain (String)

    the translation domain to use for dgettext() calls

Returns:

  • (nil)