Class: GOffice::Component
- Inherits:
-
Object
- Object
- GOffice::Component
- Defined in:
- (unknown)
Overview
The component base object class.
Class Method Summary collapse
- .default_command_context=(cc) ⇒ nil
-
.sax_push_parser(xin, attrs, handler, user_data) ⇒ nil
Loads the component from the xml stream.
Instance Method Summary collapse
-
#ascent ⇒ Float
Ascent.
- #ascent=(ascent) ⇒ Float
- #build_snapshot ⇒ GOffice::SnapshotType
-
#command_context ⇒ GOffice::CmdContext
default command context if the argument is NULL.
- #command_context=(cc) ⇒ nil
-
#descent ⇒ Float
Descent.
- #descent=(descent) ⇒ Float
-
#duplicate ⇒ GOffice::Component
Duplicates the component.
-
#edit ⇒ Gtk::Window
Opens a top level window editor for the component if it can be edited.
- #emit_changed ⇒ nil
-
#export_image(format, output, x_dpi, y_dpi) ⇒ Boolean
Exports an image of graph in given format, writing results in a Gsf::Output stream.
-
#font=(desc) ⇒ Boolean
Sets the font the component should use.
- #get_data(data, length, clearfunc, user_data) ⇒ Boolean
- #get_size(width, height) ⇒ nil
-
#get_snapshot(type, length) ⇒ GObject
Returns a snapshot is either svg or png format for the component.
-
#height ⇒ Float
Height.
- #height=(height) ⇒ Float
- #initialize(uri) ⇒ GOffice::Component constructor
-
#inline ⇒ Boolean
Returns the in-line or not nature of the component.
- #inline=(inline) ⇒ Boolean
-
#inline? ⇒ Boolean
Inline.
- #is_editable ⇒ Boolean
- #is_resizable ⇒ Boolean
-
#mime_type ⇒ String
Mime-type.
- #mime_type=(mime_type) ⇒ String
- #render(cr, width, height) ⇒ nil
- #set_data(data, length) ⇒ nil
- #set_default_size(width, ascent, descent) ⇒ nil
- #set_size(width, height) ⇒ nil
- #stop_editing ⇒ nil
-
#use_font_from_app ⇒ Boolean
Returns whether the component should use the font from the calling application or use its own font.
-
#use_font_from_app=(use_font_from_app) ⇒ nil
Sets the source of the font that the component should use.
-
#width ⇒ Float
Width.
- #width=(width) ⇒ Float
- #write_xml_sax(output) ⇒ nil
Constructor Details
#initialize(uri) ⇒ GOffice::Component
Class Method Details
.default_command_context=(cc) ⇒ nil
.sax_push_parser(xin, attrs, handler, user_data) ⇒ nil
Loads the component from the xml stream. handler will be called when done.
Instance Method Details
#ascent ⇒ Float
Returns ascent.
#ascent=(ascent) ⇒ Float
#build_snapshot ⇒ GOffice::SnapshotType
#command_context ⇒ GOffice::CmdContext
default command context if the argument is NULL.
#command_context=(cc) ⇒ nil
#descent ⇒ Float
Returns descent.
#descent=(descent) ⇒ Float
#duplicate ⇒ GOffice::Component
Duplicates the component.
#edit ⇒ Gtk::Window
Opens a top level window editor for the component if it can be edited.
#emit_changed ⇒ nil
#export_image(format, output, x_dpi, y_dpi) ⇒ Boolean
Exports an image of graph in given format, writing results in a Gsf::Output stream. If export format type is a bitmap one, it computes image size with x_dpi, y_dpi and graph size (see gog_graph_get_size()).
#font=(desc) ⇒ Boolean
Sets the font the component should use. Not all components will actually changed the font they use.
#get_data(data, length, clearfunc, user_data) ⇒ Boolean
#get_size(width, height) ⇒ nil
#get_snapshot(type, length) ⇒ GObject
Returns a snapshot is either svg or png format for the component.
#height ⇒ Float
Returns height.
#height=(height) ⇒ Float
#inline ⇒ Boolean
Returns the in-line or not nature of the component.
#inline=(inline) ⇒ Boolean
#inline? ⇒ Boolean
Returns inline.
#is_editable ⇒ Boolean
#is_resizable ⇒ Boolean
#mime_type ⇒ String
Returns mime-type.
#mime_type=(mime_type) ⇒ String
#render(cr, width, height) ⇒ nil
#set_data(data, length) ⇒ nil
#set_default_size(width, ascent, descent) ⇒ nil
#set_size(width, height) ⇒ nil
#stop_editing ⇒ nil
#use_font_from_app ⇒ Boolean
Returns whether the component should use the font from the calling application or use its own font. application
#use_font_from_app=(use_font_from_app) ⇒ nil
Sets the source of the font that the component should use. Default is false. calling application or use its own font.
#width ⇒ Float
Returns width.