Class: GOffice::Doc
- Inherits:
-
Object
- Object
- GOffice::Doc
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_image(id, image) ⇒ GOffice::Image
Adds image to the document if no such image already exists.
-
#bump_state ⇒ nil
Sets the current state of the document to a fresh id.
- #dirty=(dirty) ⇒ Boolean
-
#dirty? ⇒ Boolean
Dirty.
-
#dirty_time ⇒ Integer
Dirty-time.
- #dirty_time=(dirty_time) ⇒ Integer
- #end_read ⇒ nil
-
#get_image(id) ⇒ GOffice::Image
reference.
-
#image_fetch(id, type) ⇒ GOffice::Image
Searches for a #GOImage with name id in the document image buffer and creates one if needed.
-
#images ⇒ GLib::HashTable<GObject>
The images registered inside the document.
- #init_read(input) ⇒ nil
- #init_write(output) ⇒ nil
-
#is_dirty ⇒ Boolean
TRUE if doc has been modified.
-
#is_pristine ⇒ Boolean
This checks to see if the doc has ever been used ( approximately ).
-
#meta_data ⇒ Gsf::DocMetaData
doc's metadata.
-
#meta_data=(data) ⇒ nil
Adds a ref to data.
-
#modtime ⇒ GLib::DateTime
Modtime.
- #modtime=(modtime) ⇒ GLib::DateTime
- #pristine=(pristine) ⇒ Boolean
-
#pristine? ⇒ Boolean
Pristine.
- #read(xin, attrs) ⇒ nil
-
#save_image(id) ⇒ nil
Saves the image with the document.
-
#save_resource(gp) ⇒ nil
Saves the resource with the document.
-
#saved_state ⇒ Integer
Saved-state.
- #saved_state=(saved_state) ⇒ Integer
-
#state ⇒ Integer
State.
- #state=(state) ⇒ Integer
-
#update_meta_data ⇒ nil
Signal that doc's metadata should be updated - statistics (sheet count, word count) - content (sheet names, bookmarks) - reloading linked items.
-
#uri ⇒ String
Uri.
- #uri=(uri) ⇒ String
- #write(output) ⇒ nil
Instance Method Details
#add_image(id, image) ⇒ GOffice::Image
Adds image to the document if no such image already exists. The name of the returned image might be different from id, even if given. an identical image for which the owner does not own a reference.
#bump_state ⇒ nil
Sets the current state of the document to a fresh id.
#dirty=(dirty) ⇒ Boolean
#dirty? ⇒ Boolean
Returns dirty.
#dirty_time ⇒ Integer
Returns dirty-time.
#dirty_time=(dirty_time) ⇒ Integer
#end_read ⇒ nil
#get_image(id) ⇒ GOffice::Image
reference.
#image_fetch(id, type) ⇒ GOffice::Image
Searches for a #GOImage with name id in the document image buffer and creates one if needed. The caller does not own a reference on the returned #GOImage. This function must be called after a call to go_doc_init_read(), otherwise it will emit a critical and return NULL.
#images ⇒ GLib::HashTable<GObject>
Returns the images registered inside the document.
#init_read(input) ⇒ nil
#init_write(output) ⇒ nil
#is_dirty ⇒ Boolean
Returns TRUE if doc has been modified.
#is_pristine ⇒ Boolean
This checks to see if the doc has ever been used ( approximately )
#meta_data ⇒ Gsf::DocMetaData
Returns doc's metadata.
#meta_data=(data) ⇒ nil
Adds a ref to data.
#modtime ⇒ GLib::DateTime
Returns modtime.
#modtime=(modtime) ⇒ GLib::DateTime
#pristine=(pristine) ⇒ Boolean
#pristine? ⇒ Boolean
Returns pristine.
#read(xin, attrs) ⇒ nil
#save_image(id) ⇒ nil
Saves the image with the document. Each image will be saved only once.
#save_resource(gp) ⇒ nil
Saves the resource with the document. Each resource will be saved only once.
#saved_state ⇒ Integer
Returns saved-state.
#saved_state=(saved_state) ⇒ Integer
#state ⇒ Integer
Returns state.
#state=(state) ⇒ Integer
#update_meta_data ⇒ nil
Signal that doc's metadata should be updated - statistics (sheet count, word count) - content (sheet names, bookmarks) - reloading linked items
#uri ⇒ String
Returns uri.