2 * Copyright © 2000-2003 Marco Pesenti Gritti
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * $Id: ephy-embed-shell.h 6952 2007-03-11 19:42:02Z chpe $
21 #ifndef EPHY_EMBED_SHELL_H
22 #define EPHY_EMBED_SHELL_H
25 #include <glib-object.h>
26 #include <gtk/gtkpagesetup.h>
27 #include <gtk/gtkprintsettings.h>
31 #define EPHY_TYPE_EMBED_SHELL (ephy_embed_shell_get_type ())
32 #define EPHY_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShell))
33 #define EPHY_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
34 #define EPHY_IS_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_EMBED_SHELL))
35 #define EPHY_IS_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_EMBED_SHELL))
36 #define EPHY_EMBED_SHELL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
38 typedef struct _EphyEmbedShellClass EphyEmbedShellClass
;
39 typedef struct _EphyEmbedShell EphyEmbedShell
;
40 typedef struct _EphyEmbedShellPrivate EphyEmbedShellPrivate
;
42 extern EphyEmbedShell
*embed_shell
;
44 struct _EphyEmbedShell
49 EphyEmbedShellPrivate
*priv
;
52 struct _EphyEmbedShellClass
54 GObjectClass parent_class
;
56 void (* prepare_close
) (EphyEmbedShell
*shell
);
59 GObject
* (* get_embed_single
) (EphyEmbedShell
*shell
);
62 GType
ephy_embed_shell_get_type (void);
64 EphyEmbedShell
*ephy_embed_shell_get_default (void);
66 GObject
*ephy_embed_shell_get_favicon_cache (EphyEmbedShell
*ges
);
68 GObject
*ephy_embed_shell_get_global_history (EphyEmbedShell
*shell
);
70 GObject
*ephy_embed_shell_get_downloader_view (EphyEmbedShell
*shell
);
72 GObject
*ephy_embed_shell_get_downloader_view_nocreate (EphyEmbedShell
*shell
);
74 GObject
*ephy_embed_shell_get_encodings (EphyEmbedShell
*shell
);
76 GObject
*ephy_embed_shell_get_embed_single (EphyEmbedShell
*shell
);
78 GObject
*ephy_embed_shell_get_adblock_manager (EphyEmbedShell
*shell
);
80 void ephy_embed_shell_prepare_close (EphyEmbedShell
*shell
);
82 void ephy_embed_shell_set_page_setup (EphyEmbedShell
*shell
,
83 GtkPageSetup
*page_setup
);
85 GtkPageSetup
*ephy_embed_shell_get_page_setup (EphyEmbedShell
*shell
);
87 void ephy_embed_shell_set_print_settings (EphyEmbedShell
*shell
,
88 GtkPrintSettings
*settings
);
90 GtkPrintSettings
*ephy_embed_shell_get_print_settings (EphyEmbedShell
*shell
);
94 #endif /* !EPHY_EMBED_SHELL_H */