browser-eal/src/gwebengine.c

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is the EAL package.
00015  *
00016  * The Initial Developer of the Original Code is Nokia Corporation.
00017  * Portions created by the Initial Developer are Copyright (C) 2005
00018  * the Initial Developer. All Rights Reserved.
00019  *
00020  * Contact: Leonid Zolotarev <leonid.zolotarev@nokia.com>
00021  *
00022  * ***** END LICENSE BLOCK ***** */
00023 
00024 #include "gwebengine.h"
00025 
00026 static void
00027 g_web_engine_base_init (gpointer g_class)
00028 {
00029         static gboolean initialized = FALSE;
00030 
00031         if (!initialized) {
00032                 /* create interface signals here. */
00033                 initialized = TRUE;
00034         }
00035 }
00036 
00037 GType
00038 g_web_engine_get_type (void)
00039 {
00040     static GType type = 0;
00041     if (type == 0) {
00042         static const GTypeInfo info = {
00043             sizeof (GWebEngineIface),
00044             g_web_engine_base_init,   /* base_init */
00045             NULL,   /* base_finalize */
00046             NULL,   /* class_init */
00047             NULL,   /* class_finalize */
00048             NULL,   /* class_data */
00049             0,
00050             0,      /* n_preallocs */
00051             NULL    /* instance_init */
00052         };
00053         type = g_type_register_static (G_TYPE_INTERFACE, "GWebEngine", &info, 0);
00054     }
00055     return type;
00056 }
00057 
00058 void
00059 g_web_engine_destroy (GWebEngine *self)
00060 {
00061         G_WEB_ENGINE_GET_CLASS (self)->destroy (self);
00062 }
00063 
00064 void
00065 g_web_engine_reset (GWebEngine *self)
00066 {
00067         G_WEB_ENGINE_GET_CLASS (self)->reset (self);
00068 }
00069 
00070 void
00071 g_web_engine_load_url (GWebEngine *self, const gchar *url)
00072 {
00073         G_WEB_ENGINE_GET_CLASS (self)->load_url (self, url);
00074 }
00075 
00076 GWebStatus
00077 g_web_engine_load_follow_link (GWebEngine *self, const gchar *url)
00078 {
00079         return G_WEB_ENGINE_GET_CLASS (self)->load_follow_link (self, url);
00080 }
00081 
00082 GWebStatus
00083 g_web_engine_load_url_with_css (GWebEngine *self, const gchar *url, const gchar *cssfile)
00084 {
00085         return G_WEB_ENGINE_GET_CLASS (self)->load_url_with_css (self, url, cssfile);
00086 }
00087 
00088 void
00089 g_web_engine_load_url_with_js (GWebEngine *self, gboolean  enable)
00090 {
00091         G_WEB_ENGINE_GET_CLASS (self)->load_url_with_js (self, enable);
00092 }
00093 
00094 void
00095 g_web_engine_load_home_page (GWebEngine *self)
00096 {
00097         G_WEB_ENGINE_GET_CLASS (self)->load_home_page (self);
00098 }
00099 
00100 void
00101 g_web_engine_stop_load (GWebEngine *self)
00102 {
00103         G_WEB_ENGINE_GET_CLASS (self)->stop_load (self);
00104 }
00105 
00106 void
00107 g_web_engine_reload (GWebEngine *self)
00108 {
00109         G_WEB_ENGINE_GET_CLASS (self)->reload (self);
00110 }
00111 
00112 void
00113 g_web_engine_go_back (GWebEngine *self, guint nsteps)
00114 {
00115         G_WEB_ENGINE_GET_CLASS (self)->go_back (self, nsteps);
00116 }
00117 
00118 void
00119 g_web_engine_go_forward (GWebEngine *self, guint nsteps)
00120 {
00121         G_WEB_ENGINE_GET_CLASS (self)->go_forward (self, nsteps);
00122 }
00123 
00124 gboolean
00125 g_web_engine_can_go_back (GWebEngine *self)
00126 {
00127         return G_WEB_ENGINE_GET_CLASS (self)->can_go_back (self);
00128 }
00129 
00130 gboolean
00131 g_web_engine_can_go_forward (GWebEngine *self)
00132 {
00133         return G_WEB_ENGINE_GET_CLASS (self)->can_go_forward (self);
00134 }
00135 
00136 void
00137 g_web_engine_zoom_by_steps (GWebEngine *self, guint relative_zoom, guint* legal_zoom_value)
00138 {
00139         G_WEB_ENGINE_GET_CLASS (self)->zoom_by_steps (self, relative_zoom, legal_zoom_value);
00140 }
00141 
00142 void
00143 g_web_engine_new_zoom_by_steps (GWebEngine *self, gboolean up, guint* legal_zoom_value)
00144 {
00145         G_WEB_ENGINE_GET_CLASS (self)->new_zoom_by_steps (self, up, legal_zoom_value);
00146 }
00147 
00148 void
00149 g_web_engine_set_zoom_level (GWebEngine *self, gint level)
00150 {
00151         G_WEB_ENGINE_GET_CLASS (self)->set_zoom_level (self, level);
00152 }
00153 
00154 
00155 GWebStatus
00156 g_web_engine_set_zoom_level_around_point (GWebEngine *self, guint x, guint y, gint level)
00157 {
00158         return G_WEB_ENGINE_GET_CLASS (self)->set_zoom_level_around_point (self, x, y, level);
00159 }
00160 
00161 GWebStatus
00162 g_web_engine_compare_frames_zoom_level (GWebEngine *self, gboolean *equal)
00163 {
00164         return G_WEB_ENGINE_GET_CLASS (self)->compare_frames_zoom_level (self, equal);
00165 }
00166 
00167 GWebStatus
00168 g_web_engine_get_image_properties (GWebEngine *self, const gchar *url, gchar **file_type, guint *file_size, guint *width, guint *height)
00169 {
00170         return G_WEB_ENGINE_GET_CLASS (self)->get_image_properties (self, url, file_type, file_size, width, height);
00171 }
00172 
00173 GWebStatus
00174 g_web_engine_get_frame_properties (GWebEngine *self, gchar **file_type, guint *file_size, GWebEngineEncoding *file_encoding, guint *security, gboolean *automatic_encoding)
00175 {
00176         return G_WEB_ENGINE_GET_CLASS (self)->get_frame_properties (self, file_type, file_size, file_encoding, security, automatic_encoding);
00177 }
00178 
00179 GWebStatus
00180 g_web_engine_load_image (GWebEngine *self, const gchar* url)
00181 {
00182         return G_WEB_ENGINE_GET_CLASS (self)->load_image (self, url);
00183 }
00184 
00185 gint
00186 g_web_engine_get_back_window_history_list (GWebEngine *self, GWebHistoryList **history)
00187 {
00188         return G_WEB_ENGINE_GET_CLASS (self)->get_back_window_history_list (self, history);
00189 }
00190 
00191 gint
00192 g_web_engine_get_forward_window_history_list (GWebEngine *self, GWebHistoryList **history)
00193 {
00194         return G_WEB_ENGINE_GET_CLASS (self)->get_forward_window_history_list (self, history);
00195 }
00196 
00197 guint
00198 g_web_engine_get_zoom_level (GWebEngine *self)
00199 {
00200         return G_WEB_ENGINE_GET_CLASS (self)->get_zoom_level (self);
00201 }
00202 
00203 void
00204 g_web_engine_set_frame_zoom_level (GWebEngine *self, guint level)
00205 {
00206         G_WEB_ENGINE_GET_CLASS (self)->set_frame_zoom_level (self, level);
00207 }
00208 
00209 guint
00210 g_web_engine_get_frame_zoom_level (GWebEngine *self)
00211 {
00212         return G_WEB_ENGINE_GET_CLASS (self)->get_frame_zoom_level (self);
00213 }
00214 
00215 void
00216 g_web_engine_set_layout_mode (GWebEngine *self, GWebEngineLayoutMode mode)
00217 {
00218         G_WEB_ENGINE_GET_CLASS (self)->set_layout_mode (self, mode);
00219 }
00220 
00221 GWebEngineLayoutMode
00222 g_web_engine_get_layout_mode (GWebEngine *self)
00223 {
00224         return G_WEB_ENGINE_GET_CLASS (self)->get_layout_mode (self);
00225 }
00226 
00227 void
00228 g_web_engine_set_load_images (GWebEngine *self, GWebEngineImagePolicy level)
00229 {
00230         G_WEB_ENGINE_GET_CLASS (self)->set_load_images (self, level);
00231 }
00232 
00233 GWebEngineImagePolicy
00234 g_web_engine_get_load_images (GWebEngine *self)
00235 {
00236         return G_WEB_ENGINE_GET_CLASS (self)->get_load_images (self);
00237 }
00238 
00239 void
00240 g_web_engine_set_frame_stacking (GWebEngine *self, gboolean enabled)
00241 {
00242         G_WEB_ENGINE_GET_CLASS (self)->set_frame_stacking (self, enabled);
00243 }
00244 
00245 gboolean
00246 g_web_engine_get_frame_stacking (GWebEngine *self)
00247 {
00248         return G_WEB_ENGINE_GET_CLASS (self)->get_frame_stacking (self);
00249 }
00250 
00251 GWebStatus
00252 g_web_engine_save_web_page (GWebEngine *self, GWebEngineSaveAction setting, const gchar *file_name_with_path)
00253 {
00254         return G_WEB_ENGINE_GET_CLASS (self)->save_web_page (self, setting, file_name_with_path);
00255 }
00256 
00257 GWebStatus
00258 g_web_engine_save_current_frame (GWebEngine *self, GWebEngineSaveAction setting, const gchar *file_name_with_path)
00259 {
00260         return G_WEB_ENGINE_GET_CLASS (self)->save_current_frame (self, setting, file_name_with_path);
00261 }
00262 
00263 const gchar*
00264 g_web_engine_get_frame_title (GWebEngine *self, gint frame_number)
00265 {
00266         return G_WEB_ENGINE_GET_CLASS (self)->get_frame_title (self, frame_number);
00267 }
00268 
00269 gint
00270 g_web_engine_get_frame_number (GWebEngine *self)
00271 {
00272         return G_WEB_ENGINE_GET_CLASS (self)->get_frame_number (self);
00273 }
00274 
00275 GWebStatus
00276 g_web_engine_save_web_page_image (GWebEngine *self, const gchar *url, const gchar* directory)
00277 {
00278         return G_WEB_ENGINE_GET_CLASS (self)->save_web_page_image (self, url, directory);
00279 }
00280 
00281 void
00282 g_web_engine_select_all_text (GWebEngine *self)
00283 {
00284         G_WEB_ENGINE_GET_CLASS (self)->select_all_text (self);
00285 }
00286 
00287 void
00288 g_web_engine_set_language_encoding (GWebEngine *self, GWebEngineEncoding encoding)
00289 {
00290         G_WEB_ENGINE_GET_CLASS (self)->set_language_encoding (self, encoding);
00291 }
00292 
00293 void
00294 g_web_engine_set_frame_encoding (GWebEngine *self, GWebEngineEncoding encoding)
00295 {
00296         G_WEB_ENGINE_GET_CLASS (self)->set_frame_encoding (self, encoding);
00297 }
00298 
00299 gboolean
00300 g_web_engine_find_text (GWebEngine *self, const gchar *string, gboolean reverse, gboolean whole_word, gboolean case_sensitive, gboolean restart)
00301 {
00302         return G_WEB_ENGINE_GET_CLASS (self)->find_text (self, string, reverse, whole_word, case_sensitive, restart);
00303 }
00304 
00305 void
00306 g_web_engine_authenticate (GWebEngine *self, gboolean ok, const gchar *username, const gchar *password)
00307 {
00308         G_WEB_ENGINE_GET_CLASS (self)->authenticate (self, ok, username, password);
00309 }
00310 
00311 GWebStatus
00312 g_web_engine_cut (GWebEngine *self)
00313 {
00314         return G_WEB_ENGINE_GET_CLASS (self)->cut (self);
00315 }
00316 
00317 GWebStatus
00318 g_web_engine_copy (GWebEngine *self)
00319 {
00320         return G_WEB_ENGINE_GET_CLASS (self)->copy (self);
00321 }
00322 
00323 GWebStatus
00324 g_web_engine_paste (GWebEngine *self)
00325 {
00326         return G_WEB_ENGINE_GET_CLASS (self)->paste (self);
00327 }
00328 
00329 gboolean
00330 g_web_engine_can_cut (GWebEngine *self)
00331 {
00332         return G_WEB_ENGINE_GET_CLASS (self)->can_cut (self);
00333 }
00334 
00335 gboolean
00336 g_web_engine_can_paste (GWebEngine *self)
00337 {
00338         return G_WEB_ENGINE_GET_CLASS (self)->can_paste (self);
00339 }
00340 
00341 gboolean
00342 g_web_engine_can_copy (GWebEngine *self)
00343 {
00344         return G_WEB_ENGINE_GET_CLASS (self)->can_copy (self);
00345 }
00346 
00347 gboolean
00348 g_web_engine_can_selecttext (GWebEngine *self)
00349 {
00350         return G_WEB_ENGINE_GET_CLASS (self)->can_selecttext (self);
00351 }
00352 
00353 gchar*
00354 g_web_engine_get_favicon_name (GWebEngine *self, const gchar *favicon_folder)
00355 {
00356         return G_WEB_ENGINE_GET_CLASS (self)->get_favicon_name (self, favicon_folder);
00357 }
00358 
00359 GObject*
00360 g_web_engine_get_engine_widget (GWebEngine *self)
00361 {
00362         return G_WEB_ENGINE_GET_CLASS (self)->get_engine_widget (self);
00363 }
00364 
00365 GObject*
00366 g_web_engine_get_engine_notifier (GWebEngine *self)
00367 {
00368         return G_WEB_ENGINE_GET_CLASS (self)->get_engine_notifier (self);
00369 }
00370 
00371 void
00372 g_web_engine_set_open_link_mode (GWebEngine *self, gboolean in_new_window)
00373 {
00374         G_WEB_ENGINE_GET_CLASS (self)->set_open_link_mode (self, in_new_window);
00375 }
00376 
00377 GWebStatus
00378 g_web_engine_set_true_zoom_mode (GWebEngine *self, gboolean status)
00379 {
00380         return G_WEB_ENGINE_GET_CLASS (self)->set_true_zoom_mode (self, status);
00381 }
00382 
00383 void
00384 g_web_engine_notify_plugins (GWebEngine *self, gint event)
00385 {
00386         G_WEB_ENGINE_GET_CLASS (self)->notify_plugins (self, event);
00387 }
00388 
00389 void
00390 g_web_engine_preload_current_skin (GWebEngine *self)
00391 {
00392         G_WEB_ENGINE_GET_CLASS (self)->preload_current_skin (self);
00393 }
00394 void
00395 g_web_engine_invoke_selectmatch (GWebEngine *self)
00396 {
00397         G_WEB_ENGINE_GET_CLASS (self)->invoke_selectmatch (self);
00398 }
00399 
00400 GObject*
00401 g_web_engine_get_server_certificate (GWebEngine *self)
00402 {
00403         return G_WEB_ENGINE_GET_CLASS (self)->get_server_certificate (self);
00404 }

Generated on Tue Sep 25 10:37:04 2007 for browser-eal by  doxygen 1.5.1