Functions¶
Details¶
- 
GOffice.arrow_type_as_str(typ)¶
- Parameters: - typ ( - GOffice.ArrowType) –- Return type: - str
- 
GOffice.arrow_type_from_str(name)¶
- Parameters: - name ( - str) –- Return type: - GOffice.ArrowType
- 
GOffice.ascii_strcase_equal(v, v2)¶
- Parameters: - Return type: 
- 
GOffice.atk_setup_label(label, target)¶
- Parameters: - label (Gtk.Widget) –Gtk.Widget
- target (Gtk.Widget) –Gtk.Widget
 - A convenience routine to setup label-for/labeled-by relationship between a pair of widgets 
- label (
- 
GOffice.basename_from_uri(uri)¶
- Parameters: - uri ( - str) – The uri- Returns: - a string that the caller is responsible for freeing. - Return type: - str- Decode the final path component. Returns as UTF-8 encoded suitable for display. 
- 
GOffice.bezier_spline_init(x, y, n, closed)¶
- Parameters: - Returns: - a newly created struct - GOffice.BezierSplineinstance which should be destroyed by a call to- GOffice.BezierSpline.destroy.- Return type: - x and y values must be valid and finite. The returned structure contains the x and y coordinates of all control points, including the incoming data. the n and closed fields are just copies of the corresponding arguments. 
- 
GOffice.cairo_convert_data_from_pixbuf(dst, src, width, height, rowstride)¶
- Parameters: - Converts the pixel data stored in src in - GdkPixbuf.Colorspace.RGBpixbuf format to- cairo.Format.ARGB32cairo format and move them to dst. If src == dst, pixel are converted in place.
- 
GOffice.cairo_convert_data_to_pixbuf(dst, src, width, height, rowstride)¶
- Parameters: - Converts the pixel data stored in src in - cairo.Format.ARGB32cairo format to- GdkPixbuf.Colorspace.RGBpixbuf format and move them to dst. If src == dst, pixel are converted in place.
- 
GOffice.cairo_emit_svg_path(cr, path)¶
- Parameters: - cr (cairo.Context) – a cairo context
- path (str) – a SVG path
 - Emits a path described as a SVG path string (d property of path elements) to a cairo context. 
- cr (
- 
GOffice.cairo_surface_is_vector(surface)¶
- Parameters: - surface ( - cairo.Surface) –- Return type: - bool
- 
GOffice.color_from_gdk_rgba(rgbacolor)¶
- Parameters: - rgbacolor ( - Gdk.RGBA) –- Gdk.RGBAto convert- Returns: - resulting color - res: - resulting color - Return type: - ( - int, res:- int)
- 
GOffice.color_from_str(str)¶
- Parameters: - str ( - str) – String to parse- Returns: - Trueif str can be parsed as a color of the form R:G:B:A and the result is stored in res.- res: - the parsed color - Return type: - ( - bool, res:- int)
- 
GOffice.color_selector_get_color(selector)¶
- Parameters: - selector ( - GOffice.Selector) – a- GOffice.Selector- Returns: - current color selection of selector. - is_auto: - Trueif the current selection was set by clicking on automatic palette item.- Return type: - ( - int, is_auto:- bool)
- 
GOffice.color_selector_set_allow_alpha(selector, allow_alpha)¶
- Parameters: - selector (GOffice.Selector) – #GOColorSelector
- allow_alpha (bool) – IfTrue, the selector will have an alpha channel.
 - Seta whether the custom colour selector should allow the use of opacity. 
- selector (
- 
GOffice.color_selector_set_color(selector, color)¶
- Parameters: - selector (GOffice.Selector) – #GOColorSelector to change
- color (int) – a #GOColor
 - Returns: - Trueif selection changed.- Return type: - Sets current selection to color. An “activate” signal will be emitted. 
- selector (
- 
GOffice.color_to_gdk_rgba(color, res)¶
- Parameters: - Returns: - res - Return type: 
- 
GOffice.complex_addl(dst, a, b)¶
- Parameters: - dst (GOffice.Complexl) –
- a (GOffice.Complexl) –
- b (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_conjl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_cosl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_divl(dst, a, b)¶
- Parameters: - dst (GOffice.Complexl) –
- a (GOffice.Complexl) –
- b (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_expl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_from_stringl(dst, src, imunit)¶
- Parameters: - dst (GOffice.Complexl) –
- src (str) –
- imunit (str) –
 - Return type: 
- dst (
- 
GOffice.complex_invalid_pl(src)¶
- Parameters: - src ( - GOffice.Complexl) –- Return type: - int
- 
GOffice.complex_invalidl(dst)¶
- Parameters: - dst ( - GOffice.Complexl) –
- 
GOffice.complex_lnl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_mull(dst, a, b)¶
- Parameters: - dst (GOffice.Complexl) –
- a (GOffice.Complexl) –
- b (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_powl(dst, a, b)¶
- Parameters: - dst (GOffice.Complexl) –
- a (GOffice.Complexl) –
- b (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_real_pl(src)¶
- Parameters: - src ( - GOffice.Complexl) –- Return type: - int
- 
GOffice.complex_sinl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_sqrtl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_subl(dst, a, b)¶
- Parameters: - dst (GOffice.Complexl) –
- a (GOffice.Complexl) –
- b (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_tanl(dst, src)¶
- Parameters: - dst (GOffice.Complexl) –
- src (GOffice.Complexl) –
 
- dst (
- 
GOffice.complex_to_polar(mod, angle, src)¶
- Parameters: - mod (float) –
- angle (float) –
- src (GOffice.Complex) –
 
- mod (
- 
GOffice.complex_to_stringl(src, reformat, imformat, imunit)¶
- Parameters: - src (GOffice.Complexl) –
- reformat (str) –
- imformat (str) –
- imunit (int) –
 - Return type: 
- src (
- 
GOffice.complex_zero_pl(src)¶
- Parameters: - src ( - GOffice.Complexl) –- Return type: - int
- 
GOffice.components_add_filter(chooser)¶
- Parameters: - chooser ( - Gtk.FileChooser) –
- 
GOffice.components_add_mime_type(mime, priority, service_id)¶
- Parameters: - mime (str) –
- priority (GOffice.MimePriority) –
- service_id (str) –
 
- mime (
- 
GOffice.components_get_mime_types()¶
- Returns: - the list of mime types supported by at least one registered component. - Return type: - [ - str]
- 
GOffice.components_get_priority(mime_type)¶
- Parameters: - mime_type ( - str) –- Return type: - GOffice.MimePriority
- 
GOffice.conf_add_monitor(node, key, monitor, *data)¶
- Parameters: - node (GOffice.ConfNode) –GOffice.ConfNode
- key (str) – configuration key
- monitor (GOffice.ConfMonitorFunc) – #GOMonitorFunc
- data (objectorNone) – user data
 - Returns: - the signal ID. - Return type: - monitor will be called whenever the - GOffice.valueassociated with key changes.
- node (
- 
GOffice.conf_free_node(node)¶
- Parameters: - node ( - GOffice.ConfNode) –
- 
GOffice.conf_get_bool(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_get_double(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_get_enum_as_str(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_get_int(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_get_node(parent, key)¶
- Parameters: - parent (GOffice.ConfNode) – parent node orNone
- key (str) – configuration key
 - Returns: - the - GOffice.ConfNodeassociated with key- Return type: 
- parent (
- 
GOffice.conf_get_str_list(node, key)¶
- Parameters: - node (GOffice.ConfNode) –GOffice.ConfNode
- key (str) – configuration key
 - Returns: - a list of strings asociated with key. - Return type: - [ - str]
- node (
- 
GOffice.conf_get_string(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_load_bool(node, key, default_val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- default_val (bool) –
 - Return type: 
- node (
- 
GOffice.conf_load_double(node, key, minima, maxima, default_val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- minima (float) –
- maxima (float) –
- default_val (float) –
 - Return type: 
- node (
- 
GOffice.conf_load_enum(node, key, t, default_val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- t (GObject.GType) –
- default_val (int) –
 - Return type: 
- node (
- 
GOffice.conf_load_int(node, key, minima, maxima, default_val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- minima (int) –
- maxima (int) –
- default_val (int) –
 - Return type: 
- node (
- 
GOffice.conf_load_str_list(node, key)¶
- Parameters: - node (GOffice.ConfNode) –GOffice.ConfNode
- key (str) – configuration key
 - Returns: - a list of strings asociated with key. - Return type: - [ - str]
- node (
- 
GOffice.conf_load_string(node, key)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
 - Return type: 
- node (
- 
GOffice.conf_set_bool(node, key, val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- val (bool) –
 
- node (
- 
GOffice.conf_set_double(node, key, val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- val (float) –
 
- node (
- 
GOffice.conf_set_enum(node, key, t, val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- t (GObject.GType) –
- val (int) –
 
- node (
- 
GOffice.conf_set_int(node, key, val)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- val (int) –
 
- node (
- 
GOffice.conf_set_str_list(node, key, list)¶
- Parameters: - node (GOffice.ConfNode) –GOffice.ConfNode
- key (str) – configuration key
- list ([str]) – the list of strings to set.
 - Sets list as the - GOffice.valuefor key.
- node (
- 
GOffice.conf_set_string(node, key, str)¶
- Parameters: - node (GOffice.ConfNode) –
- key (str) –
- str (str) –
 
- node (
- 
GOffice.conf_sync(node)¶
- Parameters: - node ( - GOffice.ConfNode) –
- 
GOffice.continued_fraction(val, max_denom, res_num, res_denom)¶
- Parameters: 
- 
GOffice.cospi(x)¶
- Parameters: - x ( - float) – a number- Returns: - the cosine of Pi times x, but with less error than doing the multiplication outright. - Return type: - float
- 
GOffice.coup_cd(res, settle, mat, freq, eom, next)¶
- Parameters: 
- 
GOffice.coupdaybs(settlement, maturity, conv)¶
- Parameters: - settlement (GLib.Date) –GLib.Date
- maturity (GLib.Date) –GLib.Date
- conv (GOffice.CouponConvention) –GOffice.CouponConvention
 - Returns: - the number of days from the beginning of the coupon period to the settlement date. - Return type: 
- settlement (
- 
GOffice.coupdays(settlement, maturity, conv)¶
- Parameters: - settlement (GLib.Date) –GLib.Date
- maturity (GLib.Date) –GLib.Date
- conv (GOffice.CouponConvention) –GOffice.CouponConvention
 - Returns: - the number of days in the coupon period of the settlement date. Currently, returns negative numbers if the branch is not implemented. - Return type: 
- settlement (
- 
GOffice.coupdaysnc(settlement, maturity, conv)¶
- Parameters: - settlement (GLib.Date) –
- maturity (GLib.Date) –
- conv (GOffice.CouponConvention) –GOffice.CouponConvention
 - Returns: - the number of days from the settlement date to the next coupon date. - Return type: 
- settlement (
- Parameters: - buffer ( - Gtk.TextBuffer) –
- 
GOffice.cspline_destroyl(sp)¶
- Parameters: - sp ( - GOffice.CSplinel) –
- 
GOffice.cspline_init(x, y, n, limits, c0, cn)¶
- Parameters: - x (float) – the x values
- y (float) – the y values
- n (int) – the number of x and y values
- limits (int) – how the limits must be treated, four values are allowed:GOffice.CSplineType.NATURAL: first and least second derivatives are 0.GOffice.CSplineType.PARABOLIC: the curve will be a parabole arc outside of the limits.GOffice.CSplineType.CUBIC: the curve will be cubic outside of the limits.GOffice.CSplineType.CLAMPED: the first and last derivatives are imposed.
- c0 (float) – the first derivative when using clamped splines, not used in the other limit types.
- cn (float) – the first derivative when using clamped splines, not used in the other limit types.
 - Returns: - a newly created - GOffice.CSplineinstance which should be destroyed by a call to- GOffice.CSpline.destroy.- Return type: - Creates a spline structure, and computes the coefficients associated with the polynoms. The ith polynome (between x[i-1] and x[i] is: y(x) = y[i-1] + (c[i-1] + (b[i-1] + a[i] * (x - x[i-1])) * (x - x[i-1])) * (x - x[i-1]) where a[i-1], b[i-1], c[i-1], x[i-1] and y[i-1] are the corresponding members of the new structure. 
- x (
- 
GOffice.date_conv_equal(a, b)¶
- Parameters: - a (GOffice.DateConventions) –
- b (GOffice.DateConventions) –
 - Return type: 
- a (
- 
GOffice.date_conv_from_str(s)¶
- Parameters: - s ( - str) –- Return type: - GOffice.DateConventions
- 
GOffice.date_conv_translate(f, src, dst)¶
- Parameters: - f (float) –
- src (GOffice.DateConventions) –
- dst (GOffice.DateConventions) –
 - Return type: 
- f (
- 
GOffice.date_convention_base(conv)¶
- Parameters: - conv ( - GOffice.DateConventions) –- Return type: - int
- 
GOffice.date_days_between_basis(from_, to, basis)¶
- Parameters: - from (GLib.Date) –
- to (GLib.Date) –
- basis (GOffice.BasisType) –
 - Return type: 
- from (
- 
GOffice.date_g_months_between(date1, date2)¶
- Parameters: - Return type: 
- 
GOffice.date_g_to_serial(date, conv)¶
- Parameters: - date (GLib.Date) –
- conv (GOffice.DateConventions) –
 - Return type: 
- date (
- 
GOffice.date_g_years_between(date1, date2)¶
- Parameters: - Return type: 
- 
GOffice.date_month_name(m, abbrev)¶
- Parameters: - m (GLib.DateMonth) –
- abbrev (bool) –
 - Return type: 
- m (
- 
GOffice.date_serial_to_g(res, serial, conv)¶
- Parameters: - res (GLib.Date) –
- serial (int) –
- conv (GOffice.DateConventions) –
 
- res (
- 
GOffice.date_serial_to_timet(serial, conv)¶
- Parameters: - serial (int) –
- conv (GOffice.DateConventions) –
 - Return type: 
- serial (
- 
GOffice.date_timet_to_serial(t, conv)¶
- Parameters: - t (int) –
- conv (GOffice.DateConventions) –
 - Return type: 
- t (
- 
GOffice.date_timet_to_serial_raw(t, conv)¶
- Parameters: - t (int) –
- conv (GOffice.DateConventions) –
 - Return type: 
- t (
- 
GOffice.date_weekday_name(wd, abbrev)¶
- Parameters: - wd (GLib.DateWeekday) –
- abbrev (bool) –
 - Return type: 
- wd (
- 
GOffice.date_weeknum(date, method)¶
- Parameters: - Returns: - week number according to the given method. 1: Week starts on Sunday. January 1 is in week 1. 2: Week starts on Monday. January 1 is in week 1. 150: ISO 8601 week number. - Return type: 
- 
GOffice.dcauchy(x, location, scale, give_log)¶
- Parameters: - Return type: 
- 
GOffice.destroy_password(passwd)¶
- Parameters: - passwd ( - str) – The buffer to clear- Overwrite a string holding a password. This is a separate routine to ensure that the compiler does not try to outsmart us. - Note: this does not free the memory. 
- Parameters: - dialog ( - Gtk.Dialog) –- Gtk.Dialog- This function inspects the buttons in the dialog and comes up with a reasonable alternative dialog order. 
- 
GOffice.direction_get_name(d)¶
- Parameters: - d ( - GOffice.Direction) –- Return type: - str
- 
GOffice.direction_is_forward(d)¶
- Parameters: - d ( - GOffice.Direction) –- GOffice.Direction- Returns: - Truefor- GOffice.Direction.DOWNor- GOffice.Direction.RIGHT.- Return type: - bool
- 
GOffice.direction_is_horizontal(d)¶
- Parameters: - d ( - GOffice.Direction) –- GOffice.Direction- Returns: - Truefor- GOffice.Direction.LEFTand- GOffice.Direction.RIGHT.- Return type: - bool
- 
GOffice.dirname_from_uri(uri, brief)¶
- Parameters: - Returns: - dirname which the caller is responsible for freeing. - Return type: - Decode the all but the final path component. Returns as UTF-8 encoded suitable for display. 
- 
GOffice.dlnorm(x, meanlog, sdlog, give_log)¶
- Parameters: - Return type: 
- 
GOffice.dnorm(x, mu, sigma, give_log)¶
- Parameters: - Return type: 
- 
GOffice.dweibull(x, shape, scale, give_log)¶
- Parameters: - Return type: 
- 
GOffice.exponential_regression(xss, dim, ys, n, affine, res, stat_)¶
- Parameters: - xss (float) – x-vectors (i.e. independent data)
- dim (int) – number of x-vectors
- ys (float) – y-vector (dependent data)
- n (int) – number of data points
- affine (bool) – ifTrue, a non-one multiplier is allowed
- res (float) – output place for constant[0] and root1[1], root2[2],… There will be dim+1 results.
- stat (GOffice.go_regression_stat_t) – non-Nonestorage for additional results.
 - Returns: - GOffice.RegressionResultas above.- Return type: - Performs one-dimensional linear regressions on the input points. Fits to “y = b * m1^x1 * … * md^xd ” or equivalently to “log y = log b + x1 * log m1 + … + xd * log md”. 
- xss (
- 
GOffice.exponential_regression_as_log(xss, dim, ys, n, affine, res, stat_)¶
- Parameters: - xss (float) – x-vectors (i.e. independent data)
- dim (int) – number of x-vectors
- ys (float) – y-vector (dependent data)
- n (int) – number of data points
- affine (bool) – ifTrue, a non-one multiplier is allowed
- res (float) – output place for constant[0] and root1[1], root2[2],… There will be dim+1 results.
- stat (GOffice.go_regression_stat_t) – non-Nonestorage for additional results.
 - Returns: - GOffice.RegressionResultas above.- Return type: - Performs one-dimensional linear regressions on the input points as - GOffice.exponential_regression, but returns the logarithm of the coefficients instead or the coefficients themselves. Fits to “y = b * exp (m1*x1) * … * exp (md*xd) ” or equivalently to “ln y = ln b + x1 * m1 + … + xd * md”.
- xss (
- 
GOffice.file_create(uri)¶
- Parameters: - uri ( - str) – target uri- Raises: - GLib.Error- Returns: - non- - Noneon success- Return type: - Gsf.Output- Creates a file or return an error. If the file already exists, it is replaced. 
- 
GOffice.file_get_modtime(uri)¶
- Parameters: - uri ( - str) – The uri- Returns: - the modification time of the file. - Return type: - GLib.DateTimeor- None- Determine the last modification time of uri. 
- 
GOffice.file_open(uri)¶
- Parameters: - uri ( - str) – target uri- Raises: - GLib.Error- Returns: - non- - Noneon success- Return type: - Gsf.Input- Try all available methods to open a file or return an error 
- 
GOffice.file_split_urls(data)¶
- Parameters: - data ( - str) – a string filled with a list of URIs separated by new lines.- Returns: - the URIs list. - Return type: - [ - str]- Splits the chain into a list of URIs. Lines starting with ‘#’ are ignored. 
- 
GOffice.filename_simplify(filename, dotdot, make_absolute)¶
- Parameters: - filename (str) –
- dotdot (GOffice.DotDot) –
- make_absolute (bool) –
 - Return type: 
- filename (
- 
GOffice.font_cache_register(callback)¶
- Parameters: - callback ( - GObject.Closure) –
- 
GOffice.font_cache_unregister(callback)¶
- Parameters: - callback ( - GObject.Closure) –
- 
GOffice.fonts_list_families(context)¶
- Parameters: - context ( - Pango.Context) –- Pango.Context- Returns: - a sorted list of strings of - GOffice.fontfamily names.- Return type: - [ - str]
- 
GOffice.fonts_list_sizes()¶
- Returns: - a sorted list of - GOffice.fontsizes in Pango units. The list must be freed.- Return type: - [ - int]
- 
GOffice.format_default_accounting()¶
- Returns: - the default accounting format - Return type: - GOffice.Format
- 
GOffice.format_default_date()¶
- Returns: - the default date format - Return type: - GOffice.Format
- 
GOffice.format_default_date_time()¶
- Returns: - the default date-and-time format - Return type: - GOffice.Format
- 
GOffice.format_default_money()¶
- Returns: - the default monetary format - Return type: - GOffice.Format
- 
GOffice.format_default_percentage()¶
- Returns: - the default percentage format - Return type: - GOffice.Format
- 
GOffice.format_default_time()¶
- Returns: - the default time format - Return type: - GOffice.Format
- 
GOffice.format_empty()¶
- Returns: - the empty format - Return type: - GOffice.Format
- 
GOffice.format_foreach(func, *user_data)¶
- Parameters: - func (GLib.HFunc) – function to execute for each known format
- user_data (objectorNone) – user data for func
 - Executes func for each registered - GOffice.Format
- func (
- 
GOffice.format_general()¶
- Returns: - the general format - Return type: - GOffice.Format
- 
GOffice.format_generate_number_str(dst, min_digits, num_decimals, thousands_sep, negative_red, negative_paren, prefix, postfix)¶
- Parameters: - dst (GLib.String) –GLib.Stringto append format string to.
- min_digits (int) – minimum number of digits before decimal separator.
- num_decimals (int) – number of decimals
- thousands_sep (bool) – if true, use a thousands separator.
- negative_red (bool) – if true, make negative values red.
- negative_paren (bool) – if true, enclose negative values in parentheses.
- prefix (str) – optional string to place before number part of the format
- postfix (str) – optional string to place after number part of the format
 - Generates a format string for a number format with the given parameters and appends it to dst. 
- dst (
- 
GOffice.format_generate_str(dst, details)¶
- Parameters: - dst (GLib.String) –
- details (GOffice.FormatDetails) –
 
- dst (
- 
GOffice.format_locale_currency()¶
- Returns: - The - GOffice.FormatCurrencymatches the current locale.- Return type: - GOffice.FormatCurrency
- 
GOffice.format_measure_pango(str, layout)¶
- Parameters: - str (GLib.String) –
- layout (Pango.Layout) –
 - Return type: 
- str (
- 
GOffice.format_measure_strlen(str, layout)¶
- Parameters: - str (GLib.String) –
- layout (Pango.Layout) –
 - Return type: 
- str (
- 
GOffice.format_measure_zero(str, layout)¶
- Parameters: - str (GLib.String) –
- layout (Pango.Layout) –
 - Return type: 
- str (
- 
GOffice.format_output_to_odf(xout, fmt, cond_part, name, with_extension)¶
- Parameters: - xout (Gsf.XMLOut) –
- fmt (GOffice.Format) –
- cond_part (int) –
- name (str) –
- with_extension (bool) –
 - Return type: 
- xout (
- 
GOffice.format_palette_index_from_color(c)¶
- Parameters: - c ( - int) – color- Returns: - the index of the color closest to the argument color in some sense. - Return type: - int
- 
GOffice.format_str_delocalize(str)¶
- Parameters: - str ( - str) – A *valid* localized format string- Returns: - a non-local format string, or - Noneif the format was not valid.- Return type: - str- De-localizes the given format string, i.e., changes locale’s decimal separators to dots and performs other such transformations. 
- 
GOffice.format_str_localize(str)¶
- Parameters: - str ( - str) – A *valid* format string- Returns: - a localized format string, or - Noneif the format was not valid.- Return type: - str- Localizes the given format string, i.e., changes decimal dots to the locale’s notion of that and performs other such transformations. 
- 
GOffice.format_value_gstring(layout, str, measure, metrics, fmt, val, type, sval, go_color, col_width, date_conv, unicode_minus)¶
- Parameters: - layout (Pango.Layout) – OptionalPango.Layout, probably preseeded withGOffice.fontattribute.
- str (GLib.String) – aGLib.Stringto store (not append!) the resulting string in.
- measure (GOffice.FormatMeasure) – Function to measure width of string/layout.
- metrics (GOffice.FontMetrics) – Font metrics corresponding to mesaure.
- fmt (GOffice.Format) –GOffice.Format
- val (float) – floating-pointGOffice.value. Must be finite.
- type (int) – a format character
- sval (str) – a string to append to str after val
- go_color (int) – a color to rende
- col_width (int) – intended max width of layout in pango units. -1 means no restriction.
- date_conv (GOffice.DateConventions) –GOffice.DateConventions
- unicode_minus (bool) – Use unicode minuses, not hyphens.
 - Returns: - Return type: - Render a floating-point - GOffice.valueinto layout in such a way that the layouting width does not needlessly exceed col_width. Optionally use unicode minus instead of hyphen.
- layout (
- 
GOffice.fourier_fft(in_, n, skip, fourier, inverse)¶
- Parameters: - in (GOffice.Complex) –
- n (int) –
- skip (int) –
- fourier (GOffice.Complex) –
- inverse (bool) –
 
- in (
- 
GOffice.fourier_fftl(in_, n, skip, fourier, inverse)¶
- Parameters: - in (GOffice.Complexl) –
- n (int) –
- skip (int) –
- fourier (GOffice.Complexl) –
- inverse (bool) –
 
- in (
- 
GOffice.gdk_pixbuf_get_from_cache(filename)¶
- Parameters: - filename ( - str) – pixbuf filename- Returns: - a - GdkPixbuf.Pixbuf,- Noneon error.- Return type: - GdkPixbuf.Pixbuf- Retrieves a pixbuf from the image cache, loading it from the file filename located in goffice_icon_dir if not cached yet. 
- 
GOffice.gdk_pixbuf_load_from_file(filename)¶
- Parameters: - filename ( - str) – pixbuf filename- Returns: - a - GdkPixbuf.Pixbufthat the caller is responsible for.- Return type: - GdkPixbuf.Pixbuf- Utility routine to create pixbufs from file name in the goffice_icon_dir. As a special case, filename may have the form “res:<resource name>” in which case the resource manager is queried instead of loading a file. - New in version 0.9.6. 
- 
GOffice.geometry_AABR_add(aabr0, aabr1)¶
- Parameters: - aabr0 (GOffice.GeometryAABR) – aGOffice.GeometryAABR
- aabr1 (GOffice.GeometryAABR) – aGOffice.GeometryAABR
 - Computes the Axis Aligned Bounding Rectangle of aabr0 and aabr1, and stores result in aabr0. 
- aabr0 (
- 
GOffice.geometry_OBR_to_AABR(obr, aabr)¶
- Parameters: - obr (GOffice.GeometryOBR) – aGOffice.GeometryOBR
- aabr (GOffice.GeometryAABR) – aGOffice.GeometryAABR
 - Stores Axis Aligned Bounding Rectangle of obr in aabr. 
- obr (
- 
GOffice.geometry_calc_label_anchor(obr, alpha)¶
- Parameters: - obr (GOffice.GeometryOBR) – bounding rectangle of label
- alpha (float) – angle of axis
 - Returns: - computed label anchor, to be used by - GOffice.geometry_calc_label_position.- Return type: 
- obr (
- 
GOffice.geometry_calc_label_position(obr, alpha, offset, side, anchor)¶
- Parameters: - obr (GOffice.GeometryOBR) – bounding rectangle of label
- alpha (float) – angle of axis
- offset (float) – minimum distance between label and axis
- side (GOffice.GeometrySide) – side of label with respect to axis
- anchor (GOffice.GeometrySide) – where to anchor the label
 - Returns: - the computed anchor if anchor == - GOffice.GeometrySide.AUTO, or anchor- GOffice.value.- Return type: - Convenience routine that computes position of a label relative to an axis. 
- obr (
- 
GOffice.geometry_cartesian_to_polar(x, y, rho, theta)¶
- Parameters: - Converts cartesion coordinates to polar coordinates. 
- 
GOffice.geometry_get_rotation_type(alpha)¶
- Parameters: - alpha ( - float) – angle in radians- Returns: - a - GOffice.GeometryRotationType- Return type: - GOffice.GeometryRotationType- Calculates rotation type for handling of special angles (alpha = n * pi / 2) 
- 
GOffice.geometry_point_to_segment(xp, yp, xs, ys, w, h)¶
- Parameters: - Returns: - the distance between a point and a segment. - Return type: 
- 
GOffice.geometry_test_OBR_overlap(obr0, obr1)¶
- Parameters: - obr0 (GOffice.GeometryOBR) – aGOffice.GeometryOBR
- obr1 (GOffice.GeometryOBR) – aGOffice.GeometryOBR
 - Returns: - Trueif OOBRs overlap- Return type: - Overlap test of Oriented Bounding Rectangles by the separating axis method. 
- obr0 (
- 
GOffice.get_file_openers()¶
- Returns: - list of known - GOffice.FileOpenertypes (do not modify list)- Return type: - [ - GOffice.FileOpener]
- 
GOffice.get_file_permissions(uri)¶
- Parameters: - uri ( - str) –- Return type: - GOffice.FilePermissions
- 
GOffice.get_file_savers()¶
- Returns: - list of known - GOffice.FileSavertypes (do not modify list)- Return type: - [ - GOffice.FileSaver]
- 
GOffice.get_mime_type(uri)¶
- Parameters: - uri ( - str) – the uri.- Returns: - the mime type for the file as a newly allocated string. Needs to be freed with - GLib.free().- Return type: - str
- 
GOffice.get_mime_type_for_data(data, data_size)¶
- Parameters: - Returns: - the mime type for the data as a newly allocated string. Needs to be freed with - GLib.free().- Return type: 
- 
GOffice.gog_axis_map(map, value)¶
- Parameters: - map (GOffice.GraphAxisMap) – aGOffice.GraphAxisMap
- value (float) –GOffice.valueto map to plot space.
 - Returns: - mapped - GOffice.value.- Return type: - Converts value to plot coordinates. A - GOffice.valuein [0,1.0] range means a data within axis bounds.
- map (
- 
GOffice.gog_guru(graph, dalloc, cc, closure)¶
- Parameters: - graph (GOffice.GraphGraph) – the graph to edit
- dalloc (GOffice.GraphDataAllocator) – The data allocator to use for editing
- cc (GOffice.CmdContext) – Where to report errors
- closure (GObject.Closure) –GObject.Closure
 - Returns: - the dialog, and shows new graph guru. - Return type: - CHANGED 0.5.3 : drop the toplevel window argument and have the callers handle widget_show and set_transient 
- graph (
- 
GOffice.gog_guru_add_custom_widget(guru, custom)¶
- Parameters: - guru (Gtk.Widget) –
- custom (Gtk.Widget) –
 
- guru (
- Parameters: - guru ( - Gtk.Widget) –- Gtk.Widget(the result of- GOffice.gog_guru).- Returns: - Gtk.Widgetassociated with the gurus help button.- Return type: - Gtk.Widget- Quick utility to allow application specific help. Required until we clean up the relationship between goffice and gnumeric to decide which parts of the help live where. 
- 
GOffice.gog_xml_read_state_get_obj(xin)¶
- Parameters: - xin ( - Gsf.XMLIn) –- Gsf.XMLIn- Returns: - the laset rerad - GOffice.GraphObject- Return type: - GOffice.GraphObject
- 
GOffice.gradient_dir_as_str(dir)¶
- Parameters: - dir ( - GOffice.GradientDirection) –- Return type: - str
- 
GOffice.gradient_dir_from_str(name)¶
- Parameters: - name ( - str) –- Return type: - GOffice.GradientDirection
- 
GOffice.gradient_selector_set_colors(selector, start, stop)¶
- Parameters: - selector (GOffice.Selector) –
- start (int) –
- stop (int) –
 
- selector (
- 
GOffice.gtk_builder_combo_box_init_text(gui, widget_name)¶
- Parameters: - gui (Gtk.Builder) – theGtk.Builder
- widget_name (str) – the name of the combo box in the ui file.
 - Returns: - the - Gtk.ComboBoxor- None- Return type: - searches the - Gtk.ComboBoxin gui and ensures it has a model and a renderer appropriate for using with #gtk_combo_box_append_text and friends.
- gui (
- 
GOffice.gtk_builder_get_widget(gui, widget_name)¶
- Parameters: - gui (Gtk.Builder) – theGtk.Builder
- widget_name (str) – the name of the combo box in the ui file.
 - Returns: - a new - Gtk.Widgetor- None- Return type: - Simple wrapper to - Gtk.Builder.get_objectwhich returns the object as a- Gtk.Widget.
- gui (
- 
GOffice.gtk_builder_group_value(gui, group)¶
- Parameters: - gui (Gtk.Builder) –
- group (str) –
 - Return type: 
- gui (
- 
GOffice.gtk_builder_load(uifile, domain, gcc)¶
- Parameters: - uifile (str) – the name of the file load
- domain (str) – the translation domain
- gcc (GOffice.CmdContext) –GOffice.CmdContext
 - Returns: - a new - Gtk.Builderor- None- uifile should be one of these: - res:NAME – data from resource manager data:DATA – data right here filename – data from local file - Data may be compressed, regardless of source. - Return type: - Simple utility to open ui files - New in version 0.9.6. 
- uifile (
- 
GOffice.gtk_builder_load_internal(uifile, domain, gcc)¶
- Parameters: - uifile (str) – the name of the file load
- domain (str) – the translation domain
- gcc (GOffice.CmdContext) –GOffice.CmdContext
 - Returns: - a new - Gtk.Builderor- None- Variant of go_gtk_builder_new that searchs goffice directories for files. uifile should be one of these: - res:NAME – data from resource manager data:DATA – data right here filename – data from local file - Data may be compressed, regardless of source. - Return type: - Simple utility to open ui files - New in version 0.9.6. 
- uifile (
- 
GOffice.gtk_builder_signal_connect(gui, instance_name, detailed_signal, c_handler, *data)¶
- Parameters: - gui (Gtk.Builder) –Gtk.Builder
- instance_name (str) – widget name
- detailed_signal (str) – signal name
- c_handler (GObject.Callback) –GObject.Callback
- data (objectorNone) – arbitrary
 - Returns: - The signal id - Return type: - Convenience wrapper around g_signal_connect for - Gtk.Builder.
- gui (
- 
GOffice.gtk_builder_signal_connect_swapped(gui, instance_name, detailed_signal, c_handler, *data)¶
- Parameters: - gui (Gtk.Builder) –Gtk.Builder
- instance_name (str) – widget name
- detailed_signal (str) – signal name
- c_handler (GObject.Callback) –GObject.Callback
- data (objectorNone) – arbitary
 - Returns: - The signal id - Return type: - Convenience wrapper around g_signal_connect_swapped for - Gtk.Builder.
- gui (
- Parameters: - Returns: - newly created button - Return type: - FROM : gedit Creates a new - Gtk.Buttonwith custom label and stock image.- New in version 0.9.9. 
- 
GOffice.gtk_combo_box_append_text(combo, str)¶
- Parameters: - combo (Gtk.ComboBox) –
- str (str) –
 
- combo (
- 
GOffice.gtk_combo_box_remove_text(combo, position)¶
- Parameters: - combo (Gtk.ComboBox) –
- position (int) –
 
- combo (
- Parameters: - dialog (Gtk.Dialog) – dialog you want to add a button
- text (str) – button label
- stock_id (str) – stock icon id
- response_id (int) – respond id when button clicked
 - Returns: - newly created button - Return type: - FROM : gedit Creates and adds a button with stock image to the action area of an existing dialog. 
- dialog (
- 
GOffice.gtk_dialog_run(dialog, parent)¶
- Parameters: - dialog (Gtk.Dialog) –Gtk.Dialog
- parent (Gtk.Window) –Gtk.Window
 - Returns: - result ID. - Return type: - Pop up a dialog as child of a window. 
- dialog (
- 
GOffice.gtk_editable_enters(window, w)¶
- Parameters: - window (Gtk.Window) –Gtk.Window
- w (Gtk.Widget) –Gtk.Widget
 - Normally if there’s an editable widget (such as - Gtk.Entry) in your dialog, pressing Enter will activate the editable rather than the default dialog button. However, in most cases, the user expects to type something in and then press enter to close the dialog. This function enables that behavior.
- window (
- 
GOffice.gtk_file_sel_dialog(toplevel, w)¶
- Parameters: - toplevel (Gtk.Window) –Gtk.Window
- w (Gtk.Widget) –Gtk.Widget
 - Returns: - Trueif a file was selected.- Return type: - Runs a modal dialog to select a file. 
- toplevel (
- Parameters: - w (Gtk.Widget) –
- data_dir (str) –
- app (str) –
- link (str) –
 
- w (
- 
GOffice.gtk_nonmodal_dialog(toplevel, dialog)¶
- Parameters: - toplevel (Gtk.Window) –Gtk.Window
- dialog (Gtk.Window) –Gtk.Window
 - Utility to set dialog as a transient of toplevel and to set up a handler for “Escape” 
- toplevel (
- 
GOffice.gtk_select_image(toplevel, initial)¶
- Parameters: - toplevel (Gtk.Window) –
- initial (str) –
 - Return type: 
- toplevel (
- 
GOffice.gtk_select_image_with_extra_widget(toplevel, initial, extra)¶
- Parameters: - toplevel (Gtk.Window) –
- initial (str) –
- extra (Gtk.Widget) –
 - Return type: 
- toplevel (
- 
GOffice.gtk_url_is_writeable(parent, uri, overwrite_by_default)¶
- Parameters: - parent (Gtk.Window) –Gtk.Window
- uri (str) – the uri to test.
- overwrite_by_default (bool) –bool
 - Returns: - Trueif url is writable- Return type: - Check if it makes sense to try saving. If it’s an existing file and writable for us, ask if we want to overwrite. We check for other problems, but if we miss any, the saver will report. So it doesn’t have to be bulletproof. - FIXME: The message boxes should really be children of the file selector, not the - GOffice.workbook.
- parent (
- 
GOffice.gtk_url_show(url, screen)¶
- Parameters: - url (str) – the url to show
- screen (Gdk.Screen) – screen to show the uri on orNonefor the default screen
 - Returns: - Noneon sucess, or a newly allocated- GLib.Errorif something went wrong.- Return type: - This function is a simple convenience wrapper for - Gtk.show_uri.
- url (
- 
GOffice.gtk_widget_disable_focus(w)¶
- Parameters: - w ( - Gtk.Widget) –- Gtk.Widget- Convenience wrapper to disable focus on a container and it’s children. 
- 
GOffice.gtk_widget_render_icon_pixbuf(widget, icon_name, size)¶
- Parameters: - widget (Gtk.Widget) – a mapped widget determining the screen targeted
- icon_name (str) – the name of the icon to render
- size (Gtk.IconSize) – the symbolic size desired.
 - Returns: - Return type: - This function works as - Gtk.Widget.render_icon_pixbufexcept that it takes an icon name, not a stock id.
- widget (
- 
GOffice.gtk_widget_replace(victim, replacement)¶
- Parameters: - victim (Gtk.Widget) –
- replacement (Gtk.Widget) –
 
- victim (
- 
GOffice.gtk_window_set_transient(toplevel, window)¶
- Parameters: - toplevel (Gtk.Window) – The calling window
- window (Gtk.Window) – the transient window
 - Make the window a child of the - GOffice.workbookin the command context, if there is one. The function duplicates the positioning functionality in gnome_dialog_set_parent, but does not require the transient window to be a GnomeDialog.
- toplevel (
- 
GOffice.guess_encoding(raw, len, user_guess, utf8_str, truncated)¶
- Parameters: - raw (str) –
- len (int) –
- user_guess (str) –
- utf8_str (GLib.String) –
- truncated (int) –
 - Return type: 
- raw (
- 
GOffice.gui_get_image_save_info(toplevel, supported_formats, ret_format, resolution)¶
- Parameters: - toplevel (Gtk.Window) – aGtk.Window
- supported_formats ([object]) – aGLib.SListof supported file formats
- ret_format (GOffice.ImageFormat) – default file format
- resolution (float) – export resolution
 - Returns: - file URI string, file - GOffice.ImageFormatstored in ret_format, and export resolution in resolution.- Return type: - Opens a file chooser and lets user choose file URI and format in a list of supported ones. 
- toplevel (
- 
GOffice.hash_keys(hash)¶
- Parameters: - hash ({ - object:- object}) –- GLib.HashTable- Returns: - a list which the caller needs to free. The content has not additional references added - Note: consider using g_hash_table_get_keys instead. - Return type: - [ - object]- Collects an unordered list of the keys in hash. 
- 
GOffice.init()¶
- Initialize GOffice. - This function can be called several times; each call will increment a reference counter. Code that calls this function should call - GOffice.shutdown() when done to decrement the counter.
- 
GOffice.io_count_progress_set(io_context, total, step)¶
- Parameters: - io_context (GOffice.IOContext) –
- total (int) –
- step (int) –
 
- io_context (
- 
GOffice.io_count_progress_update(io_context, inc)¶
- Parameters: - io_context (GOffice.IOContext) –
- inc (int) –
 
- io_context (
- 
GOffice.io_error_clear(ioc)¶
- Parameters: - ioc ( - GOffice.IOContext) –
- 
GOffice.io_error_display(ioc)¶
- Parameters: - ioc ( - GOffice.IOContext) –
- 
GOffice.io_error_info_set(ioc, error)¶
- Parameters: - ioc (GOffice.IOContext) –
- error (GOffice.ErrorInfo) –
 
- ioc (
- 
GOffice.io_error_occurred(ioc)¶
- Parameters: - ioc ( - GOffice.IOContext) –- Return type: - bool
- 
GOffice.io_error_push(ioc, error)¶
- Parameters: - ioc (GOffice.IOContext) –
- error (GOffice.ErrorInfo) –
 
- ioc (
- 
GOffice.io_error_string(ioc, str)¶
- Parameters: - ioc (GOffice.IOContext) –
- str (str) –
 
- ioc (
- 
GOffice.io_error_unknown(ioc)¶
- Parameters: - ioc ( - GOffice.IOContext) –
- 
GOffice.io_progress_message(io_context, msg)¶
- Parameters: - io_context (GOffice.IOContext) –
- msg (str) –
 
- io_context (
- 
GOffice.io_progress_range_pop(io_context)¶
- Parameters: - io_context ( - GOffice.IOContext) –
- 
GOffice.io_progress_range_push(io_context, min, max)¶
- Parameters: - io_context (GOffice.IOContext) –
- min (float) –
- max (float) –
 
- io_context (
- 
GOffice.io_progress_unset(io_context)¶
- Parameters: - io_context ( - GOffice.IOContext) –
- 
GOffice.io_progress_update(io_context, f)¶
- Parameters: - io_context (GOffice.IOContext) –
- f (float) –
 
- io_context (
- 
GOffice.io_value_progress_set(io_context, total, step)¶
- Parameters: - io_context (GOffice.IOContext) –
- total (int) –
- step (int) –
 
- io_context (
- 
GOffice.io_value_progress_update(io_context, value)¶
- Parameters: - io_context (GOffice.IOContext) –
- value (int) –
 
- io_context (
- 
GOffice.io_warning_occurred(ioc)¶
- Parameters: - ioc ( - GOffice.IOContext) –- Return type: - bool
- 
GOffice.io_warning_unknown_font(ioc, font_name)¶
- Parameters: - ioc (GOffice.IOContext) –
- font_name (str) –
 
- ioc (
- 
GOffice.io_warning_unknown_function(ioc, funct_name)¶
- Parameters: - ioc (GOffice.IOContext) –
- funct_name (str) –
 
- ioc (
- 
GOffice.io_warning_unsupported_feature(ioc, feature)¶
- Parameters: - ioc (GOffice.IOContext) –
- feature (str) –
 
- ioc (
- 
GOffice.line_dash_as_label(type)¶
- Parameters: - type ( - GOffice.LineDashType) – a- GOffice.LineDashType- Returns: - a pointer to the user readable name of the dash type, or the name of - GOffice.LineDashType.NONEif type is invalid. The returned string should not be freed.- Return type: - str
- 
GOffice.line_dash_as_str(type)¶
- Parameters: - type ( - GOffice.LineDashType) – a- GOffice.LineDashType- Returns: - a pointer to the nickname of the dash type, or “none” if type is invalid. The returning string should not be freed. - Return type: - str
- 
GOffice.line_dash_from_str(name)¶
- Parameters: - name ( - str) – Name of the dash type- Returns: - a - GOffice.LineDashTypecorresponding to name, or- GOffice.LineDashType.NONEif not found.- Return type: - GOffice.LineDashType
- 
GOffice.line_dash_get_length(type)¶
- Parameters: - type ( - GOffice.LineDashType) –- GOffice.LineDashType- Returns: - the unscaled length of the dash sequence. - Return type: - float
- 
GOffice.line_dash_get_sequence(type, scale)¶
- Parameters: - type (GOffice.LineDashType) – aGOffice.LineDashType
- scale (float) – dash scale
 - Returns: - a struct containing the dash sequence corresponding to type, or - Noneif type is invalid or equal to- GOffice.LineDashType.NONE. The lengths are scaled according to scale.- Return type: 
- type (
- 
GOffice.line_interpolation_as_label(type)¶
- Parameters: - type ( - GOffice.LineInterpolation) – an interpolation type- Returns: - a pointer to the label of type, or the name of - GOffice.LineInterpolation.LINEARif type is invalid. The returned string should not be freed.- Return type: - str
- 
GOffice.line_interpolation_as_str(type)¶
- Parameters: - type ( - GOffice.LineInterpolation) – an interpolation type- Returns: - a pointer to the nickname of type, or “linear” if type is invalid. The returned string should not be freed. - Return type: - str
- 
GOffice.line_interpolation_auto_skip(type)¶
- Parameters: - type ( - GOffice.LineInterpolation) – an interpolation type- Returns: - Trueif the line interpolation type forces skipping invalid data,- Falseif it is only optional.- Return type: - bool
- 
GOffice.line_interpolation_from_str(name)¶
- Parameters: - name ( - str) – an interpolation type nickname- Returns: - a - GOffice.LineInterpolationcorresponding to name, or- GOffice.LineInterpolation.LINEARif not found.- Return type: - GOffice.LineInterpolation
- 
GOffice.line_interpolation_supports_radial(type)¶
- Parameters: - type ( - GOffice.LineInterpolation) – an interpolation type- Returns: - Trueif the line interpolation type can be used with radial axes set,- Falseif it can’t.- Return type: - bool
- 
GOffice.linear_regression(xss, dim, ys, n, affine)¶
- Parameters: - Returns: - GOffice.RegressionResultas above.- res: - place for constant[0] and slope1[1], slope2[2],… There will be dim+1 results. - stat_: - non- - Nonestorage for additional results.- Return type: - ( - GOffice.RegressionResult, res:- float, stat_:- GOffice.go_regression_stat_t)- Performs multi-dimensional linear regressions on the input points. Fits to “y = b + a1 * x1 + … ad * xd”. 
- 
GOffice.linear_regression_leverage(A, d, m, n)¶
- Parameters: - Return type: 
- 
GOffice.linear_solve(A, b, n, res)¶
- Parameters: - Return type: 
- 
GOffice.linear_solve_multiple(A, B, n, bn)¶
- Parameters: - Return type: 
- 
GOffice.list_index_custom(list, data, cmp_func)¶
- Parameters: - list ([object]) –GLib.List
- data (objectorNone) – element for which the index is searched for
- cmp_func (GLib.CompareFunc) –GLib.CompareFunc
 - Returns: - the data index in the list. - Return type: - Searched for data in list and return the corresponding index or -1 if not found. 
- list ([
- 
GOffice.load_pango_attributes_into_buffer(markup, buffer, str)¶
- Parameters: - markup (Pango.AttrList) –
- buffer (Gtk.TextBuffer) –
- str (str) –
 
- markup (
- 
GOffice.locale_24h()¶
- Returns: - Trueif the locale uses a 24h clock,- Falseotherwise.- Return type: - bool
- 
GOffice.locale_boolean_name(b)¶
- Parameters: - b ( - bool) – a boolean- GOffice.value- Returns: - Current locale’s rendering of b. - Return type: - str
- 
GOffice.locale_get_currency(precedes, space_sep)¶
- Parameters: - Returns: - A string with the default currency - Return type: - Play with the default logic so that things come out nicely for the default case. 
- 
GOffice.locale_get_date_format()¶
- Returns: - Current locale’s date format as a string. - Return type: - GLib.String
- 
GOffice.locale_get_decimal()¶
- Returns: - Current locale’s decimal separator. - Return type: - GLib.String
- 
GOffice.locale_get_thousand()¶
- Returns: - Current locale’s thousands separator. This may be an empty string. - Return type: - GLib.String
- 
GOffice.locale_get_time_format()¶
- Returns: - Current locale’s time format as a string. - Return type: - GLib.String
- 
GOffice.locale_untranslated_booleans()¶
- Short circuit the current locale so that we can import files and still produce error messages in the current LC_MESSAGE 
- 
GOffice.logarithmic_fit(xs, ys, n, res)¶
- Parameters: - Returns: - GOffice.RegressionResultas above.- Return type: - Performs a two-dimensional non-linear fitting on the input points. Fits to “y = a + b * ln (sign * (x - c))”, with sign in {-1, +1}. The graph is a logarithmic curve moved horizontally by c and possibly mirrored across the y-axis (if sign = -1). - Fits c (and sign) by iterative trials, but seems to be fast enough even for automatic recomputation. - Adapts c until a local minimum of squared residuals is reached. For each new c tried out the corresponding a and b are calculated by linear regression. If no local minimum is found, an error is returned. If there is more than one local minimum, the one found is not necessarily the smallest (i.e., there might be cases in which the returned fit is not the best possible). If the shape of the point cloud is to different from ``logarithmic’’, either sign can not be determined (error returned) or no local minimum will be found. - (Requires: at least 3 different x values, at least 3 different y values.) 
- 
GOffice.logarithmic_regression(xss, dim, ys, n, affine, res, stat_)¶
- Parameters: - xss (float) – x-vectors (i.e. independent data)
- dim (int) – number of x-vectors
- ys (float) – y-vector (dependent data)
- n (int) – number of data points
- affine (bool) – ifTrue, a non-zero constant is allowed
- res (float) – output place for constant[0] and factor1[1], factor2[2],… There will be dim+1 results.
- stat (GOffice.go_regression_stat_t) – non-Nonestorage for additional results.
 - Returns: - GOffice.RegressionResultas above.- Return type: - This is almost a copy of linear_regression and produces multi-dimensional linear regressions on the input points after transforming xss to ln(xss). Fits to “y = b + a1 * z1 + … ad * zd” with “zi = ln (xi)”. Problems with arrays in the calling function: see comment to gnumeric_linest, which is also valid for gnumeric_logreg. - (Errors: less than two points, all points on a vertical line, non-positive x data.) 
- xss (
- 
GOffice.mathml_to_itex(mml, buf, length, compact, gcc)¶
- Parameters: - mml (str) –
- buf (str) –
- length (int) –
- compact (bool) –
- gcc (GOffice.CmdContext) –
 - Return type: 
- mml (
- 
GOffice.matrix_pseudo_inverse(A, m, n, threshold, B)¶
- Parameters: 
- Parameters: - Implementation of a - Gtk.MenuPositionFuncthat positions the child window under the parent one, for use with- Gtk.Menu.popup.
- 
GOffice.mime_to_image_format(mime_type)¶
- Parameters: - mime_type ( - str) – a mime type string- Returns: - file extension for the given mime type. - Return type: - str
- 
GOffice.mime_type_get_description(mime_type)¶
- Parameters: - mime_type ( - str) – the mime type to describe.- Returns: - the description for the mime type as a newly allocated string. Needs to be freed with - GLib.free(). If the description is not found, the mime type itself will be returned.- Return type: - str
- 
GOffice.non_linear_regression(f, xvals, par, yvals, sigmas, x_dim, p_dim, chi, errors)¶
- Parameters: - f (GOffice.RegressionFunction) – the model function
- xvals (float) – independent values.
- par (float) – model parameters.
- yvals (float) – dependent values.
- sigmas (float) – stahdard deviations for the dependent values.
- x_dim (int) – Number of data points.
- p_dim (int) – Number of parameters.
- chi (float) – Chi Squared of the final result. ThisGOffice.valueis not very meaningful without the sigmas.
- errors (float) – MUST ALREADY BE ALLOCATED. These are the approximated standard deviation for each parameter.
 - Returns: - the results of the non-linear regression from the given initial values. The resulting parameters are placed back into par. - Return type: - SYNOPSIS: result = non_linear_regression (f, xvals, par, yvals, sigmas, x_dim, p_dim, &chi, errors) Non linear regression. 
- f (
- 
GOffice.object_properties_apply(obj, props, changed_only)¶
- Parameters: - obj (GObject.Object) –GObject.Object
- props ([object]) – the list of properties and their values to apply
- changed_only (bool) – whether to restrict calls toGObject.Object.set_property() to properties with changed values.
 - Sets a list of properties for obj. The list needs to be a list of alternating - GObject.ParamSpecand- GObject.Value.
- obj (
- 
GOffice.object_properties_collect(obj)¶
- Parameters: - obj ( - GObject.Object) –- GObject.Object- Returns: - the list of collected properties as - GObject.ParamSpecand values as- GObject.Value.- Return type: - [ - object]- Collect all rw properties and their values. 
- 
GOffice.object_properties_free(props)¶
- Parameters: - props ([ - object]) – the list of properties and their values to unset- Unsezts the values in the list which needs to be a list of alternating - GObject.ParamSpecand- GObject.Value.
- 
GOffice.object_set_property(obj, property_name, user_prop_name, value, err, error_template)¶
- Parameters: - obj (GObject.Object) –
- property_name (str) –
- user_prop_name (str) –
- value (str) –
- err (GLib.Error) –
- error_template (str) –
 - Return type: 
- obj (
- 
GOffice.object_toggle(object, property_name)¶
- Parameters: - object (objectorNone) –GObject.Object
- property_name (str) – name
 - Toggle a boolean object property. 
- object (
- 
GOffice.pango_attr_list_erase(attrs, pos, len)¶
- Parameters: - attrs (Pango.AttrList) – An attribute list
- pos (int) – a text position in bytes
- len (int) – length of segment in bytes
 - This function erases a segment of attributes. This is what to call after deleting a segment from the text described by the attributes. 
- attrs (
- 
GOffice.pango_attr_list_is_empty(attrs)¶
- Parameters: - attrs ( - Pango.AttrList) –- Return type: - bool
- 
GOffice.pango_attr_list_open_hole(tape, pos, len)¶
- Parameters: - tape (Pango.AttrList) – An attribute list
- pos (int) – a text position in bytes
- len (int) – length of segment in bytes
 - This function opens up a blank segment of attributes. This is what to call after inserting a segment into the text described by the attributes. 
- tape (
- 
GOffice.pango_attr_list_unset(list, start, end, type)¶
- Parameters: - list (Pango.AttrList) –Pango.AttrList
- start (int) – starting character index
- end (int) – last character index
- type (Pango.AttrType) –Pango.AttrType
 - See http://bugzilla.gnome.org/show_bug.cgi?id=163679 
- list (
- 
GOffice.pango_attr_subscript_get_attr_type()¶
- Return type: - Pango.AttrType
- 
GOffice.pango_attr_superscript_get_attr_type()¶
- Return type: - Pango.AttrType
- 
GOffice.pango_attrs_to_markup(attrs, text)¶
- Parameters: - attrs (Pango.AttrList) –
- text (str) –
 - Return type: 
- attrs (
- 
GOffice.pango_measure_string(context, font_desc, str)¶
- Parameters: - context (Pango.Context) –Pango.Context
- font_desc (Pango.FontDescription) –Pango.FontDescription
- str (str) – The text to measure.
 - Returns: - the pixel length of str according to context. - Return type: - A utility function to measure text. 
- context (
- 
GOffice.pango_translate_attributes(attrs)¶
- Parameters: - attrs ( - Pango.AttrList) –- Return type: - Pango.AttrList
- 
GOffice.pango_translate_layout(layout)¶
- Parameters: - layout ( - Pango.Layout) –
- 
GOffice.parse_key_value(options, err, handler, user)¶
- Parameters: - options (str) – Options string.
- err (GLib.Error) – Reference to storeGLib.Errorif parsing fails.
- handler (GOffice.ParseKeyValueFunc) – Handler to call for each key-GOffice.valuepair.
- user (objectorNone) – user pointer.
 - Return type: 
- options (
- 
GOffice.pattern_as_str(pattern)¶
- Parameters: - pattern ( - GOffice.PatternType) –- Return type: - str
- 
GOffice.pattern_from_str(name)¶
- Parameters: - name ( - str) –- Return type: - GOffice.PatternType
- 
GOffice.pattern_selector_new(initial_type, default_type)¶
- Parameters: - initial_type (GOffice.PatternType) – pattern type initially selected
- default_type (GOffice.PatternType) – automatic pattern type
 - Returns: - a new - Gtk.Widget.- Return type: - Creates a new pattern selector. 
- initial_type (
- 
GOffice.pattern_selector_set_colors(selector, foreground, background)¶
- Parameters: - selector (GOffice.Selector) – a patternGOffice.Selector
- foreground (int) – foreground color
- background (int) – background color
 - Updates swatch colors of selector. 
- selector (
- 
GOffice.pcauchy(x, location, scale, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.plnorm(x, logmean, logsd, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.plugins_get_available_plugins()¶
- Returns: - the list of available plugins. The returned - GOffice.valuemust not be freed and stays valid until calling plugins_rescan or plugins_shutdown.- Return type: - [ - GOffice.Plugin]
- 
GOffice.plugins_get_plugin_by_id(plugin_id)¶
- Parameters: - plugin_id ( - str) – String containing plugin ID- Returns: - GOffice.Pluginobject for plugin with ID equal to plugin_id or- Noneif there’s no plugin available with given id. Function returns “borrowed” reference, use- GObject.Object.refif you want to be sure that plugin won’t disappear.- Return type: - GOffice.Plugin
- 
GOffice.plugins_init(context, known_states, active_plugins, plugin_dirs, activate_new_plugins, default_loader_type)¶
- Parameters: - context (GOffice.CmdContextorNone) –GOffice.CmdContextused to report errors
- known_states ([str] orNone) – A list of known states (defined how ?)
- active_plugins ([str] orNone) – A list of active plugins
- plugin_dirs ([str] orNone) – a list of directories to search for plugins
- activate_new_plugins (bool) – activate plugins we have no seen before.
- default_loader_type (GObject.GType) – importer to use by default.
 - Initializes the plugin subsystem. Might be called several times to add new plugins. 
- context (
- 
GOffice.plugins_register_loader(id_str, service)¶
- Parameters: - id_str (str) – Loader’s id
- service (GOffice.PluginService) – Plugin service of type “plugin_loader”
 - Registers new type of plugin loader identified by loader_id (identifier consists of loader’s plugin ID and service ID concatenated using colon). All requests to create new loader object of this type will be passed to service. - This function is intended for use by - GOffice.PluginServiceobjects.
- id_str (
- 
GOffice.plugins_rescan(ret_error, ret_new_plugins)¶
- Parameters: - ret_error (GOffice.ErrorInfo) – Pointer used to report errors
- ret_new_plugins ([GOffice.Plugin]) – Optional pointer to return list of new plugins
 
- ret_error (
- 
GOffice.plugins_shutdown()¶
- Returns: - the list of plugins still in use. - Return type: - [ - str]- Shuts down the plugin subsystem. Call this function only once before exiting the application. Some plugins may be left active or in broken state, so calling plugins_init again will NOT work properly. 
- 
GOffice.plugins_unregister_loader(id_str)¶
- Parameters: - id_str ( - str) – Loader’s id- Unregisters a type of plugin loader identified by loader_id. After callingthis function Gnumeric will be unable to load plugins supported by the specified loader. - This function is intended for use by - GOffice.PluginServiceobjects.
- 
GOffice.pnorm(x, mu, sigma, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.pnorm_both(x, cum, ccum, i_tail, log_p)¶
- Parameters: 
- 
GOffice.power_regression(xss, dim, ys, n, affine, res, stat_)¶
- Parameters: - xss (float) – x-vectors (i.e. independent data)
- dim (int) – number of x-vectors
- ys (float) – y-vector (dependent data)
- n (int) – number of data points
- affine (bool) – ifTrue, a non-one multiplier is allowed
- res (float) – output place for constant[0] and root1[1], root2[2],… There will be dim+1 results.
- stat (GOffice.go_regression_stat_t) – non-Nonestorage for additional results.
 - Returns: - GOffice.RegressionResultas above.- Return type: - Performs one-dimensional linear regressions on the input points. Fits to “y = b * x1^m1 * … * xd^md ” or equivalently to “log y = log b + m1 * log x1 + … + md * log xd”. 
- xss (
- 
GOffice.pweibull(x, shape, scale, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.qcauchy(p, location, scale, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.qlnorm(p, logmean, logsd, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.qnorm(p, mu, sigma, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.quad_acos(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the arc cosine of a, storing the result in res. 
- 
GOffice.quad_acosl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the arc cosine of a, storing the result in res. 
- 
GOffice.quad_add(a, b)¶
- Parameters: - a (GOffice.Quad) – quad-precisionGOffice.value
- b (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function adds a and b, storing the result in res. 
- a (
- 
GOffice.quad_addl(a, b)¶
- Parameters: - a (GOffice.Quadl) – quad-precisionGOffice.value
- b (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function adds a and b, storing the result in res. 
- a (
- 
GOffice.quad_asin(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the arc sine of a, storing the result in res. 
- 
GOffice.quad_asinl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the arc sine of a, storing the result in res. 
- 
GOffice.quad_atan2(y, x)¶
- Parameters: - y (GOffice.Quad) – quad-precisionGOffice.value
- x (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function computes polar angle coordinate of the point (x,`y`), storing the result in res. 
- y (
- 
GOffice.quad_atan2l(y, x)¶
- Parameters: - y (GOffice.Quadl) – quad-precisionGOffice.value
- x (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes polar angle coordinate of the point (x,`y`), storing the result in res. 
- y (
- 
GOffice.quad_atan2pi(y, x)¶
- Parameters: - y (GOffice.Quad) – quad-precisionGOffice.value
- x (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function computes polar angle coordinate of the point (x,`y`) divided by pi, storing the result in res. 
- y (
- 
GOffice.quad_atan2pil(y, x)¶
- Parameters: - y (GOffice.Quadl) – quad-precisionGOffice.value
- x (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes polar angle coordinate of the point (x,`y`) divided by pi, storing the result in res. 
- y (
- 
GOffice.quad_constant8(data, base, scale)¶
- Parameters: - Returns: - result location - Return type: - res: - GOffice.Quad- This function interprets a vector of digits in a given base as a quad-precision - GOffice.value. It is mostly meant for internal use.
- 
GOffice.quad_cos(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the cosine of a, storing the result in res. 
- 
GOffice.quad_cosl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the cosine of a, storing the result in res. 
- 
GOffice.quad_cospi(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication. 
- 
GOffice.quad_cospil(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication. 
- 
GOffice.quad_div(a, b)¶
- Parameters: - a (GOffice.Quad) – quad-precisionGOffice.value
- b (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function divides a and b, storing the result in res. 
- a (
- 
GOffice.quad_divl(a, b)¶
- Parameters: - a (GOffice.Quadl) – quad-precisionGOffice.value
- b (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function divides a and b, storing the result in res. 
- a (
- 
GOffice.quad_dot_product(a, b)¶
- Parameters: - a ([GOffice.Quad]) – vector of quad-precision values
- b ([GOffice.Quad]) – vector of quad-precision values
 - Returns: - result location - Return type: - res: - GOffice.Quad
- a ([
- 
GOffice.quad_dot_productl(a, b)¶
- Parameters: - a ([GOffice.Quadl]) – vector of quad-precision values
- b ([GOffice.Quadl]) – vector of quad-precision values
 - Returns: - result location - Return type: - res: - GOffice.Quadl
- a ([
- 
GOffice.quad_end(state)¶
- Parameters: - state ( - objector- None) – state pointer from- GOffice.Quad.start.- This ends a section of quad precision arithmetic. 
- 
GOffice.quad_endl(state)¶
- Parameters: - state ( - objector- None) – state pointer from- GOffice.Quad.startl.- This ends a section of quad precision arithmetic. 
- 
GOffice.quad_exp(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - res: - result location - exp2: - (allow-none): power-of-2 result scaling location - Return type: - (res: - GOffice.Quad, exp2:- float)- This function computes the exponential function at a, storing the result in res. If the optional exp2 is supplied, it is used to return a power of 2 by which the result should be scaled. This is useful to represent results much, much bigger than double precision can handle. 
- 
GOffice.quad_expm1(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the exponential function at a with 1 subtracted, storing the difference in res. 
- 
GOffice.quad_expm1l(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the exponential function at a with 1 subtracted, storing the difference in res. 
- 
GOffice.quad_floor(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function takes the floor of a, storing the result in res. 
- 
GOffice.quad_floorl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function takes the floor of a, storing the result in res. 
- 
GOffice.quad_hypot(a, b)¶
- Parameters: - a (GOffice.Quad) – quad-precisionGOffice.value
- b (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the square root of a^2 plugs b^2, storing the result in res. 
- a (
- 
GOffice.quad_hypotl(a, b)¶
- Parameters: - a (GOffice.Quadl) – quad-precisionGOffice.value
- b (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the square root of a^2 plugs b^2, storing the result in res. 
- a (
- 
GOffice.quad_init(h)¶
- Parameters: - h ( - float) – a double precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This stores the - GOffice.valueh in res. As an exception, this may be called outside- GOffice.Quad.startand- GOffice.Quad.endsections.
- 
GOffice.quad_log(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the natural logarithm at a, storing the result in res. 
- 
GOffice.quad_logl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the natural logarithm at a, storing the result in res. 
- 
GOffice.quad_matrix_back_solvel(R, x, b, allow_degenerate)¶
- Parameters: - R (GOffice.QuadMatrixl) –
- x (GOffice.Quadl) –
- b (GOffice.Quadl) –
- allow_degenerate (bool) –
 - Return type: 
- R (
- 
GOffice.quad_matrix_copyl(A, B)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- A (
- 
GOffice.quad_matrix_determinantl(A, res)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- res (GOffice.Quadl) –
 
- A (
- 
GOffice.quad_matrix_dumpl(A, fmt)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- fmt (str) –
 
- A (
- 
GOffice.quad_matrix_freel(A)¶
- Parameters: - A ( - GOffice.QuadMatrixl) –
- 
GOffice.quad_matrix_fwd_solvel(R, x, b, allow_degenerate)¶
- Parameters: - R (GOffice.QuadMatrixl) –
- x (GOffice.Quadl) –
- b (GOffice.Quadl) –
- allow_degenerate (bool) –
 - Return type: 
- R (
- 
GOffice.quad_matrix_multiplyl(C, A, B)¶
- Parameters: - C (GOffice.QuadMatrixl) –
- A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- C (
- 
GOffice.quad_matrix_transposel(A, B)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- A (
- 
GOffice.quad_mul(a, b)¶
- Parameters: - a (GOffice.Quad) – quad-precisionGOffice.value
- b (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function multiplies a and b, storing the result in res. 
- a (
- 
GOffice.quad_mul12(x, y)¶
- Parameters: - Returns: - result location - Return type: - res: - GOffice.Quad- This function multiplies x and y, storing the result in res with full quad precision. 
- 
GOffice.quad_mull(a, b)¶
- Parameters: - a (GOffice.Quadl) – quad-precisionGOffice.value
- b (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function multiplies a and b, storing the result in res. 
- a (
- 
GOffice.quad_pow(x, y)¶
- Parameters: - x (GOffice.Quad) – quad-precisionGOffice.value
- y (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - res: - result location - exp2: - (allow-none): power-of-2 result scaling location - Return type: - (res: - GOffice.Quad, exp2:- float)- This function computes x to the power of y, storing the result in res. If the optional exp2 is supplied, it is used to return a power of 2 by which the result should be scaled. This is useful to represent results much, much bigger than double precision can handle. 
- x (
- 
GOffice.quad_qr_determinantl(qr, det)¶
- Parameters: - qr (GOffice.QuadQRl) –
- det (GOffice.Quadl) –
 
- qr (
- 
GOffice.quad_qr_freel(qr)¶
- Parameters: - qr ( - GOffice.QuadQRl) –
- 
GOffice.quad_qr_mark_degeneratel(qr, i)¶
- Parameters: - qr (GOffice.QuadQRl) –
- i (int) –
 
- qr (
- 
GOffice.quad_qr_multiply_qtl(qr, x)¶
- Parameters: - qr (GOffice.QuadQRl) –
- x (GOffice.Quadl) –
 
- qr (
- 
GOffice.quad_qr_rl(qr)¶
- Parameters: - qr ( - GOffice.QuadQRl) –- Return type: - GOffice.QuadMatrixl
- 
GOffice.quad_sin(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the sine of a, storing the result in res. 
- 
GOffice.quad_sinl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the sine of a, storing the result in res. 
- 
GOffice.quad_sinpi(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication. 
- 
GOffice.quad_sinpil(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication. 
- 
GOffice.quad_sqrt(a)¶
- Parameters: - a ( - GOffice.Quad) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quad- This function takes the square root of a, storing the result in res. 
- 
GOffice.quad_sqrtl(a)¶
- Parameters: - a ( - GOffice.Quadl) – quad-precision- GOffice.value- Returns: - result location - Return type: - res: - GOffice.Quadl- This function takes the square root of a, storing the result in res. 
- 
GOffice.quad_start()¶
- Returns: - a pointer to pass to - GOffice.Quad.end() when done.- Return type: - objector- None- Initializes - GOffice.Quadarithmetic. Any use of- GOffice.Quadmust occur between calls to- GOffice.Quad.start() and- GOffice.Quad.end().
- 
GOffice.quad_startl()¶
- Returns: - a pointer to pass to - GOffice.Quad.endl() when done.- Return type: - objector- None- Initializes - GOffice.Quadlarithmetic. Any use of- GOffice.Quadlmust occur between calls to- GOffice.Quad.startl() and- GOffice.Quad.endl().
- 
GOffice.quad_sub(a, b)¶
- Parameters: - a (GOffice.Quad) – quad-precisionGOffice.value
- b (GOffice.Quad) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quad- This function subtracts a and b, storing the result in res. 
- a (
- 
GOffice.quad_subl(a, b)¶
- Parameters: - a (GOffice.Quadl) – quad-precisionGOffice.value
- b (GOffice.Quadl) – quad-precisionGOffice.value
 - Returns: - result location - Return type: - res: - GOffice.Quadl- This function subtracts a and b, storing the result in res. 
- a (
- 
GOffice.qweibull(p, shape, scale, lower_tail, log_p)¶
- Parameters: - Return type: 
- 
GOffice.range_fractile_inter(xs, n, res, f)¶
- Parameters: - Return type: 
- 
GOffice.range_fractile_inter_nonconst(xs, n, res, f)¶
- Parameters: - Return type: 
- 
GOffice.range_fractile_inter_sorted(xs, n, res, f)¶
- Parameters: - Return type: 
- 
GOffice.range_median_inter(xs, n, res)¶
- Parameters: - Return type: 
- 
GOffice.range_median_inter_nonconst(xs, n, res)¶
- Parameters: - Return type: 
- 
GOffice.range_median_inter_sorted(xs, n, res)¶
- Parameters: - Return type: 
- 
GOffice.regcomp(preg, pattern, cflags)¶
- Parameters: - preg (GOffice.Regexp) –
- pattern (str) –
- cflags (int) –
 - Return type: 
- preg (
- 
GOffice.regerror(errcode, preg, errbuf, errbuf_size)¶
- Parameters: - errcode (int) –
- preg (GOffice.Regexp) –
- errbuf (str) –
- errbuf_size (int) –
 - Return type: 
- errcode (
- 
GOffice.regexec(preg, string, nmatch, pmatch, eflags)¶
- Parameters: - preg (GOffice.Regexp) –
- string (str) –
- nmatch (int) –
- pmatch (GOffice.Regmatch) –
- eflags (int) –
 - Return type: 
- preg (
- 
GOffice.regexp_quote(target, s)¶
- Parameters: - target (GLib.String) –
- s (str) –
 
- target (
- 
GOffice.regexp_quote1(target, s)¶
- Parameters: - target (GLib.String) –
- s (str) –
 - Return type: 
- target (
- 
GOffice.regfree(preg)¶
- Parameters: - preg ( - GOffice.Regexp) –
- 
GOffice.regression_stat_destroyl(stat_)¶
- Parameters: - stat ( - GOffice.go_regression_stat_tl) –
- 
GOffice.regression_stat_newl()¶
- Return type: - GOffice.go_regression_stat_tl
- 
GOffice.render_general(layout, str, measure, metrics, val, col_width, unicode_minus, numeral_shape, custom_shape_flags)¶
- Parameters: - layout (Pango.Layout) – OptionalPango.Layout, probably preseeded withGOffice.fontattribute.
- str (GLib.String) – aGLib.Stringto store (not append!) the resulting string in.
- measure (GOffice.FormatMeasure) – Function to measure width of string/layout.
- metrics (GOffice.FontMetrics) – Font metrics corresponding to measure.
- val (float) – floating-pointGOffice.value. Must be finite.
- col_width (int) – intended max width of layout in the units that measure uses. A width of -1 means no restriction.
- unicode_minus (bool) – Use unicode minuses, not hyphens.
- numeral_shape (int) – numeral shape identifier.
- custom_shape_flags (int) – flags for using numeral_shape.
 - Render a floating-point - GOffice.valueinto layout in such a way that the layouting width does not needlessly exceed col_width. Optionally use unicode minus instead of hyphen.
- layout (
- 
GOffice.rsm_register_file(id, data, len)¶
- Parameters: 
- 
GOffice.search_match_string(sr, src)¶
- Parameters: - sr (GOffice.SearchReplace) –
- src (str) –
 - Return type: 
- sr (
- 
GOffice.set_file_permissions(uri, file_permissions)¶
- Parameters: - uri (str) –
- file_permissions (GOffice.FilePermissions) –
 
- uri (
- 
GOffice.shell_argv_to_glib_encoding(argc, argv)¶
- Parameters: - Returns: - the arguments in UTF-8 locale. - Return type: - [ - str]- Transform arguments to UTF-8 when needed. 
- 
GOffice.shell_argv_to_glib_encoding_free()¶
- 
GOffice.shutdown()¶
- Decrements the counter for data initialized by - GOffice.init(). When the counter reaches 0, the data is freed/cleaned up as appropriate.
- 
GOffice.sinpi(x)¶
- Parameters: - x ( - float) – a number- Returns: - the sine of Pi times x, but with less error than doing the multiplication outright. - Return type: - float
- 
GOffice.stern_brocot(val, max_denom, res_num, res_denom)¶
- Parameters: 
- 
GOffice.strescape(target, str)¶
- Parameters: - target (GLib.String) –
- str (str) –
 
- target (
- 
GOffice.string_ERROR()¶
- Returns: - A string saying ‘ERROR’ but does not add a ref to it. - Return type: - GOffice.String- A convenience for g_return_val to share one error string without adding a reference to functions that do not add references to the result 
- 
GOffice.string_append_c_n(target, c, n)¶
- Parameters: - target (GLib.String) –
- c (int) –
- n (int) –
 
- target (
- 
GOffice.string_append_gstring(target, src)¶
- Parameters: - target (GLib.String) –
- src (GLib.String) –
 
- target (
- 
GOffice.string_cmp(gstr_a, gstr_b)¶
- Parameters: - Return type: 
- 
GOffice.string_cmp_ignorecase(gstr_a, gstr_b)¶
- Parameters: - Return type: 
- 
GOffice.string_equal(gstr_a, gstr_b)¶
- Parameters: - Return type: 
- 
GOffice.string_equal_ignorecase(gstr_a, gstr_b)¶
- Parameters: - Returns: - Trueif the two strings are equal when ignoring letter case.- Return type: 
- 
GOffice.string_equal_rich(gstr_a, gstr_b)¶
- Parameters: - Return type: 
- 
GOffice.string_foreach_base(callback, *data)¶
- Parameters: - callback (GLib.HFunc) – callback
- data (objectorNone) – user data
 - Iterates through the strings data base and apply callback to each. 
- callback (
- 
GOffice.string_replace(target, pos, oldlen, txt, newlen)¶
- Parameters: - target (GLib.String) –
- pos (int) –
- oldlen (int) –
- txt (str) –
- newlen (int) –
 
- target (
- 
GOffice.strsplit_to_slist(str, delimiter)¶
- Parameters: - Returns: - string list which you should free after use using function g_slist_free_full(), using - GLib.freeas second argument.- Return type: - [ - str]- Splits up string into tokens at delim and returns a string list. 
- 
GOffice.strunescape(target, str)¶
- Parameters: - target (GLib.String) –
- str (str) –
 - Return type: 
- target (
- 
GOffice.tanpi(x)¶
- Parameters: - x ( - float) – a number- Returns: - the tangent of Pi times x, but with less error than doing the multiplication outright. - Return type: - float
- 
GOffice.unit_define(symbol, dim, factor_to_SI)¶
- Parameters: - Returns: - the named - GOffice.Unit. If a- GOffice.Unitof that name already exists, the existing is returned. Otherwise a new one is created.- Return type: 
- 
GOffice.unit_get(id)¶
- Parameters: - id ( - GOffice.UnitId) –- GOffice.UnitIdfor unit to query- Returns: - the - GOffice.Unitcorresponding to id.- Return type: - GOffice.Unitor- None
- 
GOffice.unit_get_from_symbol(symbol)¶
- Parameters: - symbol ( - str) –- Return type: - GOffice.Unit
- 
GOffice.url_check_extension(uri, std_ext)¶
- Parameters: - Returns: - Falseif the uri has an extension not matching std_ext- new_uri: - New uri - Return type: - Modifies given uri by adding the extension std_ext if needed. If no std_ext is given or uri already has some extension, it just copies uri. - Value in new_uri: newly allocated string which you should free after use, containing (optionally) modified uri. 
- 
GOffice.url_encode(uri, type)¶
- Parameters: - Returns: - an encoded string which the caller is responsible for freeing. - Return type: - url-encode a string according to RFC 2368. 
- 
GOffice.url_resolve_relative(ref_uri, rel_uri)¶
- Parameters: - Return type: 
- 
GOffice.utf8_strcapital(p, len)¶
- Parameters: - Returns: - newly allocated string. - Return type: - Similar to - GLib.utf8_strupand- GLib.utf8_strup, except that this function creates a string “Very Much Like: This, One”.
- 
GOffice.uuid()¶
- Returns: - A string with RFC41122 version 4 random UUID, must be freed with _free(). - Return type: - str- RFC4122 version 4 compliant random UUIDs generator. 
- 
GOffice.xml_in_doc_dispose_on_exit(pdoc)¶
- Parameters: - pdoc ( - Gsf.XMLInDoc) –
- 
GOffice.xml_node_get_bool(node, name, result)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- result (bool) –
 - Return type: 
- node (
- 
GOffice.xml_node_get_double(node, name, result)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- result (float) –
 - Return type: 
- node (
- 
GOffice.xml_node_get_enum(node, name, etype, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- etype (GObject.GType) –
- val (int) –
 - Return type: 
- node (
- 
GOffice.xml_node_get_gocolor(node, name, result)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- result (int) –
 - Return type: 
- node (
- 
GOffice.xml_node_get_int(node, name, result)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- result (int) –
 - Return type: 
- node (
- 
GOffice.xml_node_set_bool(node, name, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- val (bool) –
 
- node (
- 
GOffice.xml_node_set_cstr(node, name, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- val (str) –
 
- node (
- 
GOffice.xml_node_set_double(node, name, val, precision)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- val (float) –
- precision (int) –
 
- node (
- 
GOffice.xml_node_set_enum(node, name, etype, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- etype (GObject.GType) –
- val (int) –
 
- node (
- 
GOffice.xml_node_set_gocolor(node, name, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- val (int) –
 
- node (
- 
GOffice.xml_node_set_int(node, name, val)¶
- Parameters: - node (libxml2.NodePtr) –
- name (str) –
- val (int) –
 
- node (
- 
GOffice.xml_out_add_color(out, id, c)¶
- Parameters: - out (Gsf.XMLOut) –
- id (str) –
- c (int) –
 
- out (
- 
GOffice.xml_out_add_double(output, id, d)¶
- Parameters: - output (Gsf.XMLOut) – destination
- id (strorNone) – attribute name
- d (float) –GOffice.value
 - Output a representation of d that will be read back without loss of precision. 
- output (