Module: GOffice
- Defined in:
- lib/goffice/loader.rb,
lib/goffice.rb,
lib/goffice/version.rb
Overview
Copyright (C) 2016 Ruby-GNOME2 Project Team
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Defined Under Namespace
Modules: ActionComboTextSearchDir, AnchorType, ArrowType, BasisType, CSplineType, CanvasDirection, CharmapSelTestDirection, DataFlags, Direction, DistributionType, DocControlState, DotDot, DrawingAnchorDir, FileFormatLevel, FileProbeLevel, FileSaveScope, FontScript, FormatFamily, FormatMagic, FormatNumberError, GeometryRotationType, GeometrySide, GradientDirection, GraphAxisElemType, GraphAxisMetrics, GraphAxisPolarUnit, GraphAxisPosition, GraphAxisSet, GraphAxisTickTypes, GraphAxisType, GraphDataType, GraphDimType, GraphErrorBarDirection, GraphErrorBarDisplay, GraphErrorBarType, GraphGridType, GraphMSDimType, GraphManualSizeMode, GraphObjectNamingConv, GraphObjectPosition, GraphPlotRenderingOrder, GraphRegCurveDrawingBounds, GraphSeriesFillType, GraphSeriesLabelsPos, GraphSeriesPriority, GraphWidgetSizeMode, ImageFormat, ImageType, Justification, LineDashType, LineInterpolation, MarkerShape, MimePriority, PathDirection, PathOptions, PatternType, ProgressHelperType, RegressionResult, ResourceType, Severity, SnapshotType, StyleFill, StyleFlag, UnitId, Version, _CmdContext Classes: 3DRotationSel, ActionComboColor, ActionComboPixmaps, ActionComboStack, ActionComboText, ArrowSel, CalendarButton, Canvas, CanvasArc, CanvasCircle, CanvasComponent, CanvasEllipse, CanvasGraph, CanvasGroup, CanvasImage, CanvasItem, CanvasLine, CanvasPath, CanvasPixbuf, CanvasPolygon, CanvasPolyline, CanvasRectangle, CanvasStyledItem, CanvasText, CanvasWidget, CharmapSel, CmdContext, ColorGroup, ColorPalette, ComboBox, ComboColor, ComboPixmaps, Component, ComponentMimeDialog, Data, DataMatrix, DataMatrixVal, DataScalar, DataScalarStr, DataScalarVal, DataVector, DataVectorStr, DataVectorVal, Distribution, Doc, DocControl, Emf, Error, FileOpener, FileSaver, FontSel, FontSelDialog, FormatSel, Graph3DBox, Graph3DBoxView, GraphAxis, GraphAxisBase, GraphAxisColorMap, GraphAxisLine, GraphChart, GraphChildButton, GraphColorScale, GraphDataAllocator, GraphDataEditor, GraphDataLabel, GraphDataset, GraphErrorBar, GraphGraph, GraphGraphView, GraphGrid, GraphGridLine, GraphLabel, GraphLegend, GraphObject, GraphOutlinedObject, GraphOutlinedView, GraphPlot, GraphPlotView, GraphRegCurve, GraphRegEqn, GraphRenderer, GraphSeries, GraphSeriesElement, GraphSeriesLabels, GraphSeriesLines, GraphSmoothedCurve, GraphStyledObject, GraphText, GraphTheme, GraphTrendLine, GraphView, GraphWidget, IOContext, Image, Loader, LocaleSel, Marker, MathEditor, MenuPixmaps, OptionMenu, Palette, Persist, Pixbuf, Plugin, PluginLoader, PluginLoaderModule, PluginService, PluginServiceFileOpener, PluginServiceFileSaver, PluginServiceGObjectLoader, PluginServiceGeneral, PluginServicePluginLoader, PluginServiceResource, PluginServiceSimple, RotationSel, SearchReplace, Selector, Spectre, Style, StyledObject, Svg, Undo, UndoBinary, UndoGroup, UndoUnary, View
Constant Summary collapse
- CM_PER_IN =
254- COLOR_GROUP_HISTORY_SIZE =
8- EMU_PER_IN =
914400- F_OK =
0- GEOMETRY_ANGLE_TOLERANCE =
0.001000- GOFFICE_API_VERSION =
0.0- GOFFICE_MODULE_PLUGIN_MAGIC_NUMBER =
1198421357- GOG_PARAM_FORCE_SAVE =
2- GOG_PARAM_POSITION =
4- GOG_RENDERER_GRIP_SIZE =
4- GOG_RENDERER_HAIRLINE_WIDTH_PTS =
0.500000- GOG_SERIES_ACCEPT_TREND_LINE =
1- LOGFIT_C_ACCURACY =
0.000001- LOGFIT_C_RANGE_FACTOR =
100- LOGFIT_C_STEP_FACTOR =
0.050000- M_PI =
3.141593- PARAM_PERSISTENT =
1- PT_PER_IN =
72- R_OK =
4- SUBSCRIPT_RISE =
-5000
- SUPERSCRIPT_RISE =
5000- UN_PER_CM =
0- UN_PER_EMU =
0- UN_PER_IN =
228600000- UN_PER_PT =
0- W_OK =
2- X_OK =
1- LOG_DOMAIN =
"GOffice"
Class Method Summary collapse
Instance Method Summary collapse
- #accumulator_add_quadl(acc, x) ⇒ nil
- #accumulator_addl(acc, x) ⇒ nil
- #accumulator_clearl(acc) ⇒ nil
- #accumulator_end(state) ⇒ nil
- #accumulator_endl(state) ⇒ nil
- #accumulator_freel(acc) ⇒ nil
- #accumulator_functional ⇒ Boolean
- #accumulator_functionall ⇒ Boolean
- #accumulator_new ⇒ GOffice::Accumulator
- #accumulator_newl ⇒ GOffice::Accumulatorl
- #accumulator_start ⇒ GObject
- #accumulator_startl ⇒ GObject
- #accumulator_valuel(acc) ⇒ GOffice::long double
-
#add_epsilon(x) ⇒ Float
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
-
#add_epsilonl(x) ⇒ GOffice::long double
Returns the next-larger representable value, except that zero and infinites are returned unchanged.
- #arrow_type_as_str(typ) ⇒ String
- #arrow_type_from_str(name) ⇒ GOffice::ArrowType
- #ascii_strcase_equal(v, v2) ⇒ Integer
- #ascii_strcase_hash(v) ⇒ Integer
- #ascii_strtod(s, end) ⇒ Float
- #ascii_strtold(s, end) ⇒ GOffice::long double
- #atan2pi(y, x) ⇒ Float
- #atan2pil(y, x) ⇒ GOffice::long double
- #atanpi(x) ⇒ Float
- #atanpil(x) ⇒ GOffice::long double
-
#atk_setup_label(label, target) ⇒ nil
A convenience routine to setup label-for/labeled-by relationship between a pair of widgets.
-
#basename_from_uri(uri) ⇒ String
Decode the final path component.
-
#bezier_spline_init(x, y, n, closed) ⇒ GOffice::BezierSpline
x and y values must be valid and finite.
-
#cairo_convert_data_from_pixbuf(dst, src, width, height, rowstride) ⇒ nil
Converts the pixel data stored in src in GDK_COLORSPACE_RGB pixbuf format to CAIRO_FORMAT_ARGB32 cairo format and move them to dst.
-
#cairo_convert_data_to_pixbuf(dst, src, width, height, rowstride) ⇒ nil
Converts the pixel data stored in src in CAIRO_FORMAT_ARGB32 cairo format to GDK_COLORSPACE_RGB pixbuf format and move them to dst.
-
#cairo_emit_svg_path(cr, path) ⇒ nil
Emits a path described as a SVG path string (d property of path elements) to a cairo context.
- #cairo_surface_is_vector(surface) ⇒ Boolean
- #color_as_str(color) ⇒ String
-
#color_from_gdk_rgba(rgbacolor, res) ⇒ GOffice::Color
Resulting color.
-
#color_from_str(str, res) ⇒ Boolean
True if str can be parsed as a color of the form R:G:B:A and the result is stored in res.
-
#color_selector_get_color(selector, is_auto) ⇒ GOffice::Color
by clicking on automatic palette item.
-
#color_selector_set_allow_alpha(selector, allow_alpha) ⇒ nil
Seta whether the custom colour selector should allow the use of opacity.
-
#color_selector_set_color(selector, color) ⇒ Boolean
Sets current selection to color.
-
#color_to_gdk_rgba(color, res) ⇒ Gdk::RGBA
res.
-
#color_to_pango(color, is_fore) ⇒ Pango::Attribute
The newly created Pango::Attribute.
- #complex_addl(dst, a, b) ⇒ nil
- #complex_conjl(dst, src) ⇒ nil
- #complex_cosl(dst, src) ⇒ nil
- #complex_divl(dst, a, b) ⇒ nil
- #complex_expl(dst, src) ⇒ nil
- #complex_from_stringl(dst, src, imunit) ⇒ Integer
- #complex_invalid_pl(src) ⇒ Integer
- #complex_invalidl(dst) ⇒ nil
- #complex_lnl(dst, src) ⇒ nil
- #complex_mull(dst, a, b) ⇒ nil
- #complex_powl(dst, a, b) ⇒ nil
- #complex_real_pl(src) ⇒ Integer
- #complex_sinl(dst, src) ⇒ nil
- #complex_sqrtl(dst, src) ⇒ nil
- #complex_subl(dst, a, b) ⇒ nil
- #complex_tanl(dst, src) ⇒ nil
- #complex_to_polar(mod, angle, src) ⇒ nil
- #complex_to_stringl(src, reformat, imformat, imunit) ⇒ String
- #complex_zero_pl(src) ⇒ Integer
- #components_add_filter(chooser) ⇒ nil
- #components_add_mime_type(mime, priority, service_id) ⇒ nil
- #components_get_mime_suffix(mime) ⇒ String
-
#components_get_mime_types ⇒ GLib::SList<String>
supported by at least one registered component.
- #components_get_priority(mime_type) ⇒ GOffice::MimePriority
- #components_set_mime_suffix(mime, suffix) ⇒ nil
- #components_support_clipboard(mime_type) ⇒ Boolean
-
#conf_add_monitor(node, key, monitor, data) ⇒ Integer
monitor will be called whenever the value associated with key changes.
- #conf_free_node(node) ⇒ nil
- #conf_get_bool(node, key) ⇒ Boolean
- #conf_get_double(node, key) ⇒ Float
- #conf_get_enum_as_str(node, key) ⇒ String
- #conf_get_int(node, key) ⇒ Integer
-
#conf_get_node(parent, key) ⇒ GOffice::ConfNode
The GOConf::Node associated with key.
-
#conf_get_str_list(node, key) ⇒ GLib::SList<String>
with key.
- #conf_get_string(node, key) ⇒ String
- #conf_load_bool(node, key, default_val) ⇒ Boolean
- #conf_load_double(node, key, minima, maxima, default_val) ⇒ Float
- #conf_load_enum(node, key, t, default_val) ⇒ Integer
- #conf_load_int(node, key, minima, maxima, default_val) ⇒ Integer
-
#conf_load_str_list(node, key) ⇒ GLib::SList<String>
with key.
- #conf_load_string(node, key) ⇒ String
- #conf_remove_monitor(monitor_id) ⇒ nil
- #conf_set_bool(node, key, val) ⇒ nil
- #conf_set_double(node, key, val) ⇒ nil
- #conf_set_enum(node, key, t, val) ⇒ nil
- #conf_set_int(node, key, val) ⇒ nil
-
#conf_set_str_list(node, key, list) ⇒ nil
Sets list as the value for key.
- #conf_set_string(node, key, str) ⇒ nil
- #conf_sync(node) ⇒ nil
- #continued_fraction(val, max_denom, res_num, res_denom) ⇒ nil
-
#cospi(x) ⇒ Float
multiplication outright.
-
#cospil(x) ⇒ GOffice::long double
multiplication outright.
- #cotpi(x) ⇒ Float
- #cotpil(x) ⇒ GOffice::long double
- #coup_cd(res, settle, mat, freq, eom, next) ⇒ nil
-
#coupdaybs(settlement, maturity, conv) ⇒ Float
The number of days from the beginning of the coupon period to the settlement date.
-
#coupdays(settlement, maturity, conv) ⇒ Float
Currently, returns negative numbers if the branch is not implemented.
-
#coupdaysnc(settlement, maturity, conv) ⇒ Float
coupon date.
- #create_std_tags_for_buffer(buffer) ⇒ nil
- #cspline_destroyl(sp) ⇒ nil
-
#cspline_init(x, y, n, limits, c0, cn) ⇒ GOffice::CSpline
Creates a spline structure, and computes the coefficients associated with the polynoms.
- #date_conv_equal(a, b) ⇒ Boolean
- #date_conv_from_str(s) ⇒ GOffice::DateConventions
- #date_conv_translate(f, src, dst) ⇒ Float
- #date_convention_base(conv) ⇒ Integer
- #date_days_between_basis(from, to, basis) ⇒ Integer
- #date_g_months_between(date1, date2) ⇒ Integer
- #date_g_to_serial(date, conv) ⇒ Integer
- #date_g_years_between(date1, date2) ⇒ Integer
- #date_month_name(m, abbrev) ⇒ String
- #date_serial_raw_to_seconds(raw) ⇒ Integer
- #date_serial_raw_to_serial(raw) ⇒ Integer
- #date_serial_to_g(res, serial, conv) ⇒ nil
- #date_serial_to_timet(serial, conv) ⇒ GOffice::glong
- #date_timet_to_seconds(t) ⇒ Integer
- #date_timet_to_serial(t, conv) ⇒ Integer
- #date_timet_to_serial_raw(t, conv) ⇒ Float
- #date_weekday_name(wd, abbrev) ⇒ String
-
#date_weeknum(date, method) ⇒ Integer
1: Week starts on Sunday.
- #dcauchy(x, location, scale, give_log) ⇒ Float
- #dcauchyl(x, location, scale, give_log) ⇒ GOffice::long double
- #debug_check_finalized(obj, id) ⇒ nil
- #debug_flag(flag) ⇒ Boolean
-
#destroy_password(passwd) ⇒ nil
Overwrite a string holding a password.
-
#dialog_guess_alternative_button_order(dialog) ⇒ nil
This function inspects the buttons in the dialog and comes up with a reasonable alternative dialog order.
- #direction_get_name(d) ⇒ String
-
#direction_is_forward(d) ⇒ Boolean
TRUE for GO_DIRECTION_DOWN or GO_DIRECTION_RIGHT.
-
#direction_is_horizontal(d) ⇒ Boolean
TRUE for GO_DIRECTION_LEFT and GO_DIRECTION_RIGHT.
-
#dirname_from_uri(uri, brief) ⇒ String
Decode the all but the final path component.
- #dlnorm(x, meanlog, sdlog, give_log) ⇒ Float
- #dlnorml(x, meanlog, sdlog, give_log) ⇒ GOffice::long double
- #dnorm(x, mu, sigma, give_log) ⇒ Float
- #dnorml(x, mu, sigma, give_log) ⇒ GOffice::long double
- #dtoa(dst, fmt, array) ⇒ nil
- #dweibull(x, shape, scale, give_log) ⇒ Float
- #dweibulll(x, shape, scale, give_log) ⇒ GOffice::long double
- #error_export ⇒ GLib::Quark
- #error_import ⇒ GLib::Quark
- #error_invalid ⇒ GLib::Quark
- #error_system ⇒ GLib::Quark
-
#exponential_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs one-dimensional linear regressions on the input points.
-
#exponential_regression_as_log(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs one-dimensional linear regressions on the input points as go_exponential_regression, but returns the logarithm of the coefficients instead or the coefficients themselves.
- #exponential_regression_as_logl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
- #exponential_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
- #fake_ceil(x) ⇒ Float
- #fake_ceill(x) ⇒ GOffice::long double
- #fake_floor(x) ⇒ Float
- #fake_floorl(x) ⇒ GOffice::long double
- #fake_round(x) ⇒ Float
- #fake_roundl(x) ⇒ GOffice::long double
- #fake_trunc(x) ⇒ Float
- #fake_truncl(x) ⇒ GOffice::long double
- #file_access(uri, mode) ⇒ Integer
-
#file_create(uri) ⇒ Gsf::Output
Creates a file or return an error.
- #file_get_date_accessed(uri) ⇒ GOffice::glong
- #file_get_date_changed(uri) ⇒ GOffice::glong
- #file_get_date_modified(uri) ⇒ GOffice::glong
- #file_get_group_name(uri) ⇒ String
-
#file_get_modtime(uri) ⇒ GLib::DateTime
Determine the last modification time of uri.
- #file_get_owner_name(uri) ⇒ String
-
#file_open(uri) ⇒ Gsf::Input
Try all available methods to open a file or return an error.
-
#file_openers ⇒ GLib::List<GOffice::FileOpener>
GOFile::Opener types (do not modify list).
-
#file_savers ⇒ GLib::List<GOffice::FileSaver>
GOFile::Saver types (do not modify list).
-
#file_split_urls(data) ⇒ GLib::SList<String>
Splits the chain into a list of URIs.
- #filename_from_uri(uri) ⇒ String
- #filename_simplify(filename, dotdot, make_absolute) ⇒ String
- #filename_to_uri(filename) ⇒ String
- #finite(x) ⇒ Integer
- #finitel(x) ⇒ Integer
- #font_cache_register(callback) ⇒ nil
- #font_cache_unregister(callback) ⇒ nil
-
#fonts_list_families(context) ⇒ GLib::SList<String>
font family names.
-
#fonts_list_sizes ⇒ GLib::SList<Integer>
sizes in Pango units.
- #format_allow_ee_markup ⇒ Boolean
- #format_allow_pi_slash ⇒ Boolean
- #format_allow_si ⇒ Boolean
-
#format_default_accounting ⇒ GOffice::Format
The default accounting format.
-
#format_default_date ⇒ GOffice::Format
The default date format.
-
#format_default_date_time ⇒ GOffice::Format
The default date-and-time format.
-
#format_default_money ⇒ GOffice::Format
The default monetary format.
-
#format_default_percentage ⇒ GOffice::Format
The default percentage format.
-
#format_default_time ⇒ GOffice::Format
The default time format.
-
#format_empty ⇒ GOffice::Format
The empty format.
-
#format_foreach(func, user_data) ⇒ nil
Executes func for each registered #GOFormat.
-
#format_general ⇒ GOffice::Format
The general format.
-
#format_generate_number_str(dst, min_digits, num_decimals, thousands_sep, negative_red, negative_paren, prefix, postfix) ⇒ nil
Generates a format string for a number format with the given parameters and appends it to dst.
- #format_generate_str(dst, details) ⇒ nil
-
#format_locale_currency ⇒ GOffice::FormatCurrency
The GOFormat::Currency matches the current locale.
- #format_measure_pango(str, layout) ⇒ Integer
- #format_measure_strlen(str, layout) ⇒ Integer
- #format_measure_zero(str, layout) ⇒ Integer
- #format_output_to_odf(xout, fmt, cond_part, name, with_extension) ⇒ Boolean
- #format_palette_color_of_index(i) ⇒ GOffice::Color
-
#format_palette_index_from_color(c) ⇒ Integer
sense.
- #format_palette_name_of_index(i) ⇒ String
-
#format_str_delocalize(str) ⇒ String
De-localizes the given format string, i.e., changes locale's decimal separators to dots and performs other such transformations.
-
#format_str_localize(str) ⇒ String
Localizes the given format string, i.e., changes decimal dots to the locale's notion of that and performs other such transformations.
-
#format_value_gstring(layout, str, measure, metrics, fmt, val, type, sval, go_color, col_width, date_conv, unicode_minus) ⇒ GOffice::FormatNumberError
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width.
- #fourier_fft(in, n, skip, fourier, inverse) ⇒ nil
- #fourier_fftl(in, n, skip, fourier, inverse) ⇒ nil
-
#gdk_pixbuf_get_from_cache(filename) ⇒ GdkPixbuf::Pixbuf
Retrieves a pixbuf from the image cache, loading it from the file filename located in goffice_icon_dir if not cached yet.
-
#gdk_pixbuf_load_from_file(filename) ⇒ GdkPixbuf::Pixbuf
Utility routine to create pixbufs from file name in the goffice_icon_dir.
-
#geometry_AABR_add(aabr0, aabr1) ⇒ nil
Computes the Axis Aligned Bounding Rectangle of aabr0 and aabr1, and stores result in aabr0.
-
#geometry_calc_label_anchor(obr, alpha) ⇒ GOffice::GeometrySide
Computed label anchor, to be used by go_geometry_calc_label_position.
-
#geometry_calc_label_position(obr, alpha, offset, side, anchor) ⇒ GOffice::GeometrySide
Convenience routine that computes position of a label relative to an axis.
-
#geometry_cartesian_to_polar(x, y, rho, theta) ⇒ nil
Converts cartesion coordinates to polar coordinates.
-
#geometry_get_rotation_type(alpha) ⇒ GOffice::GeometryRotationType
Calculates rotation type for handling of special angles (alpha = n * pi / 2).
-
#geometry_OBR_to_AABR(obr, aabr) ⇒ nil
Stores Axis Aligned Bounding Rectangle of obr in aabr.
-
#geometry_point_to_segment(xp, yp, xs, ys, w, h) ⇒ Float
The distance between a point and a segment.
-
#geometry_test_OBR_overlap(obr0, obr1) ⇒ Boolean
Overlap test of Oriented Bounding Rectangles by the separating axis method.
- #get_file_permissions(uri) ⇒ GOffice::FilePermissions
-
#get_mime_type(uri) ⇒ String
be freed with g_free().
-
#get_mime_type_for_data(data, data_size) ⇒ String
be freed with g_free().
-
#gog_axis_map(map, value) ⇒ Float
Converts value to plot coordinates.
-
#gog_guru(graph, dalloc, cc, closure) ⇒ Gtk::Widget
CHANGED 0.5.3 : drop the toplevel window argument and have the callers handle widget_show and set_transient.
- #gog_guru_add_custom_widget(guru, custom) ⇒ nil
-
#gog_guru_get_help_button(guru) ⇒ Gtk::Widget
Quick utility to allow application specific help.
-
#gog_style_new ⇒ GOffice::GraphStyle
The new Gog::Style.
-
#gog_xml_read_state_get_obj(xin) ⇒ GOffice::GraphObject
The laset rerad Gog::Object.
- #gradient_dir_as_str(dir) ⇒ String
- #gradient_dir_from_str(name) ⇒ GOffice::GradientDirection
- #gradient_selector_set_colors(selector, start, stop) ⇒ nil
-
#gtk_builder_combo_box_init_text(gui, widget_name) ⇒ Gtk::ComboBox
searches the Gtk::ComboBox in gui and ensures it has a model and a renderer appropriate for using with #gtk_combo_box_append_text and friends.
-
#gtk_builder_get_widget(gui, widget_name) ⇒ Gtk::Widget
Simple wrapper to #gtk_builder_get_object which returns the object as a GtkWidget.
- #gtk_builder_group_value(gui, group) ⇒ Integer
-
#gtk_builder_load(uifile, domain, gcc) ⇒ Gtk::Builder
Simple utility to open ui files.
-
#gtk_builder_load_internal(uifile, domain, gcc) ⇒ Gtk::Builder
Simple utility to open ui files Variant of go_gtk_builder_new that searchs goffice directories for files.
-
#gtk_builder_signal_connect(gui, instance_name, detailed_signal, c_handler, data) ⇒ GOffice::gulong
Convenience wrapper around g_signal_connect for GtkBuilder.
-
#gtk_builder_signal_connect_swapped(gui, instance_name, detailed_signal, c_handler, data) ⇒ GOffice::gulong
Convenience wrapper around g_signal_connect_swapped for GtkBuilder.
-
#gtk_button_build_with_stock(text, stock_id) ⇒ Gtk::Widget
FROM : gedit Creates a new GtkButton with custom label and stock image.
- #gtk_combo_box_append_text(combo, str) ⇒ nil
- #gtk_combo_box_remove_text(combo, position) ⇒ nil
-
#gtk_dialog_add_button(dialog, text, stock_id, response_id) ⇒ Gtk::Widget
FROM : gedit Creates and adds a button with stock image to the action area of an existing dialog.
-
#gtk_dialog_run(dialog, parent) ⇒ Integer
Pop up a dialog as child of a window.
-
#gtk_editable_enters(window, w) ⇒ nil
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.
-
#gtk_file_sel_dialog(toplevel, w) ⇒ Boolean
Runs a modal dialog to select a file.
- #gtk_grid_remove_row(grid, row) ⇒ nil
- #gtk_help_button_init(w, data_dir, app, link) ⇒ nil
-
#gtk_nonmodal_dialog(toplevel, dialog) ⇒ nil
Utility to set dialog as a transient of toplevel and to set up a handler for "Escape".
- #gtk_notice_dialog(parent, type, format, array) ⇒ nil
- #gtk_notice_nonmodal_dialog(parent, ref, type, format, array) ⇒ nil
- #gtk_query_yes_no(toplevel, default_answer, format, array) ⇒ Boolean
- #gtk_select_image(toplevel, initial) ⇒ String
- #gtk_select_image_with_extra_widget(toplevel, initial, extra) ⇒ String
-
#gtk_url_is_writeable(parent, uri, overwrite_by_default) ⇒ Boolean
Check if it makes sense to try saving.
-
#gtk_url_show(url, screen) ⇒ GLib::Error
This function is a simple convenience wrapper for #gtk_show_uri.
-
#gtk_widget_disable_focus(w) ⇒ nil
Convenience wrapper to disable focus on a container and it's children.
-
#gtk_widget_render_icon_pixbuf(widget, icon_name, size) ⇒ GdkPixbuf::Pixbuf
This function works as gtk_widget_render_icon_pixbuf except that it takes an icon name, not a stock id.
- #gtk_widget_replace(victim, replacement) ⇒ nil
-
#gtk_window_set_transient(toplevel, window) ⇒ nil
Make the window a child of the workbook in the command context, if there is one.
- #guess_encoding(raw, len, user_guess, utf8_str, truncated) ⇒ String
-
#gui_get_image_save_info(toplevel, supported_formats, ret_format, resolution) ⇒ String
Opens a file chooser and lets user choose file URI and format in a list of supported ones.
-
#hash_keys(hash) ⇒ GLib::SList<nil>
Collects an unordered list of the keys in hash.
-
#init ⇒ nil
Initialize GOffice.
- #io_count_progress_set(io_context, total, step) ⇒ nil
- #io_count_progress_update(io_context, inc) ⇒ nil
- #io_error_clear(ioc) ⇒ nil
- #io_error_display(ioc) ⇒ nil
- #io_error_info_set(ioc, error) ⇒ nil
- #io_error_occurred(ioc) ⇒ Boolean
- #io_error_push(ioc, error) ⇒ nil
- #io_error_string(ioc, str) ⇒ nil
- #io_error_unknown(ioc) ⇒ nil
- #io_progress_message(io_context, msg) ⇒ nil
- #io_progress_range_pop(io_context) ⇒ nil
- #io_progress_range_push(io_context, min, max) ⇒ nil
- #io_progress_unset(io_context) ⇒ nil
- #io_progress_update(io_context, f) ⇒ nil
- #io_value_progress_set(io_context, total, step) ⇒ nil
- #io_value_progress_update(io_context, value) ⇒ nil
- #io_warning(ioc, fmt, array) ⇒ nil
- #io_warning_occurred(ioc) ⇒ Boolean
- #io_warning_unknown_font(ioc, font_name) ⇒ nil
- #io_warning_unknown_function(ioc, funct_name) ⇒ nil
- #io_warning_unsupported_feature(ioc, feature) ⇒ nil
- #io_warning_varargs(ioc, fmt, args) ⇒ nil
-
#line_dash_as_label(type) ⇒ String
A pointer to the user readable name of the dash type, or the name of %GO_LINE_NONE if type is invalid.
-
#line_dash_as_str(type) ⇒ String
A pointer to the nickname of the dash type, or "none" if type is invalid.
-
#line_dash_from_str(name) ⇒ GOffice::LineDashType
A GOLine::DashType corresponding to name, or %GO_LINE_NONE if not found.
-
#line_dash_get_length(type) ⇒ Float
The unscaled length of the dash sequence.
-
#line_dash_get_sequence(type, scale) ⇒ GOffice::LineDashSequence
A struct containing the dash sequence corresponding to type, or nil if type is invalid or equal to %GO_LINE_NONE.
-
#line_interpolation_as_label(type) ⇒ String
%GO_LINE_INTERPOLATION_LINEAR if type is invalid.
-
#line_interpolation_as_str(type) ⇒ String
A pointer to the nickname of type, or "linear" if type is invalid.
-
#line_interpolation_auto_skip(type) ⇒ Boolean
data, FALSE if it is only optional.
-
#line_interpolation_from_str(name) ⇒ GOffice::LineInterpolation
A GOLine::Interpolation corresponding to name, or %GO_LINE_INTERPOLATION_LINEAR if not found.
-
#line_interpolation_supports_radial(type) ⇒ Boolean
axes set, FALSE if it can't.
-
#linear_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs multi-dimensional linear regressions on the input points.
- #linear_regression_leverage(A, d, m, n) ⇒ GOffice::RegressionResult
- #linear_regression_leveragel(A, d, m, n) ⇒ GOffice::RegressionResult
- #linear_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
- #linear_solve(A, b, n, res) ⇒ GOffice::RegressionResult
- #linear_solve_multiple(A, B, n, bn) ⇒ GOffice::RegressionResult
- #linear_solve_multiplel(A, B, n, bn) ⇒ GOffice::RegressionResult
- #linear_solvel(A, b, n, res) ⇒ GOffice::RegressionResult
-
#list_index_custom(list, data, cmp_func) ⇒ Integer
Searched for data in list and return the corresponding index or -1 if not found.
- #load_pango_attributes_into_buffer(markup, buffer, str) ⇒ nil
-
#locale_24h ⇒ Boolean
True if the locale uses a 24h clock, false otherwise.
-
#locale_boolean_name(b) ⇒ String
Current locale's rendering of b.
- #locale_get_arg_sep ⇒ GOffice::gchar
- #locale_get_col_sep ⇒ GOffice::gchar
-
#locale_get_currency(precedes, space_sep) ⇒ GLib::String
Play with the default logic so that things come out nicely for the default case.
-
#locale_get_date_format ⇒ GLib::String
Current locale's date format as a string.
-
#locale_get_decimal ⇒ GLib::String
Current locale's decimal separator.
- #locale_get_row_sep ⇒ GOffice::gchar
-
#locale_get_thousand ⇒ GLib::String
be an empty string.
-
#locale_get_time_format ⇒ GLib::String
Current locale's time format as a string.
- #locale_month_before_day ⇒ Integer
-
#locale_untranslated_booleans ⇒ nil
Short circuit the current locale so that we can import files and still produce error messages in the current LC_MESSAGE.
- #log10l(x) ⇒ GOffice::long double
-
#logarithmic_fit(xs, ys, n, res) ⇒ GOffice::RegressionResult
Performs a two-dimensional non-linear fitting on the input points.
- #logarithmic_fitl(xs, ys, n, res) ⇒ GOffice::RegressionResult
-
#logarithmic_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
This is almost a copy of linear_regression and produces multi-dimensional linear regressions on the input points after transforming xss to ln(xss).
- #logarithmic_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
- #mathml_to_itex(mml, buf, length, compact, gcc) ⇒ Boolean
- #matrix_determinant(A, n) ⇒ Float
- #matrix_determinantl(A, n) ⇒ GOffice::long double
- #matrix_invert(A, n) ⇒ Boolean
- #matrix_invertl(A, n) ⇒ Boolean
- #matrix_pseudo_inverse(A, m, n, threshold, B) ⇒ nil
- #matrix_pseudo_inversel(A, m, n, threshold, B) ⇒ nil
-
#memdup(mem, byte_size) ⇒ GObject
Like g_memdup or g_memdup2.
-
#memdup_n(mem, n_blocks, block_size) ⇒ GObject
Like go_memdup (mem, n_blocks * block_size), but with overflow check.
-
#menu_position_below(menu, x, y, push_in, user_data) ⇒ nil
Implementation of a GtkMenuPositionFunc that positions the child window under the parent one, for use with gtk_menu_popup.
-
#mime_to_image_format(mime_type) ⇒ String
File extension for the given mime type.
-
#mime_type_get_description(mime_type) ⇒ String
Needs to be freed with g_free().
-
#non_linear_regression(f, xvals, par, yvals, sigmas, x_dim, p_dim, chi, errors) ⇒ GOffice::RegressionResult
SYNOPSIS: result = non_linear_regression (f, xvals, par, yvals, sigmas, x_dim, p_dim, &chi, errors) Non linear regression.
-
#non_linear_regressionl(f, xvals, par, yvals, sigmas, x_dim, p_dim, chi, errors) ⇒ GOffice::RegressionResult
SYNOPSIS: result = non_linear_regression (f, xvals, par, yvals, sigmas, x_dim, p_dim, &chi, errors) Non linear regression.
-
#object_properties_apply(obj, props, changed_only) ⇒ nil
Sets a list of properties for obj.
-
#object_properties_collect(obj) ⇒ GLib::SList<nil>
Collect all rw properties and their values.
-
#object_properties_free(props) ⇒ nil
Unsezts the values in the list which needs to be a list of alternating GParam::Spec and #GValue.
- #object_set_property(obj, property_name, user_prop_name, value, err, error_template) ⇒ Boolean
-
#object_toggle(object, property_name) ⇒ nil
Toggle a boolean object property.
-
#pango_attr_list_erase(attrs, pos, len) ⇒ nil
This function erases a segment of attributes.
- #pango_attr_list_is_empty(attrs) ⇒ Boolean
-
#pango_attr_list_open_hole(tape, pos, len) ⇒ nil
This function opens up a blank segment of attributes.
- #pango_attr_list_unset(list, start, end, type) ⇒ nil
- #pango_attr_subscript_get_attr_type ⇒ Pango::AttrType
-
#pango_attr_subscript_new(val) ⇒ Pango::Attribute
A subscript attribute.
- #pango_attr_superscript_get_attr_type ⇒ Pango::AttrType
-
#pango_attr_superscript_new(val) ⇒ Pango::Attribute
A superscript attribute.
- #pango_attrs_to_markup(attrs, text) ⇒ String
-
#pango_measure_string(context, font_desc, str) ⇒ Integer
A utility function to measure text.
- #pango_translate_attributes(attrs) ⇒ Pango::AttrList
- #pango_translate_layout(layout) ⇒ nil
- #parse_key_value(options, err, handler, user) ⇒ Boolean
- #pattern_as_str(pattern) ⇒ String
- #pattern_from_str(name) ⇒ GOffice::PatternType
-
#pattern_selector_new(initial_type, default_type) ⇒ Gtk::Widget
Creates a new pattern selector.
-
#pattern_selector_set_colors(selector, foreground, background) ⇒ nil
Updates swatch colors of selector.
- #pcauchy(x, location, scale, lower_tail, log_p) ⇒ Float
- #pcauchyl(x, location, scale, lower_tail, log_p) ⇒ GOffice::long double
- #plnorm(x, logmean, logsd, lower_tail, log_p) ⇒ Float
- #plnorml(x, logmean, logsd, lower_tail, log_p) ⇒ GOffice::long double
-
#plugins_get_active_plugins ⇒ GLib::SList<String>
plugins names.
-
#plugins_get_available_plugins ⇒ GLib::SList<GOffice::Plugin>
plugins.
-
#plugins_get_plugin_by_id(plugin_id) ⇒ GOffice::Plugin
GOPlugin object for plugin with ID equal to plugin_id or nil if there's no plugin available with given id.
- #plugins_get_plugin_dir ⇒ String
-
#plugins_init(context, known_states, active_plugins, plugin_dirs, activate_new_plugins, default_loader_type) ⇒ nil
Initializes the plugin subsystem.
-
#plugins_register_loader(id_str, service) ⇒ nil
Registers new type of plugin loader identified by loader_id (identifier consists of loader's plugin ID and service ID concatenated using colon).
-
#plugins_rescan(ret_error, ret_new_plugins) ⇒ nil
of new plugins.
-
#plugins_shutdown ⇒ GLib::SList<String>
Shuts down the plugin subsystem.
-
#plugins_unregister_loader(id_str) ⇒ nil
Unregisters a type of plugin loader identified by loader_id.
- #pnorm(x, mu, sigma, lower_tail, log_p) ⇒ Float
- #pnorm_both(x, cum, ccum, i_tail, log_p) ⇒ nil
- #pnorm_bothl(x, cum, ccum, i_tail, log_p) ⇒ nil
- #pnorml(x, mu, sigma, lower_tail, log_p) ⇒ GOffice::long double
- #pow(x, y) ⇒ Float
- #pow10(n) ⇒ Float
- #pow10l(n) ⇒ GOffice::long double
- #pow2(n) ⇒ Float
- #pow2l(n) ⇒ GOffice::long double
-
#power_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs one-dimensional linear regressions on the input points.
- #power_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
- #powl(x, y) ⇒ GOffice::long double
- #pweibull(x, shape, scale, lower_tail, log_p) ⇒ Float
- #pweibulll(x, shape, scale, lower_tail, log_p) ⇒ GOffice::long double
- #qcauchy(p, location, scale, lower_tail, log_p) ⇒ Float
- #qcauchyl(p, location, scale, lower_tail, log_p) ⇒ GOffice::long double
- #qlnorm(p, logmean, logsd, lower_tail, log_p) ⇒ Float
- #qlnorml(p, logmean, logsd, lower_tail, log_p) ⇒ GOffice::long double
- #qnorm(p, mu, sigma, lower_tail, log_p) ⇒ Float
- #qnorml(p, mu, sigma, lower_tail, log_p) ⇒ GOffice::long double
-
#quad_acos(res, a) ⇒ nil
This function computes the arc cosine of a, storing the result in res.
-
#quad_acosl(res, a) ⇒ nil
This function computes the arc cosine of a, storing the result in res.
-
#quad_add(res, a, b) ⇒ nil
This function adds a and b, storing the result in res.
-
#quad_addl(res, a, b) ⇒ nil
This function adds a and b, storing the result in res.
-
#quad_asin(res, a) ⇒ nil
This function computes the arc sine of a, storing the result in res.
-
#quad_asinl(res, a) ⇒ nil
This function computes the arc sine of a, storing the result in res.
-
#quad_atan2(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y), storing the result in res.
-
#quad_atan2l(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y), storing the result in res.
-
#quad_atan2pi(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y) divided by pi, storing the result in res.
-
#quad_atan2pil(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y) divided by pi, storing the result in res.
-
#quad_constant8(res, data, n, base, scale) ⇒ nil
This function interprets a vector of digits in a given base as a quad-precision value.
-
#quad_cos(res, a) ⇒ nil
This function computes the cosine of a, storing the result in res.
-
#quad_cosl(res, a) ⇒ nil
This function computes the cosine of a, storing the result in res.
-
#quad_cospi(res, a) ⇒ nil
This function computes the cosine of a times pi, storing the result in res.
-
#quad_cospil(res, a) ⇒ nil
This function computes the cosine of a times pi, storing the result in res.
-
#quad_div(res, a, b) ⇒ nil
This function divides a and b, storing the result in res.
-
#quad_divl(res, a, b) ⇒ nil
This function divides a and b, storing the result in res.
- #quad_dot_product(res, a, b, n) ⇒ nil
- #quad_dot_productl(res, a, b, n) ⇒ nil
-
#quad_end(state) ⇒ nil
This ends a section of quad precision arithmetic.
-
#quad_endl(state) ⇒ nil
This ends a section of quad precision arithmetic.
-
#quad_exp(res, exp2, a) ⇒ nil
This function computes the exponential function at a, storing the result in res.
-
#quad_expm1(res, a) ⇒ nil
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
-
#quad_expm1l(res, a) ⇒ nil
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
-
#quad_floor(res, a) ⇒ nil
This function takes the floor of a, storing the result in res.
-
#quad_floorl(res, a) ⇒ nil
This function takes the floor of a, storing the result in res.
- #quad_functional ⇒ Boolean
- #quad_functionall ⇒ Boolean
-
#quad_hypot(res, a, b) ⇒ nil
This function computes the square root of a^2 plugs b^2, storing the result in res.
-
#quad_hypotl(res, a, b) ⇒ nil
This function computes the square root of a^2 plugs b^2, storing the result in res.
-
#quad_init(res, h) ⇒ nil
This stores the value h in res.
-
#quad_log(res, a) ⇒ nil
This function computes the natural logarithm at a, storing the result in res.
-
#quad_logl(res, a) ⇒ nil
This function computes the natural logarithm at a, storing the result in res.
-
#quad_matrix_back_solvel(R, x, b, allow_degenerate) ⇒ Boolean
than being given a zero result.
-
#quad_matrix_copy(A, B) ⇒ nil
Copies B to A.
-
#quad_matrix_copyl(A, B) ⇒ nil
Copies B to A.
- #quad_matrix_determinantl(A, res) ⇒ nil
- #quad_matrix_dumpl(A, fmt) ⇒ nil
-
#quad_matrix_dupl(A) ⇒ GOffice::QuadMatrixl
A new matrix.
- #quad_matrix_freel(A) ⇒ nil
-
#quad_matrix_fwd_solvel(R, x, b, allow_degenerate) ⇒ Boolean
than being given a zero result.
-
#quad_matrix_inversel(A, threshold) ⇒ GOffice::QuadMatrixl
eigenvalue is less than or equal to the given threshold, nil is returned indicating a matrix that cannot be inverted.
-
#quad_matrix_multiply(C, A, B) ⇒ nil
Multiplies A*B and stores the result in C.
-
#quad_matrix_multiplyl(C, A, B) ⇒ nil
Multiplies A*B and stores the result in C.
-
#quad_matrix_new(m, n) ⇒ GOffice::QuadMatrix
A new zero matrix.
-
#quad_matrix_newl(m, n) ⇒ GOffice::QuadMatrixl
A new zero matrix.
-
#quad_matrix_pseudo_inversel(A, threshold) ⇒ GOffice::QuadMatrixl
A's pseudo-inverse.
-
#quad_matrix_transpose(A, B) ⇒ nil
Transposes B into A.
-
#quad_matrix_transposel(A, B) ⇒ nil
Transposes B into A.
-
#quad_mul(res, a, b) ⇒ nil
This function multiplies a and b, storing the result in res.
-
#quad_mul12(res, x, y) ⇒ nil
This function multiplies x and y, storing the result in res with full quad precision.
-
#quad_mull(res, a, b) ⇒ nil
This function multiplies a and b, storing the result in res.
-
#quad_pow(res, exp2, x, y) ⇒ nil
This function computes x to the power of y, storing the result in res.
- #quad_qr_determinantl(qr, det) ⇒ nil
- #quad_qr_freel(qr) ⇒ nil
-
#quad_qr_mark_degeneratel(qr, i) ⇒ nil
Marks dimension i of the qr decomposition as degenerate.
-
#quad_qr_multiply_qtl(qr, x) ⇒ nil
Replaces x by Q^t * x.
-
#quad_qr_new(A) ⇒ GOffice::QuadQR
QR decomposition of a matrix using Householder matrices.
-
#quad_qr_newl(A) ⇒ GOffice::QuadQRl
Qr decomposition.
-
#quad_qr_rl(qr) ⇒ GOffice::QuadMatrixl
of size n.
-
#quad_sin(res, a) ⇒ nil
This function computes the sine of a, storing the result in res.
-
#quad_sinl(res, a) ⇒ nil
This function computes the sine of a, storing the result in res.
-
#quad_sinpi(res, a) ⇒ nil
This function computes the sine of a times pi, storing the result in res.
-
#quad_sinpil(res, a) ⇒ nil
This function computes the sine of a times pi, storing the result in res.
-
#quad_sqrt(res, a) ⇒ nil
This function takes the square root of a, storing the result in res.
-
#quad_sqrtl(res, a) ⇒ nil
This function takes the square root of a, storing the result in res.
-
#quad_start ⇒ GObject
Initializes #GOQuad arithmetic.
-
#quad_startl ⇒ GObject
Initializes #GOQuadl arithmetic.
-
#quad_sub(res, a, b) ⇒ nil
This function subtracts a and b, storing the result in res.
-
#quad_subl(res, a, b) ⇒ nil
This function subtracts a and b, storing the result in res.
- #qweibull(p, shape, scale, lower_tail, log_p) ⇒ Float
- #qweibulll(p, shape, scale, lower_tail, log_p) ⇒ GOffice::long double
-
#range_average(xs, n, res) ⇒ Integer
the input values will be stored in res.
- #range_averagel(xs, n, res) ⇒ Integer
-
#range_constant(xs, n) ⇒ Integer
1 if range is constant, 0 otherwise.
- #range_constantl(xs, n) ⇒ Integer
-
#range_decreasing(xs, n) ⇒ Integer
1 if range is decreasing, 0 otherwise.
- #range_decreasingl(xs, n) ⇒ Integer
-
#range_devsq(xs, n, res) ⇒ Integer
values deviation from the mean will be stored in res.
- #range_devsql(xs, n, res) ⇒ Integer
-
#range_fractile_inter(xs, n, res, f) ⇒ Integer
the interpolated fractile given by f and stores it in res.
- #range_fractile_inter_nonconst(xs, n, res, f) ⇒ Integer
- #range_fractile_inter_nonconstl(xs, n, res, f) ⇒ Integer
-
#range_fractile_inter_sorted(xs, n, res, f) ⇒ Integer
the interpolated fractile given by f and stores it in res.
- #range_fractile_inter_sortedl(xs, n, res, f) ⇒ Integer
- #range_fractile_interl(xs, n, res, f) ⇒ Integer
-
#range_increasing(xs, n) ⇒ Integer
1 if range is increasing, 0 otherwise.
- #range_increasingl(xs, n) ⇒ Integer
-
#range_max(xs, n, res) ⇒ Integer
the input values will be stored in res.
-
#range_maxabs(xs, n, res) ⇒ Integer
values of the input values will be stored in res.
- #range_maxabsl(xs, n, res) ⇒ Integer
- #range_maxl(xs, n, res) ⇒ Integer
-
#range_median_inter(xs, n, res) ⇒ Integer
the interpolated median and stores it in res.
- #range_median_inter_nonconst(xs, n, res) ⇒ Integer
- #range_median_inter_nonconstl(xs, n, res) ⇒ Integer
-
#range_median_inter_sorted(xs, n, res) ⇒ Integer
the interpolated median and stores it in res.
- #range_median_inter_sortedl(xs, n, res) ⇒ Integer
- #range_median_interl(xs, n, res) ⇒ Integer
-
#range_min(xs, n, res) ⇒ Integer
the input values will be stored in res.
- #range_minl(xs, n, res) ⇒ Integer
- #range_sort(xs, n) ⇒ Float
- #range_sortl(xs, n) ⇒ GOffice::long double
-
#range_sum(xs, n, res) ⇒ Integer
values will be stored in res.
- #range_suml(xs, n, res) ⇒ Integer
-
#range_sumsq(xs, n, res) ⇒ Integer
of the input values will be stored in res.
- #range_sumsql(xs, n, res) ⇒ Integer
-
#range_vary_uniformly(xs, n) ⇒ Integer
1 if range is either decreasing or increasing, 0 otherwise.
- #range_vary_uniformlyl(xs, n) ⇒ Integer
-
#real_name ⇒ String
A utf8 encoded string with the current user name.
- #regcomp(preg, pattern, cflags) ⇒ Integer
- #regerror(errcode, preg, errbuf, errbuf_size) ⇒ Integer
- #regexec(preg, string, nmatch, pmatch, eflags) ⇒ Integer
- #regexp_quote(target, s) ⇒ nil
- #regexp_quote1(target, s) ⇒ String
- #regfree(preg) ⇒ nil
- #regression_stat_destroyl(stat_) ⇒ nil
- #regression_stat_newl ⇒ GOffice::go_regression_stat_tl
-
#render_general(layout, str, measure, metrics, val, col_width, unicode_minus, numeral_shape, custom_shape_flags) ⇒ nil
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width.
-
#render_generall(layout, str, measure, metrics, val, col_width, unicode_minus, numeral_shape, custom_shape_flags) ⇒ nil
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width.
- #rint(x) ⇒ Float
-
#rsm_lookup(id, len) ⇒ GObject
The resource or nil if not found.
- #rsm_register_file(id, data, len) ⇒ nil
- #rsm_unregister_file(id) ⇒ nil
- #search_match_string(sr, src) ⇒ Boolean
- #set_file_permissions(uri, file_permissions) ⇒ nil
- #setlocale(category, val) ⇒ String
- #shell_arg_to_uri(arg) ⇒ String
-
#shell_argv_to_glib_encoding(argc, argv) ⇒ Array<String>
Transform arguments to UTF-8 when needed.
- #shell_argv_to_glib_encoding_free ⇒ nil
-
#shutdown ⇒ nil
Decrements the counter for data initialized by libgoffice_init().
-
#sinpi(x) ⇒ Float
multiplication outright.
-
#sinpil(x) ⇒ GOffice::long double
multiplication outright.
-
#slist_create(item1, array) ⇒ GLib::SList<nil>
Creates a GList from NULL-terminated list of arguments.
- #stern_brocot(val, max_denom, res_num, res_denom) ⇒ nil
- #str_compare(x, y) ⇒ Integer
- #strescape(target, str) ⇒ nil
- #string_append_c_n(target, c, n) ⇒ nil
- #string_append_gstring(target, src) ⇒ nil
- #string_cmp(gstr_a, gstr_b) ⇒ Integer
- #string_cmp_ignorecase(gstr_a, gstr_b) ⇒ Integer
- #string_equal(gstr_a, gstr_b) ⇒ Boolean
-
#string_equal_ignorecase(gstr_a, gstr_b) ⇒ Boolean
TRUE if the two strings are equal when ignoring letter case.
- #string_equal_rich(gstr_a, gstr_b) ⇒ Boolean
-
#string_ERROR ⇒ 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.
-
#string_foreach_base(callback, data) ⇒ nil
Iterates through the strings data base and apply callback to each.
- #string_hash(gstr) ⇒ Integer
- #string_replace(target, pos, oldlen, txt, newlen) ⇒ nil
-
#strsplit_to_slist(str, delimiter) ⇒ GLib::SList<String>
Splits up string into tokens at delim and returns a string list.
- #strtod(s, end) ⇒ Float
- #strtold(s, end) ⇒ GOffice::long double
- #strunescape(target, str) ⇒ String
-
#sub_epsilon(x) ⇒ Float
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
-
#sub_epsilonl(x) ⇒ GOffice::long double
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
- #sys_data_dir ⇒ String
- #sys_extern_plugin_dir ⇒ String
- #sys_icon_dir ⇒ String
- #sys_lib_dir ⇒ String
-
#tanpi(x) ⇒ Float
multiplication outright.
-
#tanpil(x) ⇒ GOffice::long double
multiplication outright.
- #trunc(x) ⇒ Float
- #truncl(x) ⇒ GOffice::long double
- #unichar_issign(uc) ⇒ Integer
-
#unit_define(symbol, dim, factor_to_SI) ⇒ GOffice::Unit
already exists, the existing is returned.
-
#unit_get(id) ⇒ GOffice::Unit
The Go::Unit corresponding to id.
- #unit_get_from_symbol(symbol) ⇒ GOffice::Unit
-
#url_check_extension(uri, std_ext, new_uri) ⇒ Boolean
Modifies given uri by adding the extension std_ext if needed.
-
#url_encode(uri, type) ⇒ String
url-encode a string according to RFC 2368.
- #url_make_relative(uri, ref_uri) ⇒ String
- #url_resolve_relative(ref_uri, rel_uri) ⇒ String
- #url_simplify(uri) ⇒ String
- #utf8_collate_casefold(a, b) ⇒ Integer
-
#utf8_strcapital(p, len) ⇒ String
Similar to g_utf8_strup and g_utf8_strup, except that this function creates a string "Very Much Like: This, One".
-
#uuid ⇒ String
RFC4122 version 4 compliant random UUIDs generator.
-
#xml_get_child_by_name(tree, name) ⇒ libxml2::Node
The child with name as name if any.
-
#xml_get_child_by_name_by_lang(tree, name) ⇒ libxml2::Node
attribute corresponding to the preferred language.
-
#xml_get_child_by_name_no_lang(tree, name) ⇒ libxml2::Node
attribute if any.
- #xml_in_doc_dispose_on_exit(pdoc) ⇒ nil
- #xml_node_get_bool(node, name, result) ⇒ Boolean
-
#xml_node_get_cstr(node, name) ⇒ libxml2::Char
Get an xmlChar * value for a node carried as an attibute result must be xmlFree.
- #xml_node_get_double(node, name, result) ⇒ Boolean
- #xml_node_get_enum(node, name, etype, val) ⇒ Boolean
- #xml_node_get_gocolor(node, name, result) ⇒ Boolean
- #xml_node_get_int(node, name, result) ⇒ Boolean
- #xml_node_set_bool(node, name, val) ⇒ nil
- #xml_node_set_cstr(node, name, val) ⇒ nil
- #xml_node_set_double(node, name, val, precision) ⇒ nil
- #xml_node_set_enum(node, name, etype, val) ⇒ nil
- #xml_node_set_gocolor(node, name, val) ⇒ nil
- #xml_node_set_int(node, name, val) ⇒ nil
- #xml_out_add_color(out, id, c) ⇒ nil
-
#xml_out_add_double(output, id, d) ⇒ nil
Output a representation of d that will be read back without loss of precision.
-
#xml_out_add_long_double(output, id, ld) ⇒ nil
Output a representation of ld that will be read back without loss of precision.
-
#xml_parse_file(filename) ⇒ libxml2::DocPtr
Like xmlParseFile, but faster.
Class Method Details
.const_missing(name) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/goffice.rb', line 30 def const_missing(name) init if const_defined?(name) const_get(name) else super end end |
.init ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/goffice.rb', line 39 def init class << self remove_method(:init) remove_method(:const_missing) end Gtk.init if Gtk.respond_to?(:init) loader = Loader.new(self) loader.load("GOffice") init class << self remove_method(:init) end end |
Instance Method Details
#accumulator_add_quadl(acc, x) ⇒ nil
#accumulator_addl(acc, x) ⇒ nil
#accumulator_clearl(acc) ⇒ nil
#accumulator_end(state) ⇒ nil
#accumulator_endl(state) ⇒ nil
#accumulator_freel(acc) ⇒ nil
#accumulator_functional ⇒ Boolean
#accumulator_functionall ⇒ Boolean
#accumulator_new ⇒ GOffice::Accumulator
#accumulator_newl ⇒ GOffice::Accumulatorl
#accumulator_start ⇒ GObject
#accumulator_startl ⇒ GObject
#accumulator_valuel(acc) ⇒ GOffice::long double
#add_epsilon(x) ⇒ Float
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
#add_epsilonl(x) ⇒ GOffice::long double
Returns the next-larger representable value, except that zero and infinites are returned unchanged.
#arrow_type_as_str(typ) ⇒ String
#arrow_type_from_str(name) ⇒ GOffice::ArrowType
#ascii_strcase_equal(v, v2) ⇒ Integer
#ascii_strcase_hash(v) ⇒ Integer
#ascii_strtod(s, end) ⇒ Float
#ascii_strtold(s, end) ⇒ GOffice::long double
#atan2pi(y, x) ⇒ Float
#atan2pil(y, x) ⇒ GOffice::long double
#atanpi(x) ⇒ Float
#atanpil(x) ⇒ GOffice::long double
#atk_setup_label(label, target) ⇒ nil
A convenience routine to setup label-for/labeled-by relationship between a pair of widgets
#basename_from_uri(uri) ⇒ String
Decode the final path component. Returns as UTF-8 encoded suitable for display.
#bezier_spline_init(x, y, n, closed) ⇒ GOffice::BezierSpline
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. destroyed by a call to go_bezier_spline_destroy.
#cairo_convert_data_from_pixbuf(dst, src, width, height, rowstride) ⇒ nil
Converts the pixel data stored in src in GDK_COLORSPACE_RGB pixbuf format to CAIRO_FORMAT_ARGB32 cairo format and move them to dst. If src == dst, pixel are converted in place.
#cairo_convert_data_to_pixbuf(dst, src, width, height, rowstride) ⇒ nil
Converts the pixel data stored in src in CAIRO_FORMAT_ARGB32 cairo format to GDK_COLORSPACE_RGB pixbuf format and move them to dst. If src == dst, pixel are converted in place.
#cairo_emit_svg_path(cr, path) ⇒ nil
Emits a path described as a SVG path string (d property of path elements) to a cairo context.
#cairo_surface_is_vector(surface) ⇒ Boolean
#color_as_str(color) ⇒ String
#color_from_gdk_rgba(rgbacolor, res) ⇒ GOffice::Color
Returns resulting color.
#color_from_str(str, res) ⇒ Boolean
Returns true if str can be parsed as a color of the form R:G:B:A and the result is stored in res.
#color_selector_get_color(selector, is_auto) ⇒ GOffice::Color
by clicking on automatic palette item.
#color_selector_set_allow_alpha(selector, allow_alpha) ⇒ nil
Seta whether the custom colour selector should allow the use of opacity.
#color_selector_set_color(selector, color) ⇒ Boolean
Sets current selection to color. An "activate" signal will be emitted.
#color_to_gdk_rgba(color, res) ⇒ Gdk::RGBA
Returns res.
#color_to_pango(color, is_fore) ⇒ Pango::Attribute
Returns the newly created Pango::Attribute.
#complex_addl(dst, a, b) ⇒ nil
#complex_conjl(dst, src) ⇒ nil
#complex_cosl(dst, src) ⇒ nil
#complex_divl(dst, a, b) ⇒ nil
#complex_expl(dst, src) ⇒ nil
#complex_from_stringl(dst, src, imunit) ⇒ Integer
#complex_invalid_pl(src) ⇒ Integer
#complex_invalidl(dst) ⇒ nil
#complex_lnl(dst, src) ⇒ nil
#complex_mull(dst, a, b) ⇒ nil
#complex_powl(dst, a, b) ⇒ nil
#complex_real_pl(src) ⇒ Integer
#complex_sinl(dst, src) ⇒ nil
#complex_sqrtl(dst, src) ⇒ nil
#complex_subl(dst, a, b) ⇒ nil
#complex_tanl(dst, src) ⇒ nil
#complex_to_polar(mod, angle, src) ⇒ nil
#complex_to_stringl(src, reformat, imformat, imunit) ⇒ String
#complex_zero_pl(src) ⇒ Integer
#components_add_filter(chooser) ⇒ nil
#components_add_mime_type(mime, priority, service_id) ⇒ nil
#components_get_mime_suffix(mime) ⇒ String
#components_get_mime_types ⇒ GLib::SList<String>
supported by at least one registered component.
#components_get_priority(mime_type) ⇒ GOffice::MimePriority
#components_set_mime_suffix(mime, suffix) ⇒ nil
#components_support_clipboard(mime_type) ⇒ Boolean
#conf_add_monitor(node, key, monitor, data) ⇒ Integer
monitor will be called whenever the value associated with key changes.
#conf_free_node(node) ⇒ nil
#conf_get_bool(node, key) ⇒ Boolean
#conf_get_double(node, key) ⇒ Float
#conf_get_enum_as_str(node, key) ⇒ String
#conf_get_int(node, key) ⇒ Integer
#conf_get_node(parent, key) ⇒ GOffice::ConfNode
Returns the GOConf::Node associated with key.
#conf_get_str_list(node, key) ⇒ GLib::SList<String>
with key.
#conf_get_string(node, key) ⇒ String
#conf_load_bool(node, key, default_val) ⇒ Boolean
#conf_load_double(node, key, minima, maxima, default_val) ⇒ Float
#conf_load_enum(node, key, t, default_val) ⇒ Integer
#conf_load_int(node, key, minima, maxima, default_val) ⇒ Integer
#conf_load_str_list(node, key) ⇒ GLib::SList<String>
with key.
#conf_load_string(node, key) ⇒ String
#conf_remove_monitor(monitor_id) ⇒ nil
#conf_set_bool(node, key, val) ⇒ nil
#conf_set_double(node, key, val) ⇒ nil
#conf_set_enum(node, key, t, val) ⇒ nil
#conf_set_int(node, key, val) ⇒ nil
#conf_set_str_list(node, key, list) ⇒ nil
Sets list as the value for key.
#conf_set_string(node, key, str) ⇒ nil
#conf_sync(node) ⇒ nil
#continued_fraction(val, max_denom, res_num, res_denom) ⇒ nil
#cospi(x) ⇒ Float
multiplication outright.
#cospil(x) ⇒ GOffice::long double
multiplication outright.
#cotpi(x) ⇒ Float
#cotpil(x) ⇒ GOffice::long double
#coup_cd(res, settle, mat, freq, eom, next) ⇒ nil
#coupdaybs(settlement, maturity, conv) ⇒ Float
Returns the number of days from the beginning of the coupon period to the settlement date.
#coupdays(settlement, maturity, conv) ⇒ Float
Currently, returns negative numbers if the branch is not implemented.
#coupdaysnc(settlement, maturity, conv) ⇒ Float
coupon date.
#create_std_tags_for_buffer(buffer) ⇒ nil
#cspline_destroyl(sp) ⇒ nil
#cspline_init(x, y, n, limits, c0, cn) ⇒ GOffice::CSpline
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. GO_CSPLINE_NATURAL: first and least second derivatives are 0. GO_CSPLINE_PARABOLIC: the curve will be a parabole arc outside of the limits. GO_CSPLINE_CUBIC: the curve will be cubic outside of the limits. GO_CSPLINE_CLAMPED: the first and last derivatives are imposed. destroyed by a call to go_cspline_destroy.
#date_conv_equal(a, b) ⇒ Boolean
#date_conv_from_str(s) ⇒ GOffice::DateConventions
#date_conv_translate(f, src, dst) ⇒ Float
#date_convention_base(conv) ⇒ Integer
#date_days_between_basis(from, to, basis) ⇒ Integer
#date_g_months_between(date1, date2) ⇒ Integer
#date_g_to_serial(date, conv) ⇒ Integer
#date_g_years_between(date1, date2) ⇒ Integer
#date_month_name(m, abbrev) ⇒ String
#date_serial_raw_to_seconds(raw) ⇒ Integer
#date_serial_raw_to_serial(raw) ⇒ Integer
#date_serial_to_g(res, serial, conv) ⇒ nil
#date_serial_to_timet(serial, conv) ⇒ GOffice::glong
#date_timet_to_seconds(t) ⇒ Integer
#date_timet_to_serial(t, conv) ⇒ Integer
#date_timet_to_serial_raw(t, conv) ⇒ Float
#date_weekday_name(wd, abbrev) ⇒ String
#date_weeknum(date, method) ⇒ Integer
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.
#dcauchy(x, location, scale, give_log) ⇒ Float
#dcauchyl(x, location, scale, give_log) ⇒ GOffice::long double
#debug_check_finalized(obj, id) ⇒ nil
#debug_flag(flag) ⇒ Boolean
#destroy_password(passwd) ⇒ nil
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.
#dialog_guess_alternative_button_order(dialog) ⇒ nil
This function inspects the buttons in the dialog and comes up with a reasonable alternative dialog order.
#direction_get_name(d) ⇒ String
#direction_is_forward(d) ⇒ Boolean
Returns TRUE for GO_DIRECTION_DOWN or GO_DIRECTION_RIGHT.
#direction_is_horizontal(d) ⇒ Boolean
Returns TRUE for GO_DIRECTION_LEFT and GO_DIRECTION_RIGHT.
#dirname_from_uri(uri, brief) ⇒ String
Decode the all but the final path component. Returns as UTF-8 encoded suitable for display.
#dlnorm(x, meanlog, sdlog, give_log) ⇒ Float
#dlnorml(x, meanlog, sdlog, give_log) ⇒ GOffice::long double
#dnorm(x, mu, sigma, give_log) ⇒ Float
#dnorml(x, mu, sigma, give_log) ⇒ GOffice::long double
#dtoa(dst, fmt, array) ⇒ nil
#dweibull(x, shape, scale, give_log) ⇒ Float
#dweibulll(x, shape, scale, give_log) ⇒ GOffice::long double
#error_export ⇒ GLib::Quark
#error_import ⇒ GLib::Quark
#error_invalid ⇒ GLib::Quark
#error_system ⇒ GLib::Quark
#exponential_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
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".
#exponential_regression_as_log(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs one-dimensional linear regressions on the input points as go_exponential_regression, but returns the logarithm of the coefficients instead or the coefficients themselves. Fits to "y = b * exp (m1x1) * ... * exp (mdxd) " or equivalently to "ln y = ln b + x1 * m1 + ... + xd * md".
#exponential_regression_as_logl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
#exponential_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
#fake_ceil(x) ⇒ Float
#fake_ceill(x) ⇒ GOffice::long double
#fake_floor(x) ⇒ Float
#fake_floorl(x) ⇒ GOffice::long double
#fake_round(x) ⇒ Float
#fake_roundl(x) ⇒ GOffice::long double
#fake_trunc(x) ⇒ Float
#fake_truncl(x) ⇒ GOffice::long double
#file_access(uri, mode) ⇒ Integer
#file_create(uri) ⇒ Gsf::Output
Creates a file or return an error. If the file already exists, it is replaced.
#file_get_date_accessed(uri) ⇒ GOffice::glong
#file_get_date_changed(uri) ⇒ GOffice::glong
#file_get_date_modified(uri) ⇒ GOffice::glong
#file_get_group_name(uri) ⇒ String
#file_get_modtime(uri) ⇒ GLib::DateTime
Determine the last modification time of uri. file.
#file_get_owner_name(uri) ⇒ String
#file_open(uri) ⇒ Gsf::Input
Try all available methods to open a file or return an error
#file_openers ⇒ GLib::List<GOffice::FileOpener>
GOFile::Opener types (do not modify list)
#file_savers ⇒ GLib::List<GOffice::FileSaver>
GOFile::Saver types (do not modify list)
#file_split_urls(data) ⇒ GLib::SList<String>
Splits the chain into a list of URIs. Lines starting with '#' are ignored.
#filename_from_uri(uri) ⇒ String
#filename_simplify(filename, dotdot, make_absolute) ⇒ String
#filename_to_uri(filename) ⇒ String
#finite(x) ⇒ Integer
#finitel(x) ⇒ Integer
#font_cache_register(callback) ⇒ nil
#font_cache_unregister(callback) ⇒ nil
#fonts_list_families(context) ⇒ GLib::SList<String>
font family names.
#fonts_list_sizes ⇒ GLib::SList<Integer>
sizes in Pango units. The list must be freed.
#format_allow_ee_markup ⇒ Boolean
#format_allow_pi_slash ⇒ Boolean
#format_allow_si ⇒ Boolean
#format_default_accounting ⇒ GOffice::Format
Returns the default accounting format.
#format_default_date ⇒ GOffice::Format
Returns the default date format.
#format_default_date_time ⇒ GOffice::Format
Returns the default date-and-time format.
#format_default_money ⇒ GOffice::Format
Returns the default monetary format.
#format_default_percentage ⇒ GOffice::Format
Returns the default percentage format.
#format_default_time ⇒ GOffice::Format
Returns the default time format.
#format_empty ⇒ GOffice::Format
Returns the empty format.
#format_foreach(func, user_data) ⇒ nil
Executes func for each registered #GOFormat
#format_general ⇒ GOffice::Format
Returns the general format.
#format_generate_number_str(dst, min_digits, num_decimals, thousands_sep, negative_red, negative_paren, prefix, postfix) ⇒ nil
Generates a format string for a number format with the given parameters and appends it to dst.
#format_generate_str(dst, details) ⇒ nil
#format_locale_currency ⇒ GOffice::FormatCurrency
Returns The GOFormat::Currency matches the current locale.
#format_measure_pango(str, layout) ⇒ Integer
#format_measure_strlen(str, layout) ⇒ Integer
#format_measure_zero(str, layout) ⇒ Integer
#format_output_to_odf(xout, fmt, cond_part, name, with_extension) ⇒ Boolean
#format_palette_color_of_index(i) ⇒ GOffice::Color
#format_palette_index_from_color(c) ⇒ Integer
sense.
#format_palette_name_of_index(i) ⇒ String
#format_str_delocalize(str) ⇒ String
De-localizes the given format string, i.e., changes locale's decimal separators to dots and performs other such transformations.
#format_str_localize(str) ⇒ String
Localizes the given format string, i.e., changes decimal dots to the locale's notion of that and performs other such transformations.
#format_value_gstring(layout, str, measure, metrics, fmt, val, type, sval, go_color, col_width, date_conv, unicode_minus) ⇒ GOffice::FormatNumberError
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width. Optionally use unicode minus instead of hyphen.
#fourier_fft(in, n, skip, fourier, inverse) ⇒ nil
#fourier_fftl(in, n, skip, fourier, inverse) ⇒ nil
#gdk_pixbuf_get_from_cache(filename) ⇒ GdkPixbuf::Pixbuf
Retrieves a pixbuf from the image cache, loading it from the file filename located in goffice_icon_dir if not cached yet.
#gdk_pixbuf_load_from_file(filename) ⇒ 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:" in which case the resource manager is queried instead of loading a file.
#geometry_AABR_add(aabr0, aabr1) ⇒ nil
Computes the Axis Aligned Bounding Rectangle of aabr0 and aabr1, and stores result in aabr0.
#geometry_calc_label_anchor(obr, alpha) ⇒ GOffice::GeometrySide
Returns computed label anchor, to be used by go_geometry_calc_label_position.
#geometry_calc_label_position(obr, alpha, offset, side, anchor) ⇒ GOffice::GeometrySide
Convenience routine that computes position of a label relative to an axis.
#geometry_cartesian_to_polar(x, y, rho, theta) ⇒ nil
Converts cartesion coordinates to polar coordinates.
#geometry_get_rotation_type(alpha) ⇒ GOffice::GeometryRotationType
Calculates rotation type for handling of special angles (alpha = n * pi / 2)
#geometry_OBR_to_AABR(obr, aabr) ⇒ nil
Stores Axis Aligned Bounding Rectangle of obr in aabr.
#geometry_point_to_segment(xp, yp, xs, ys, w, h) ⇒ Float
Returns the distance between a point and a segment.
#geometry_test_OBR_overlap(obr0, obr1) ⇒ Boolean
Overlap test of Oriented Bounding Rectangles by the separating axis method.
#get_file_permissions(uri) ⇒ GOffice::FilePermissions
#get_mime_type(uri) ⇒ String
be freed with g_free().
#get_mime_type_for_data(data, data_size) ⇒ String
be freed with g_free().
#gog_axis_map(map, value) ⇒ Float
Converts value to plot coordinates. A value in [0,1.0] range means a data within axis bounds.
#gog_guru(graph, dalloc, cc, closure) ⇒ Gtk::Widget
CHANGED 0.5.3 : drop the toplevel window argument and have the callers handle widget_show and set_transient
#gog_guru_add_custom_widget(guru, custom) ⇒ nil
#gog_guru_get_help_button(guru) ⇒ 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.
#gog_style_new ⇒ GOffice::GraphStyle
Returns the new Gog::Style.
#gog_xml_read_state_get_obj(xin) ⇒ GOffice::GraphObject
Returns the laset rerad Gog::Object.
#gradient_dir_as_str(dir) ⇒ String
#gradient_dir_from_str(name) ⇒ GOffice::GradientDirection
#gradient_selector_set_colors(selector, start, stop) ⇒ nil
#gtk_builder_combo_box_init_text(gui, widget_name) ⇒ Gtk::ComboBox
searches the Gtk::ComboBox in gui and ensures it has a model and a renderer appropriate for using with #gtk_combo_box_append_text and friends.
#gtk_builder_get_widget(gui, widget_name) ⇒ Gtk::Widget
Simple wrapper to #gtk_builder_get_object which returns the object as a GtkWidget.
#gtk_builder_group_value(gui, group) ⇒ Integer
#gtk_builder_load(uifile, domain, gcc) ⇒ Gtk::Builder
Simple utility to open ui files
Since 0.9.6 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.
#gtk_builder_load_internal(uifile, domain, gcc) ⇒ Gtk::Builder
Simple utility to open ui files 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.
#gtk_builder_signal_connect(gui, instance_name, detailed_signal, c_handler, data) ⇒ GOffice::gulong
Convenience wrapper around g_signal_connect for GtkBuilder.
#gtk_builder_signal_connect_swapped(gui, instance_name, detailed_signal, c_handler, data) ⇒ GOffice::gulong
Convenience wrapper around g_signal_connect_swapped for GtkBuilder.
#gtk_button_build_with_stock(text, stock_id) ⇒ Gtk::Widget
FROM : gedit Creates a new GtkButton with custom label and stock image.
#gtk_combo_box_append_text(combo, str) ⇒ nil
#gtk_combo_box_remove_text(combo, position) ⇒ nil
#gtk_dialog_add_button(dialog, text, stock_id, response_id) ⇒ Gtk::Widget
FROM : gedit Creates and adds a button with stock image to the action area of an existing dialog.
#gtk_dialog_run(dialog, parent) ⇒ Integer
Pop up a dialog as child of a window.
#gtk_editable_enters(window, w) ⇒ nil
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.
#gtk_file_sel_dialog(toplevel, w) ⇒ Boolean
Runs a modal dialog to select a file.
#gtk_grid_remove_row(grid, row) ⇒ nil
#gtk_help_button_init(w, data_dir, app, link) ⇒ nil
#gtk_nonmodal_dialog(toplevel, dialog) ⇒ nil
Utility to set dialog as a transient of toplevel and to set up a handler for "Escape"
#gtk_notice_dialog(parent, type, format, array) ⇒ nil
#gtk_notice_nonmodal_dialog(parent, ref, type, format, array) ⇒ nil
#gtk_query_yes_no(toplevel, default_answer, format, array) ⇒ Boolean
#gtk_select_image(toplevel, initial) ⇒ String
#gtk_select_image_with_extra_widget(toplevel, initial, extra) ⇒ String
#gtk_url_is_writeable(parent, uri, overwrite_by_default) ⇒ Boolean
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 workbook.
#gtk_url_show(url, screen) ⇒ GLib::Error
This function is a simple convenience wrapper for #gtk_show_uri. went wrong.
#gtk_widget_disable_focus(w) ⇒ nil
Convenience wrapper to disable focus on a container and it's children.
#gtk_widget_render_icon_pixbuf(widget, icon_name, size) ⇒ GdkPixbuf::Pixbuf
This function works as gtk_widget_render_icon_pixbuf except that it takes an icon name, not a stock id.
#gtk_widget_replace(victim, replacement) ⇒ nil
#gtk_window_set_transient(toplevel, window) ⇒ nil
Make the window a child of the workbook in 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.
#guess_encoding(raw, len, user_guess, utf8_str, truncated) ⇒ String
#gui_get_image_save_info(toplevel, supported_formats, ret_format, resolution) ⇒ String
Opens a file chooser and lets user choose file URI and format in a list of supported ones.
#hash_keys(hash) ⇒ GLib::SList<nil>
Collects an unordered list of the keys in hash. caller needs to free. The content has not additional references added
Note: consider using g_hash_table_get_keys instead.
#init ⇒ nil
Initialize GOffice.
This function can be called several times; each call will increment a reference counter. Code that calls this function should call libgoffice_shutdown() when done to decrement the counter.
#io_count_progress_set(io_context, total, step) ⇒ nil
#io_count_progress_update(io_context, inc) ⇒ nil
#io_error_clear(ioc) ⇒ nil
#io_error_display(ioc) ⇒ nil
#io_error_info_set(ioc, error) ⇒ nil
#io_error_occurred(ioc) ⇒ Boolean
#io_error_push(ioc, error) ⇒ nil
#io_error_string(ioc, str) ⇒ nil
#io_error_unknown(ioc) ⇒ nil
#io_progress_message(io_context, msg) ⇒ nil
#io_progress_range_pop(io_context) ⇒ nil
#io_progress_range_push(io_context, min, max) ⇒ nil
#io_progress_unset(io_context) ⇒ nil
#io_progress_update(io_context, f) ⇒ nil
#io_value_progress_set(io_context, total, step) ⇒ nil
#io_value_progress_update(io_context, value) ⇒ nil
#io_warning(ioc, fmt, array) ⇒ nil
#io_warning_occurred(ioc) ⇒ Boolean
#io_warning_unknown_font(ioc, font_name) ⇒ nil
#io_warning_unknown_function(ioc, funct_name) ⇒ nil
#io_warning_unsupported_feature(ioc, feature) ⇒ nil
#io_warning_varargs(ioc, fmt, args) ⇒ nil
#line_dash_as_label(type) ⇒ String
Returns a pointer to the user readable name of the dash type, or the name of %GO_LINE_NONE if type is invalid. The returned string should not be freed.
#line_dash_as_str(type) ⇒ String
Returns a pointer to the nickname of the dash type, or "none" if type is invalid. The returning string should not be freed.
#line_dash_from_str(name) ⇒ GOffice::LineDashType
Returns a GOLine::DashType corresponding to name, or %GO_LINE_NONE if not found.
#line_dash_get_length(type) ⇒ Float
Returns the unscaled length of the dash sequence.
#line_dash_get_sequence(type, scale) ⇒ GOffice::LineDashSequence
Returns a struct containing the dash sequence corresponding to type, or nil if type is invalid or equal to %GO_LINE_NONE. The lengths are scaled according to scale.
#line_interpolation_as_label(type) ⇒ String
%GO_LINE_INTERPOLATION_LINEAR if type is invalid. The returned string should not be freed.
#line_interpolation_as_str(type) ⇒ String
Returns a pointer to the nickname of type, or "linear" if type is invalid. The returned string should not be freed.
#line_interpolation_auto_skip(type) ⇒ Boolean
data, FALSE if it is only optional.
#line_interpolation_from_str(name) ⇒ GOffice::LineInterpolation
Returns a GOLine::Interpolation corresponding to name, or %GO_LINE_INTERPOLATION_LINEAR if not found.
#line_interpolation_supports_radial(type) ⇒ Boolean
axes set, FALSE if it can't.
#linear_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
Performs multi-dimensional linear regressions on the input points. Fits to "y = b + a1 * x1 + ... ad * xd".
#linear_regression_leverage(A, d, m, n) ⇒ GOffice::RegressionResult
#linear_regression_leveragel(A, d, m, n) ⇒ GOffice::RegressionResult
#linear_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
#linear_solve(A, b, n, res) ⇒ GOffice::RegressionResult
#linear_solve_multiple(A, B, n, bn) ⇒ GOffice::RegressionResult
#linear_solve_multiplel(A, B, n, bn) ⇒ GOffice::RegressionResult
#linear_solvel(A, b, n, res) ⇒ GOffice::RegressionResult
#list_index_custom(list, data, cmp_func) ⇒ Integer
Searched for data in list and return the corresponding index or -1 if not found.
#load_pango_attributes_into_buffer(markup, buffer, str) ⇒ nil
#locale_24h ⇒ Boolean
Returns true if the locale uses a 24h clock, false otherwise.
#locale_boolean_name(b) ⇒ String
Returns Current locale's rendering of b.
#locale_get_arg_sep ⇒ GOffice::gchar
#locale_get_col_sep ⇒ GOffice::gchar
#locale_get_currency(precedes, space_sep) ⇒ GLib::String
Play with the default logic so that things come out nicely for the default case.
#locale_get_date_format ⇒ GLib::String
Returns Current locale's date format as a string.
#locale_get_decimal ⇒ GLib::String
Returns Current locale's decimal separator.
#locale_get_row_sep ⇒ GOffice::gchar
#locale_get_thousand ⇒ GLib::String
be an empty string.
#locale_get_time_format ⇒ GLib::String
Returns Current locale's time format as a string.
#locale_month_before_day ⇒ Integer
#locale_untranslated_booleans ⇒ nil
Short circuit the current locale so that we can import files and still produce error messages in the current LC_MESSAGE
#log10l(x) ⇒ GOffice::long double
#logarithmic_fit(xs, ys, n, res) ⇒ GOffice::RegressionResult
Performs a two-dimensional non-linear fitting on the input points. Fits to "y = a + b * ln (sign * (x - c))", with sign in +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.)
#logarithmic_fitl(xs, ys, n, res) ⇒ GOffice::RegressionResult
#logarithmic_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
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.)
#logarithmic_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
#mathml_to_itex(mml, buf, length, compact, gcc) ⇒ Boolean
#matrix_determinant(A, n) ⇒ Float
#matrix_determinantl(A, n) ⇒ GOffice::long double
#matrix_invert(A, n) ⇒ Boolean
#matrix_invertl(A, n) ⇒ Boolean
#matrix_pseudo_inverse(A, m, n, threshold, B) ⇒ nil
#matrix_pseudo_inversel(A, m, n, threshold, B) ⇒ nil
#memdup(mem, byte_size) ⇒ GObject
Like g_memdup or g_memdup2. This function is meant to ease transition to g_memdup2 without having to require very new glib.
#memdup_n(mem, n_blocks, block_size) ⇒ GObject
Like go_memdup (mem, n_blocks * block_size), but with overflow check. Like a potential future g_memdup_n.
#menu_position_below(menu, x, y, push_in, user_data) ⇒ nil
Implementation of a GtkMenuPositionFunc that positions the child window under the parent one, for use with gtk_menu_popup.
#mime_to_image_format(mime_type) ⇒ String
Returns file extension for the given mime type.
#mime_type_get_description(mime_type) ⇒ String
Needs to be freed with g_free(). If the description is not found, the mime type itself will be returned.
#non_linear_regression(f, xvals, par, yvals, sigmas, x_dim, p_dim, chi, errors) ⇒ GOffice::RegressionResult
SYNOPSIS: result = non_linear_regression (f, xvals, par, yvals, sigmas, x_dim, p_dim, &chi, errors) Non linear regression. meaningful without the sigmas. deviation for each parameter. values. The resulting parameters are placed back into par.
#non_linear_regressionl(f, xvals, par, yvals, sigmas, x_dim, p_dim, chi, errors) ⇒ GOffice::RegressionResult
SYNOPSIS: result = non_linear_regression (f, xvals, par, yvals, sigmas, x_dim, p_dim, &chi, errors) Non linear regression. meaningful without the sigmas. deviation for each parameter. values. The resulting parameters are placed back into par.
#object_properties_apply(obj, props, changed_only) ⇒ nil
Sets a list of properties for obj. The list needs to be a list of alternating GParam::Spec and #GValue. apply properties with changed values.
#object_properties_collect(obj) ⇒ GLib::SList<nil>
Collect all rw properties and their values. properties as GParam::Spec and values as #GValue.
#object_properties_free(props) ⇒ nil
Unsezts the values in the list which needs to be a list of alternating GParam::Spec and #GValue. unset
#object_set_property(obj, property_name, user_prop_name, value, err, error_template) ⇒ Boolean
#object_toggle(object, property_name) ⇒ nil
Toggle a boolean object property.
#pango_attr_list_erase(attrs, pos, len) ⇒ nil
This function erases a segment of attributes. This is what to call after deleting a segment from the text described by the attributes.
#pango_attr_list_is_empty(attrs) ⇒ Boolean
#pango_attr_list_open_hole(tape, pos, len) ⇒ nil
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.
#pango_attr_list_unset(list, start, end, type) ⇒ nil
#pango_attr_subscript_get_attr_type ⇒ Pango::AttrType
#pango_attr_subscript_new(val) ⇒ Pango::Attribute
Returns a subscript attribute.
#pango_attr_superscript_get_attr_type ⇒ Pango::AttrType
#pango_attr_superscript_new(val) ⇒ Pango::Attribute
Returns a superscript attribute.
#pango_attrs_to_markup(attrs, text) ⇒ String
#pango_measure_string(context, font_desc, str) ⇒ Integer
A utility function to measure text.
#pango_translate_attributes(attrs) ⇒ Pango::AttrList
#pango_translate_layout(layout) ⇒ nil
#parse_key_value(options, err, handler, user) ⇒ Boolean
#pattern_as_str(pattern) ⇒ String
#pattern_from_str(name) ⇒ GOffice::PatternType
#pattern_selector_new(initial_type, default_type) ⇒ Gtk::Widget
Creates a new pattern selector.
#pattern_selector_set_colors(selector, foreground, background) ⇒ nil
Updates swatch colors of selector.
#pcauchy(x, location, scale, lower_tail, log_p) ⇒ Float
#pcauchyl(x, location, scale, lower_tail, log_p) ⇒ GOffice::long double
#plnorm(x, logmean, logsd, lower_tail, log_p) ⇒ Float
#plnorml(x, logmean, logsd, lower_tail, log_p) ⇒ GOffice::long double
#plugins_get_active_plugins ⇒ GLib::SList<String>
plugins names.
#plugins_get_available_plugins ⇒ GLib::SList<GOffice::Plugin>
plugins. The returned value must not be freed and stays valid until calling plugins_rescan or plugins_shutdown.
#plugins_get_plugin_by_id(plugin_id) ⇒ GOffice::Plugin
Returns GOPlugin object for plugin with ID equal to plugin_id or nil if there's no plugin available with given id. Function returns "borrowed" reference, use g_object_ref if you want to be sure that plugin won't disappear.
#plugins_get_plugin_dir ⇒ String
#plugins_init(context, known_states, active_plugins, plugin_dirs, activate_new_plugins, default_loader_type) ⇒ nil
Initializes the plugin subsystem. Might be called several times to add new plugins.
#plugins_register_loader(id_str, service) ⇒ nil
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 GOPluginService objects.
#plugins_rescan(ret_error, ret_new_plugins) ⇒ nil
of new plugins
#plugins_shutdown ⇒ GLib::SList<String>
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. use.
#plugins_unregister_loader(id_str) ⇒ nil
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 GOPluginService objects.
#pnorm(x, mu, sigma, lower_tail, log_p) ⇒ Float
#pnorm_both(x, cum, ccum, i_tail, log_p) ⇒ nil
#pnorm_bothl(x, cum, ccum, i_tail, log_p) ⇒ nil
#pnorml(x, mu, sigma, lower_tail, log_p) ⇒ GOffice::long double
#pow(x, y) ⇒ Float
#pow10(n) ⇒ Float
#pow10l(n) ⇒ GOffice::long double
#pow2(n) ⇒ Float
#pow2l(n) ⇒ GOffice::long double
#power_regression(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
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".
#power_regressionl(xss, dim, ys, n, affine, res, stat_) ⇒ GOffice::RegressionResult
#powl(x, y) ⇒ GOffice::long double
#pweibull(x, shape, scale, lower_tail, log_p) ⇒ Float
#pweibulll(x, shape, scale, lower_tail, log_p) ⇒ GOffice::long double
#qcauchy(p, location, scale, lower_tail, log_p) ⇒ Float
#qcauchyl(p, location, scale, lower_tail, log_p) ⇒ GOffice::long double
#qlnorm(p, logmean, logsd, lower_tail, log_p) ⇒ Float
#qlnorml(p, logmean, logsd, lower_tail, log_p) ⇒ GOffice::long double
#qnorm(p, mu, sigma, lower_tail, log_p) ⇒ Float
#qnorml(p, mu, sigma, lower_tail, log_p) ⇒ GOffice::long double
#quad_acos(res, a) ⇒ nil
This function computes the arc cosine of a, storing the result in res.
#quad_acosl(res, a) ⇒ nil
This function computes the arc cosine of a, storing the result in res.
#quad_add(res, a, b) ⇒ nil
This function adds a and b, storing the result in res.
#quad_addl(res, a, b) ⇒ nil
This function adds a and b, storing the result in res.
#quad_asin(res, a) ⇒ nil
This function computes the arc sine of a, storing the result in res.
#quad_asinl(res, a) ⇒ nil
This function computes the arc sine of a, storing the result in res.
#quad_atan2(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y), storing the result in res.
#quad_atan2l(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y), storing the result in res.
#quad_atan2pi(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y) divided by pi, storing the result in res.
#quad_atan2pil(res, y, x) ⇒ nil
This function computes polar angle coordinate of the point (x,y) divided by pi, storing the result in res.
#quad_constant8(res, data, n, base, scale) ⇒ nil
This function interprets a vector of digits in a given base as a quad-precision value. It is mostly meant for internal use.
#quad_cos(res, a) ⇒ nil
This function computes the cosine of a, storing the result in res.
#quad_cosl(res, a) ⇒ nil
This function computes the cosine of a, storing the result in res.
#quad_cospi(res, a) ⇒ nil
This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
#quad_cospil(res, a) ⇒ nil
This function computes the cosine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
#quad_div(res, a, b) ⇒ nil
This function divides a and b, storing the result in res.
#quad_divl(res, a, b) ⇒ nil
This function divides a and b, storing the result in res.
#quad_dot_product(res, a, b, n) ⇒ nil
#quad_dot_productl(res, a, b, n) ⇒ nil
#quad_end(state) ⇒ nil
This ends a section of quad precision arithmetic.
#quad_endl(state) ⇒ nil
This ends a section of quad precision arithmetic.
#quad_exp(res, exp2, a) ⇒ nil
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.
#quad_expm1(res, a) ⇒ nil
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
#quad_expm1l(res, a) ⇒ nil
This function computes the exponential function at a with 1 subtracted, storing the difference in res.
#quad_floor(res, a) ⇒ nil
This function takes the floor of a, storing the result in res.
#quad_floorl(res, a) ⇒ nil
This function takes the floor of a, storing the result in res.
#quad_functional ⇒ Boolean
#quad_functionall ⇒ Boolean
#quad_hypot(res, a, b) ⇒ nil
This function computes the square root of a^2 plugs b^2, storing the result in res.
#quad_hypotl(res, a, b) ⇒ nil
This function computes the square root of a^2 plugs b^2, storing the result in res.
#quad_init(res, h) ⇒ nil
This stores the value h in res. As an exception, this may be called outside go_quad_start and go_quad_end sections.
#quad_log(res, a) ⇒ nil
This function computes the natural logarithm at a, storing the result in res.
#quad_logl(res, a) ⇒ nil
This function computes the natural logarithm at a, storing the result in res.
#quad_matrix_back_solvel(R, x, b, allow_degenerate) ⇒ Boolean
than being given a zero result. A degenerate dimension is one whose diagonal entry is zero. This function solves the triangular system R*x=b.
#quad_matrix_copy(A, B) ⇒ nil
Copies B to A.
#quad_matrix_copyl(A, B) ⇒ nil
Copies B to A.
#quad_matrix_determinantl(A, res) ⇒ nil
#quad_matrix_dumpl(A, fmt) ⇒ nil
#quad_matrix_dupl(A) ⇒ GOffice::QuadMatrixl
Returns a new matrix.
#quad_matrix_freel(A) ⇒ nil
#quad_matrix_fwd_solvel(R, x, b, allow_degenerate) ⇒ Boolean
than being given a zero result. A degenerate dimension is one whose diagonal entry is zero. This function solves the triangular system RT*x=b.
#quad_matrix_inversel(A, threshold) ⇒ GOffice::QuadMatrixl
eigenvalue is less than or equal to the given threshold, nil is returned indicating a matrix that cannot be inverted. (Note: this doesn't actually use the eigenvalues of A, but of A after an orthogonal transformation.)
#quad_matrix_multiply(C, A, B) ⇒ nil
Multiplies A*B and stores the result in C.
#quad_matrix_multiplyl(C, A, B) ⇒ nil
Multiplies A*B and stores the result in C.
#quad_matrix_new(m, n) ⇒ GOffice::QuadMatrix
Returns a new zero matrix.
#quad_matrix_newl(m, n) ⇒ GOffice::QuadMatrixl
Returns a new zero matrix.
#quad_matrix_pseudo_inversel(A, threshold) ⇒ GOffice::QuadMatrixl
Returns A's pseudo-inverse.
#quad_matrix_transpose(A, B) ⇒ nil
Transposes B into A.
#quad_matrix_transposel(A, B) ⇒ nil
Transposes B into A.
#quad_mul(res, a, b) ⇒ nil
This function multiplies a and b, storing the result in res.
#quad_mul12(res, x, y) ⇒ nil
This function multiplies x and y, storing the result in res with full quad precision.
#quad_mull(res, a, b) ⇒ nil
This function multiplies a and b, storing the result in res.
#quad_pow(res, exp2, x, y) ⇒ nil
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.
#quad_qr_determinantl(qr, det) ⇒ nil
#quad_qr_freel(qr) ⇒ nil
#quad_qr_mark_degeneratel(qr, i) ⇒ nil
Marks dimension i of the qr decomposition as degenerate. In practice this means setting the i-th eigenvalue of R to zero.
#quad_qr_multiply_qtl(qr, x) ⇒ nil
Replaces x by Q^t * x
#quad_qr_new(A) ⇒ GOffice::QuadQR
QR decomposition of a matrix using Householder matrices.
A (input) is an m-times-n matrix. A[0...m-1][0..n-1] If qAT is TRUE, this parameter is transposed.
V is a pre-allocated output m-times-n matrix. V will contrain n vectors of different lengths: n, n-1, ..., 1. These are the Householder vectors (or null for the degenerate case). The matrix Q of size m-times-m is implied from V.
R is a matrix of size n-times-n. (To get the m-times-n version of R, simply add m-n null rows.)
#quad_qr_newl(A) ⇒ GOffice::QuadQRl
Returns qr decomposition.
#quad_qr_rl(qr) ⇒ GOffice::QuadMatrixl
of size n. To get the large R, if needed, add m-n zero rows.
#quad_sin(res, a) ⇒ nil
This function computes the sine of a, storing the result in res.
#quad_sinl(res, a) ⇒ nil
This function computes the sine of a, storing the result in res.
#quad_sinpi(res, a) ⇒ nil
This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
#quad_sinpil(res, a) ⇒ nil
This function computes the sine of a times pi, storing the result in res. This is more accurate than actually doing the multiplication.
#quad_sqrt(res, a) ⇒ nil
This function takes the square root of a, storing the result in res.
#quad_sqrtl(res, a) ⇒ nil
This function takes the square root of a, storing the result in res.
#quad_start ⇒ GObject
Initializes #GOQuad arithmetic. Any use of #GOQuad must occur between calls to go_quad_start() and go_quad_end().
#quad_startl ⇒ GObject
Initializes #GOQuadl arithmetic. Any use of #GOQuadl must occur between calls to go_quad_startl() and go_quad_endl().
#quad_sub(res, a, b) ⇒ nil
This function subtracts a and b, storing the result in res.
#quad_subl(res, a, b) ⇒ nil
This function subtracts a and b, storing the result in res.
#qweibull(p, shape, scale, lower_tail, log_p) ⇒ Float
#qweibulll(p, shape, scale, lower_tail, log_p) ⇒ GOffice::long double
#range_average(xs, n, res) ⇒ Integer
the input values will be stored in res.
#range_averagel(xs, n, res) ⇒ Integer
#range_constant(xs, n) ⇒ Integer
Returns 1 if range is constant, 0 otherwise.
#range_constantl(xs, n) ⇒ Integer
#range_decreasing(xs, n) ⇒ Integer
Returns 1 if range is decreasing, 0 otherwise.
#range_decreasingl(xs, n) ⇒ Integer
#range_devsq(xs, n, res) ⇒ Integer
values deviation from the mean will be stored in res.
#range_devsql(xs, n, res) ⇒ Integer
#range_fractile_inter(xs, n, res, f) ⇒ Integer
the interpolated fractile given by f and stores it in res.
#range_fractile_inter_nonconst(xs, n, res, f) ⇒ Integer
#range_fractile_inter_nonconstl(xs, n, res, f) ⇒ Integer
#range_fractile_inter_sorted(xs, n, res, f) ⇒ Integer
the interpolated fractile given by f and stores it in res.
#range_fractile_inter_sortedl(xs, n, res, f) ⇒ Integer
#range_fractile_interl(xs, n, res, f) ⇒ Integer
#range_increasing(xs, n) ⇒ Integer
Returns 1 if range is increasing, 0 otherwise.
#range_increasingl(xs, n) ⇒ Integer
#range_max(xs, n, res) ⇒ Integer
the input values will be stored in res.
#range_maxabs(xs, n, res) ⇒ Integer
values of the input values will be stored in res.
#range_maxabsl(xs, n, res) ⇒ Integer
#range_maxl(xs, n, res) ⇒ Integer
#range_median_inter(xs, n, res) ⇒ Integer
the interpolated median and stores it in res.
#range_median_inter_nonconst(xs, n, res) ⇒ Integer
#range_median_inter_nonconstl(xs, n, res) ⇒ Integer
#range_median_inter_sorted(xs, n, res) ⇒ Integer
the interpolated median and stores it in res.
#range_median_inter_sortedl(xs, n, res) ⇒ Integer
#range_median_interl(xs, n, res) ⇒ Integer
#range_min(xs, n, res) ⇒ Integer
the input values will be stored in res.
#range_minl(xs, n, res) ⇒ Integer
#range_sort(xs, n) ⇒ Float
#range_sortl(xs, n) ⇒ GOffice::long double
#range_sum(xs, n, res) ⇒ Integer
values will be stored in res.
#range_suml(xs, n, res) ⇒ Integer
#range_sumsq(xs, n, res) ⇒ Integer
of the input values will be stored in res.
#range_sumsql(xs, n, res) ⇒ Integer
#range_vary_uniformly(xs, n) ⇒ Integer
Returns 1 if range is either decreasing or increasing, 0 otherwise.
#range_vary_uniformlyl(xs, n) ⇒ Integer
#real_name ⇒ String
Returns a utf8 encoded string with the current user name.
#regcomp(preg, pattern, cflags) ⇒ Integer
#regerror(errcode, preg, errbuf, errbuf_size) ⇒ Integer
#regexec(preg, string, nmatch, pmatch, eflags) ⇒ Integer
#regexp_quote(target, s) ⇒ nil
#regexp_quote1(target, s) ⇒ String
#regfree(preg) ⇒ nil
#regression_stat_destroyl(stat_) ⇒ nil
#regression_stat_newl ⇒ GOffice::go_regression_stat_tl
#render_general(layout, str, measure, metrics, val, col_width, unicode_minus, numeral_shape, custom_shape_flags) ⇒ nil
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width. Optionally use unicode minus instead of hyphen. A width of -1 means no restriction.
#render_generall(layout, str, measure, metrics, val, col_width, unicode_minus, numeral_shape, custom_shape_flags) ⇒ nil
Render a floating-point value into layout in such a way that the layouting width does not needlessly exceed col_width. Optionally use unicode minus instead of hyphen. A width of -1 means no restriction.
#rint(x) ⇒ Float
#rsm_lookup(id, len) ⇒ GObject
Returns the resource or nil if not found.
#rsm_register_file(id, data, len) ⇒ nil
#rsm_unregister_file(id) ⇒ nil
#search_match_string(sr, src) ⇒ Boolean
#set_file_permissions(uri, file_permissions) ⇒ nil
#setlocale(category, val) ⇒ String
#shell_arg_to_uri(arg) ⇒ String
#shell_argv_to_glib_encoding(argc, argv) ⇒ Array<String>
Transform arguments to UTF-8 when needed.
#shell_argv_to_glib_encoding_free ⇒ nil
#shutdown ⇒ nil
Decrements the counter for data initialized by libgoffice_init(). When the counter reaches 0, the data is freed/cleaned up as appropriate.
#sinpi(x) ⇒ Float
multiplication outright.
#sinpil(x) ⇒ GOffice::long double
multiplication outright.
#slist_create(item1, array) ⇒ GLib::SList<nil>
Creates a GList from NULL-terminated list of arguments. As the arguments are just copied to the list, the caller owns them.
#stern_brocot(val, max_denom, res_num, res_denom) ⇒ nil
#str_compare(x, y) ⇒ Integer
#strescape(target, str) ⇒ nil
#string_append_c_n(target, c, n) ⇒ nil
#string_append_gstring(target, src) ⇒ nil
#string_cmp(gstr_a, gstr_b) ⇒ Integer
#string_cmp_ignorecase(gstr_a, gstr_b) ⇒ Integer
#string_equal(gstr_a, gstr_b) ⇒ Boolean
#string_equal_ignorecase(gstr_a, gstr_b) ⇒ Boolean
Returns TRUE if the two strings are equal when ignoring letter case.
#string_equal_rich(gstr_a, gstr_b) ⇒ Boolean
#string_ERROR ⇒ 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
#string_foreach_base(callback, data) ⇒ nil
Iterates through the strings data base and apply callback to each.
#string_hash(gstr) ⇒ Integer
#string_replace(target, pos, oldlen, txt, newlen) ⇒ nil
#strsplit_to_slist(str, delimiter) ⇒ GLib::SList<String>
Splits up string into tokens at delim and returns a string list. free after use using function g_slist_free_full(), using g_free as second argument.
#strtod(s, end) ⇒ Float
#strtold(s, end) ⇒ GOffice::long double
#strunescape(target, str) ⇒ String
#sub_epsilon(x) ⇒ Float
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
#sub_epsilonl(x) ⇒ GOffice::long double
Returns the next-smaller representable value, except that zero and infinites are returned unchanged.
#sys_data_dir ⇒ String
#sys_extern_plugin_dir ⇒ String
#sys_icon_dir ⇒ String
#sys_lib_dir ⇒ String
#tanpi(x) ⇒ Float
multiplication outright.
#tanpil(x) ⇒ GOffice::long double
multiplication outright.
#trunc(x) ⇒ Float
#truncl(x) ⇒ GOffice::long double
#unichar_issign(uc) ⇒ Integer
#unit_define(symbol, dim, factor_to_SI) ⇒ GOffice::Unit
already exists, the existing is returned. Otherwise a new one is created.
#unit_get(id) ⇒ GOffice::Unit
Returns the Go::Unit corresponding to id.
#unit_get_from_symbol(symbol) ⇒ GOffice::Unit
#url_check_extension(uri, std_ext, new_uri) ⇒ Boolean
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.
#url_encode(uri, type) ⇒ String
url-encode a string according to RFC 2368.
#url_make_relative(uri, ref_uri) ⇒ String
#url_resolve_relative(ref_uri, rel_uri) ⇒ String
#url_simplify(uri) ⇒ String
#utf8_collate_casefold(a, b) ⇒ Integer
#utf8_strcapital(p, len) ⇒ String
Similar to g_utf8_strup and g_utf8_strup, except that this function creates a string "Very Much Like: This, One".
#uuid ⇒ String
RFC4122 version 4 compliant random UUIDs generator. must be freed with _free().
#xml_get_child_by_name(tree, name) ⇒ libxml2::Node
Returns the child with name as name if any.
#xml_get_child_by_name_by_lang(tree, name) ⇒ libxml2::Node
attribute corresponding to the preferred language.
#xml_get_child_by_name_no_lang(tree, name) ⇒ libxml2::Node
attribute if any.
#xml_in_doc_dispose_on_exit(pdoc) ⇒ nil
#xml_node_get_bool(node, name, result) ⇒ Boolean
#xml_node_get_cstr(node, name) ⇒ libxml2::Char
Get an xmlChar * value for a node carried as an attibute result must be xmlFree
#xml_node_get_double(node, name, result) ⇒ Boolean
#xml_node_get_enum(node, name, etype, val) ⇒ Boolean
#xml_node_get_gocolor(node, name, result) ⇒ Boolean
#xml_node_get_int(node, name, result) ⇒ Boolean
#xml_node_set_bool(node, name, val) ⇒ nil
#xml_node_set_cstr(node, name, val) ⇒ nil
#xml_node_set_double(node, name, val, precision) ⇒ nil
#xml_node_set_enum(node, name, etype, val) ⇒ nil
#xml_node_set_gocolor(node, name, val) ⇒ nil
#xml_node_set_int(node, name, val) ⇒ nil
#xml_out_add_color(out, id, c) ⇒ nil
#xml_out_add_double(output, id, d) ⇒ nil
Output a representation of d that will be read back without loss of precision.
#xml_out_add_long_double(output, id, ld) ⇒ nil
Output a representation of ld that will be read back without loss of precision.
#xml_parse_file(filename) ⇒ libxml2::DocPtr
Like xmlParseFile, but faster. Does not accept compressed files. See http://bugzilla.gnome.org/show_bug.cgi?id=168414
Note: this reads the entire file into memory and should therefore not be used for user-supplied files.