From e140d51204deb9868887ad2ccb3431973448f8a5 Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Sat, 27 Mar 2004 21:51:59 +0000 Subject: EphyEmbedPersist documentation --- doc/reference/tmpl/ephy-embed-persist.sgml | 308 +++++++++++++++++++++++++++++ 1 file changed, 308 insertions(+) create mode 100644 doc/reference/tmpl/ephy-embed-persist.sgml (limited to 'doc/reference/tmpl/ephy-embed-persist.sgml') diff --git a/doc/reference/tmpl/ephy-embed-persist.sgml b/doc/reference/tmpl/ephy-embed-persist.sgml new file mode 100644 index 000000000..be75437c8 --- /dev/null +++ b/doc/reference/tmpl/ephy-embed-persist.sgml @@ -0,0 +1,308 @@ + +EphyEmbedPersist + + +A class to download files + + + +An #EphyEmbedPersist is a relatively simple way to save a web page or file to +disk. It is an abstract class, implemented by #MozillaEmbedPersist. + + +To create an #EphyEmbedPersist, use ephy_embed_factory_new_object(). Next, call +ephy_embed_persist_set_flags() and ephy_embed_persist_set_embed(). Depending +on the flags, you may also want to call ephy_embed_persist_set_dest() or +ephy_embed_persist_set_source(). Finally, call ephy_embed_persist_save() to +save the file. + + + +Saving the current web page to disk +#]]> +# + +static void +save_source_completed_cb (EphyEmbedPersist *persist, + gpointer dummy) +{ + g_print ("Download to %]]> + + + + + + + + + + + +Determines how the #EphyEmbedPersist should act. + + +@EMBED_PERSIST_COPY_PAGE: If set, download a copy of the page being browsed by + the #EphyEmbedPersist's #EphyEmbed. This should be + specified with ephy_embed_persist_set_embed(). If + unset, ephy_embed_persist_set_source() must have been + called. +@EMBED_PERSIST_MAINDOC: If set and %EMBED_PERSIST_COPY_PAGE is set, download the + #EphyEmbedPersist's #EphyEmbed's page's frameset. If + unset, download the currently-focused frame. +@EMBED_PERSIST_NO_VIEW: If set, do not display this download in the download + manager. +@EMBED_PERSIST_ASK_DESTINATION: If set, display a filechooser dialog. You must + call ephy_embed_persist_set_fc_title() and + ephy_embed_persist_set_fc_parent() before + ephy_embed_persist_save() if this is the case. + If unset, use the destination specified with + ephy_embed_persist_set_dest(). + + + + + + +@persist: +@value: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@Param2: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@value: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: +@Returns: + + + + + + + +@persist: + + + + + + + +@persist: +@Returns: + + + + + + + +@ephyembedpersist: the object which received the signal. + + + + + + +@ephyembedpersist: the object which received the signal. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3