Top | ![]() |
![]() |
![]() |
![]() |
GOImage * | go_doc_add_image () |
void | go_doc_bump_state () |
void | go_doc_end_read () |
gint64 | go_doc_get_dirty_time () |
GOImage * | go_doc_get_image () |
GHashTable * | go_doc_get_images () |
GsfDocMetaData * | go_doc_get_meta_data () |
GDateTime * | go_doc_get_modtime () |
guint64 | go_doc_get_saved_state () |
guint64 | go_doc_get_state () |
char const * | go_doc_get_uri () |
GOImage * | go_doc_image_fetch () |
void | go_doc_init_read () |
void | go_doc_init_write () |
gboolean | go_doc_is_dirty () |
gboolean | go_doc_is_pristine () |
void | go_doc_read () |
void | go_doc_save_image () |
void | go_doc_save_resource () |
void | go_doc_set_dirty () |
void | go_doc_set_dirty_time () |
void | go_doc_set_meta_data () |
void | go_doc_set_modtime () |
void | go_doc_set_pristine () |
void | go_doc_set_saved_state () |
void | go_doc_set_state () |
gboolean | go_doc_set_uri () |
void | go_doc_update_meta_data () |
void | go_doc_write () |
GOImage * go_doc_add_image (GODoc *doc
,char const *id
,GOImage *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.
void
go_doc_bump_state (GODoc *doc
);
Sets the current state of the document to a fresh id.
GOImage * go_doc_get_image (GODoc *doc
,char const *id
);
the GOImage is one exist with name id
. The caller does not own a
reference.
[transfer none]
GOImage * go_doc_image_fetch (GODoc *doc
,char const *id
,GType type
);
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.
gboolean
go_doc_is_pristine (GODoc const *doc
);
This checks to see if the doc has ever been used ( approximately )
void go_doc_save_image (GODoc *doc
,char const *id
);
Saves the image with the document. Each image will be saved only once.
void go_doc_save_resource (GODoc *doc
,GOPersist const *gp
);
Saves the resource with the document. Each resource will be saved only once.
void go_doc_set_dirty (GODoc *doc
,gboolean is_dirty
);
Changes the dirty state of doc
to is_dirty
and clears the pristine state
no matter what.
void go_doc_set_dirty_time (GODoc *doc
,gint64 t
);
Changes the dirty time, i.e., the time the document was first marked dirty.
void go_doc_set_meta_data (GODoc *doc
,GsfDocMetaData *data
);
Adds a ref to data
.
void go_doc_set_modtime (GODoc *doc
,GDateTime *modtime
);
Sets the last known file system time stamp for the document, NULL
if unknown.
void go_doc_set_pristine (GODoc *doc
,gboolean pristine
);
Sets the indication of whether this document is unchanged since it was created. Note: if both "dirty" and "pristine" are being set, set "pristine" last.
void go_doc_set_saved_state (GODoc *doc
,guint64 state
);
Sets the state at the last time the document was saved.
void go_doc_set_state (GODoc *doc
,guint64 state
);
Sets the current state of the document as a serial number that is intended to be incremented for each document change.
Setting the state will set the document's dirty status also, assuming both the state and the saved state are known.
void
go_doc_update_meta_data (GODoc *doc
);
Signal that doc
's metadata should be updated
- statistics (sheet count, word count)
- content (sheet names, bookmarks)
- reloading linked items