![]() | ![]() | ![]() | Criawips Reference Manual | ![]() |
---|
Presentation — A whole presentation, including slide, themes etc.
struct CriaPresentation; struct CriaPresentationClass; struct CriaPresentationPrivate; void cria_presentation_add_theme (CriaPresentation *self, CriaTheme *theme); void cria_presentation_append_slide (CriaPresentation *self, CriaSlide *slide); const gchar* cria_presentation_get_filename (CriaPresentation *self); CriaSlide* cria_presentation_get_slide (CriaPresentation *self, guint index); const GoPoint* cria_presentation_get_slide_size (CriaPresentation *self); CriaTheme* cria_presentation_get_theme (CriaPresentation *self, const char *theme); const gchar* cria_presentation_get_title (CriaPresentation *self); guint cria_presentation_n_slides (CriaPresentation *self); CriaPresentation* cria_presentation_new_from_file (const gchar *filename, GError **error); void cria_presentation_set_title (CriaPresentation *self, const char *title); void cria_presentation_set_uri (CriaPresentation *self, GnomeVFSURI *uri); CriaPresentation* cria_presentation_new_default (void); CriaPresentation* cria_presentation_new_from_text_uri (const gchar *text_uri, GError **error); gint cria_presentation_get_slide_index (CriaPresentation *self, CriaSlide const *slide); const GnomeVFSURI* cria_presentation_get_uri (CriaPresentation *self);
struct CriaPresentationClass { GObjectClass base_class; /* signals */ /*void (*signal) (CriaPresentation * self, const gchar * string);*/ };
void cria_presentation_add_theme (CriaPresentation *self, CriaTheme *theme);
Adds the theme to presentation references by self.
self : | a CriaPresentation |
theme : | a CriaTheme |
void cria_presentation_append_slide (CriaPresentation *self, CriaSlide *slide);
self : | |
slide : |
const gchar* cria_presentation_get_filename (CriaPresentation *self);
...
self : | ... |
Returns : | ... |
CriaSlide* cria_presentation_get_slide (CriaPresentation *self, guint index);
self : | |
index : | |
Returns : |
const GoPoint* cria_presentation_get_slide_size (CriaPresentation *self);
Get the slide size for this presentation (in Master Coordinates, 576dpi). Don't free it, it's internal data from the presentation.
self : | The presentation to query |
Returns : | the size of a slide |
CriaTheme* cria_presentation_get_theme (CriaPresentation *self, const char *theme);
self : | |
theme : | |
Returns : |
const gchar* cria_presentation_get_title (CriaPresentation *self);
Get the title of the presentation.
self : | The presentation to get the title from |
Returns : | the title of the presentation, of one is set, NULL otherwise |
guint cria_presentation_n_slides (CriaPresentation *self);
self : | |
Returns : |
CriaPresentation* cria_presentation_new_from_file (const gchar *filename, GError **error);
Creates a new presentation by parsing a file. filename needs to be given relative to the working directory. This function is used only for parsing command line arguments.
filename : | the name of the file to open |
error : | a location to return a GError, if this is |
Returns : | the new presentation or NULL if an error occured |
void cria_presentation_set_title (CriaPresentation *self, const char *title);
Sets a new title for the presentation. The title is only changed if both titles are different, so we prevent recursive loops with title entry elements.
self : | the presentation to set the title for |
title : | the new title for the presentation |
void cria_presentation_set_uri (CriaPresentation *self, GnomeVFSURI *uri);
self : | |
uri : |
CriaPresentation* cria_presentation_new_default (void);
Creates a simple untitled presentation containing one empty slide.
Returns : | a new presentation |
CriaPresentation* cria_presentation_new_from_text_uri (const gchar *text_uri, GError **error);
Create a new presentation by parsing the file given by the text_uri.
text_uri : | the text representation of a URI, e.g. ftp://userhost/path/to/file.ext |
error : | a pointer to return a GError |
Returns : | a new presentation |
gint cria_presentation_get_slide_index (CriaPresentation *self, CriaSlide const *slide);
Get the index of a slide in a presentation.
self : | The presentation to search in |
slide : | The slide to be found |
Returns : | the index of the slide if found, -1 otherwise |
const GnomeVFSURI* cria_presentation_get_uri (CriaPresentation *self);
Get information about the path of a presentation.
self : | the presentation to get the uri from |
Returns : | a GnomeVFSURI defining the path and filename of a presentation |
<< Image | PresentationParser >> |