ruby-****@sourc*****
ruby-****@sourc*****
2004年 10月 17日 (日) 16:09:07 JST
------------------------- REMOTE_ADDR = 219.53.36.22 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp//?Gnome%3A%3APrintConfig ------------------------- = class Gnome::PrintUnitConfig == Class Methods --- default * Returns: the default config, it's Gnome::PrintConfig object. - --- from_string(string, flags=nil) + --- new(string=nil, flags=nil) * string: XML format. * flags: not used. - * Returns: a new config. + * Returns: a new config from ((|string|)), or default + config if string is nil. == Instance Methods --- dup * Returns: the copy of self. --- to_s * Returns: XML representation of self. --- get(key, type=:string) --- [](key, type:=string) * key: * type: type of returned value. The available value is :string, :boolean, :int, :double, :length, :transform or nil (= :string). * Returns: the value associated by key. --- set(key, value) --- [](key, value) * key: * value: * Returns: true on success, false on error. --- page_size * Returns: an array of width and height of page. --- dump Displays config as tree. For debug. * Returns: nil. == Constants keys for get/set/[]/[]=. --- KEY_PAPER_SIZE --- KEY_PAPER_WIDTH --- KEY_PAPER_HEIGHT --- KEY_PAPER_ORIENTATION --- KEY_PAPER_ORIENTATION_MATRIX --- KEY_PAGE_ORIENTATION --- KEY_PAGE_ORIENTATION_MATRIX --- KEY_ORIENTATION --- KEY_LAYOUT --- KEY_LAYOUT_WIDTH --- KEY_LAYOUT_HEIGHT --- KEY_PAPER_SOURCE --- KEY_RESOLUTION --- KEY_RESOLUTION_DPI --- KEY_RESOLUTION_DPI_X --- KEY_RESOLUTION_DPI_Y --- KEY_NUM_COPIES --- KEY_NONCOLLATED_COPIES_IN_HW --- KEY_COLLATED_COPIES_IN_HW --- KEY_COLLATE --- KEY_DUPLEX --- KEY_TUMBLE --- KEY_HOLD --- KEY_PAGE_MARGIN_LEFT --- KEY_PAGE_MARGIN_RIGHT --- KEY_PAGE_MARGIN_TOP --- KEY_PAGE_MARGIN_BOTTOM --- KEY_PAPER_MARGIN_LEFT --- KEY_PAPER_MARGIN_RIGHT --- KEY_PAPER_MARGIN_TOP --- KEY_PAPER_MARGIN_BOTTOM --- KEY_OUTPUT_FILENAME --- KEY_DOCUMENT_NAME --- KEY_PREFERED_UNIT == See Also - kou