diff options
author | rootavish <[email protected]> | 2014-07-10 13:50:37 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-07-10 13:50:37 +0530 |
commit | 423af80ad421a8a19e1c4be0c6851dff845a0f6c (patch) | |
tree | a5f5258fcfd1850f36d1238c7162146f3c186a82 /libview/ev-web-view.h | |
parent | df43418e209ae9c98844185f789c63769ae9b3a2 (diff) | |
download | atril-423af80ad421a8a19e1c4be0c6851dff845a0f6c.tar.bz2 atril-423af80ad421a8a19e1c4be0c6851dff845a0f6c.tar.xz |
Files for EvWebView, thumbnails possible with GTK+-2.0
My last commit was supposed to have ev-web-view.c and ev-web-view.h however due to some reason I missed them last time, so here they are now. i am able to achieve thumbnails for my epub however these are of absurdly large size. Still struggling to get the webview done due to thread problems that I am encountering.
Diffstat (limited to 'libview/ev-web-view.h')
-rw-r--r-- | libview/ev-web-view.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libview/ev-web-view.h b/libview/ev-web-view.h new file mode 100644 index 00000000..6aaa17ff --- /dev/null +++ b/libview/ev-web-view.h @@ -0,0 +1,64 @@ +/* this file is part of atril, a mate document web_viewer + * + * Copyright (C) 2014 Avishkar Gupta + * Based on ev-view.h + * + * Atril is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Atril is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#if !defined (__EV_ATRIL_VIEW_H_INSIDE__) && !defined (ATRIL_COMPILATION) +#error "Only <atril-web_view.h> can be included directly." +#endif + +#ifndef __EV_WEB_VIEW_H__ +#define __EV_WEB_VIEW_H__ + +#include <gtk/gtk.h> + +#include <atril-document.h> + +#include "ev-document-model.h" +#include <glib-object.h> +G_BEGIN_DECLS + + +typedef struct _EvWebView EvWebView; +typedef struct _EvWebViewClass EvWebViewClass; + +#define EV_TYPE_WEB_VIEW (ev_web_view_get_type ()) +#define EV_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_WEB_VIEW, EvWebView)) +#define EV_IS_WEB_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_WEB_VIEW)) + +GType ev_web_view_get_type (void) G_GNUC_CONST; + +GtkWidget* ev_web_view_new (void); +void ev_web_view_set_model (EvWebView *webview, + EvDocumentModel *model); +void ev_web_view_reload (EvWebView *webview); + +/* Navigation */ +gboolean ev_web_view_next_page (EvWebView *webview); +gboolean ev_web_view_previous_page (EvWebView *webview); + +/*Sidebar links*/ +void ev_web_view_handle_link (EvWebView *webview, EvLink* link); + +/*Searching*/ +void ev_web_view_find_next (EvWebView *webview); +void ev_web_view_find_previous (EvWebView *webview); + +G_END_DECLS + +#endif /* __EV_WEB_VIEW_H__ */ |