Class: Gsf::DocMetaData
- Inherits:
-
Object
- Object
- Gsf::DocMetaData
- Defined in:
- (unknown)
Overview
Class representing information about a document, such as creator and time of last modification.
Instance Method Summary collapse
-
#foreach(func, user_data) ⇒ nil
Iterate through each (key, value) pair in this collection.
-
#initialize ⇒ Gsf::DocMetaData
constructor
A new metadata property collection.
-
#insert(name, value) ⇒ nil
Take ownership of name and value and insert a property into meta.
-
#lookup(name) ⇒ Gsf::DocProp
modify the property value and link but not the name.
-
#odf_subtree(doc) ⇒ nil
Extend xin so that it can parse a subtree in OpenDoc metadata format.
-
#read_from_msole(in) ⇒ GLib::Error
Read a stream formated as a set of MS OLE properties from in and store the results in accum.
-
#read_from_odf(input) ⇒ GLib::Error
Read an OpenDocument metadata stream from input and store the properties into md.
-
#remove(name) ⇒ nil
If name does not exist in the collection, do nothing.
-
#size ⇒ Integer
The number of items in this collection.
-
#steal(name) ⇒ Gsf::DocProp
The property with name in meta.
- #store(prop) ⇒ nil
-
#write_to_msole(out, doc_not_component) ⇒ Boolean
True on success;.
-
#write_to_odf(output) ⇒ Boolean
True if no error occured.
Constructor Details
#initialize ⇒ Gsf::DocMetaData
Returns a new metadata property collection.
Instance Method Details
#foreach(func, user_data) ⇒ nil
Iterate through each (key, value) pair in this collection
#insert(name, value) ⇒ nil
Take ownership of name and value and insert a property into meta. If a property exists with name, it is replaced (The link is lost)
#lookup(name) ⇒ Gsf::DocProp
modify the property value and link but not the name.
#odf_subtree(doc) ⇒ nil
Extend xin so that it can parse a subtree in OpenDoc metadata format
#read_from_msole(in) ⇒ GLib::Error
Read a stream formated as a set of MS OLE properties from in and store the results in accum.
#read_from_odf(input) ⇒ GLib::Error
Read an OpenDocument metadata stream from input and store the properties into md. Overwrite any existing properties with the same id.
#remove(name) ⇒ nil
If name does not exist in the collection, do nothing. If name does exist, remove it and its value from the collection
#size ⇒ Integer
Returns the number of items in this collection.
#steal(name) ⇒ Gsf::DocProp
Returns the property with name in meta.
#store(prop) ⇒ nil
#write_to_msole(out, doc_not_component) ⇒ Boolean
Returns true on success;.
#write_to_odf(output) ⇒ Boolean
Returns true if no error occured.