00001 /* 00002 * This file is part of browser. 00003 * 00004 * browser is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * browser is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00026 /* browser - A mozilla based browser application on the eReader platform 00027 * Copyright (C) 2005-2008 iRex Technologies B.V. 00028 * 00029 */ 00030 00031 #ifndef __MOZILLA_API__ 00032 #define __MOZILLA_API__ 00033 00034 #define NEXT_LINK 0 00035 #define PREVIOUS_LINK 1 00036 00037 typedef enum 00038 { 00039 pageUp_t, 00040 pageDown_t, 00041 } direction_t; 00042 00043 00052 gboolean mozilla_get_page_type(GtkMozEmbed *b, char** type); 00053 00063 gboolean mozilla_save(GtkMozEmbed *b, gchar *file_name, gint all); 00064 00073 gboolean mozilla_next_link(GtkMozEmbed *b); 00074 00082 gboolean mozilla_previous_link(GtkMozEmbed *b); 00083 00092 gboolean mozilla_handle_link(GtkMozEmbed *b); 00093 00101 gboolean mozilla_overview_page (GtkMozEmbed *b); 00102 00110 gboolean mozilla_next_page(GtkMozEmbed *b); 00111 00119 gboolean mozilla_previous_page(GtkMozEmbed *b); 00120 00128 gboolean mozilla_alt_page(GtkMozEmbed * b); 00129 00137 gboolean mozilla_back(GtkMozEmbed * b); 00138 00148 gboolean mozilla_scrollable(direction_t direction, GtkMozEmbed * b); 00149 00159 gboolean mozilla_scroll(int count, GtkMozEmbed * b); 00168 gboolean mozilla_zoom(GtkMozEmbed *b, float size); 00169 00177 gint mozilla_determine_page_offset(GtkMozEmbed * b); 00178 00187 char * mozilla_uri_to_path(const char * uri); 00188 00189 int raw_url_decode(char *str, int len); 00190 00191 #endif //__MOZILLA_API__
1.5.6