Crear  Editar  FrontPage  Indexes  Buscar  Cambios  History  RSS  Login

Gnome::PrintConfig

Class Methods

Gnome::PrintConfig.default
Creates a Gnome::PrintConfig object with the default printer and settings.
Gnome::PrintConfig.new(string, flags)

Instance Methods

[key, type=:string]
get(key, type=:string)
Gets the value of string key from the Gnome::PrintConfig object.
  • key: String containing the path of key whose value is to be obtained. Use Gnome::PrintConfig::KEY_* constants.
  • type: type of returned value. The available value is :string, :boolean, :int, :double, :length, :transform or nil (= :string)
  • Returns: The value of the key, nil indicates failure
[key] = value
set(key, value)
Sets the value of string key in the Gnome::PrintConfig object to value value.
  • key: String containing the path of key whose value is to be set. Use Gnome::PrintConfig::KEY_* constants.
  • value: String containing the value to set
  • Returns: true on success, false on failure
dump
Print out the tree structure representing the Gnome::PrintConfig. Output is to STDOUT and is limited to a depth of 20.
  • Returns: nil
dup
Does a deep copy of self.
  • Returns: the copy of self.
page_size
Get imaging area size available to the application for printing after margins and layouts are applied. Sizes are given in PS points (Gnome::PrintUnit::PS_UNIT)
  • Returns: Array of width and height of paper of current config on success, nil on failure
to_s
  • Returns: XML representation of self.

ChangeLog

  • 2005-06-08 kou?: completed.

- kou?