~ubuntu-branches/ubuntu/karmic/chmsee/karmic

« back to all changes in this revision

Viewing changes to src/ihtml.h

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-05-17 15:42:38 UTC
  • mfrom: (2.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090517154238-n0sqnmv64h8jc0ln
Tags: 1.0.5-1
* new upstream release.
* debian/control:
  - build depends: remove autotools-dev, add cmake.
  - change maintainer's email. 
  - bump standards version to 3.8.1.
* debian/rules:
  - switch to cmake.
  - install ChangeLog and ChangeLog.old.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2009 LI Daobing <lidaobing@gmail.com>
 
3
 *
 
4
 *  ChmSee 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)
 
7
 *  any later version.
 
8
 
 
9
 *  ChmSee 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.
 
13
 
 
14
 *  You should have received a copy of the GNU General Public License
 
15
 *  along with ChmSee; see the file COPYING.  If not, write to
 
16
 *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 *  Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef __CHMSEE_IHTML_H__
 
21
#define __CHMSEE_IHTML_H__
 
22
 
 
23
#include <glib-object.h>
 
24
#include <gtk/gtk.h>
 
25
 
 
26
#define CHMSEE_TYPE_IHTML (chmsee_ihtml_get_type())
 
27
#define CHMSEE_IHTML(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CHMSEE_TYPE_IHTML, ChmseeIhtml))
 
28
#define CHMSEE_IS_IHTML(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CHMSEE_TYPE_IHTML))
 
29
#define CHMSEE_IHTML_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), CHMSEE_TYPE_IHTML, ChmseeIhtmlInterface))
 
30
 
 
31
typedef struct _ChmseeIhtml ChmseeIhtml; /* dummy */
 
32
typedef struct _ChmseeIhtmlInterface ChmseeIhtmlInterface;
 
33
 
 
34
struct _ChmseeIhtmlInterface
 
35
{
 
36
  GTypeInterface parent_iface;
 
37
 
 
38
  const gchar* (*get_title) (ChmseeIhtml* self);
 
39
  const gchar* (*get_location) (ChmseeIhtml* self);
 
40
  gboolean (*can_go_back) (ChmseeIhtml* self);
 
41
  gboolean (*can_go_forward) (ChmseeIhtml* self);
 
42
  
 
43
 
 
44
  void (*open_uri) (ChmseeIhtml* self, const gchar* uri);
 
45
  void (*copy_selection) (ChmseeIhtml* self);
 
46
  void (*select_all) (ChmseeIhtml* self);
 
47
  void (*go_back) (ChmseeIhtml* self);
 
48
  void (*go_forward) (ChmseeIhtml* self);
 
49
  void (*increase_size) (ChmseeIhtml* self);
 
50
  void (*decrease_size) (ChmseeIhtml* self);
 
51
  void (*reset_size) (ChmseeIhtml* self);
 
52
  void (*set_variable_font) (ChmseeIhtml* self, const gchar* font);
 
53
  void (*set_fixed_font) (ChmseeIhtml* self, const gchar* font);
 
54
  void (*clear) (ChmseeIhtml* self);
 
55
  void (*shutdown) (ChmseeIhtml* self);
 
56
 
 
57
  GtkWidget* (*get_widget) (ChmseeIhtml* self);
 
58
};
 
59
 
 
60
GType chmsee_ihtml_get_type(void);
 
61
 
 
62
const gchar* chmsee_ihtml_get_title(ChmseeIhtml* self);
 
63
const gchar* chmsee_ihtml_get_location(ChmseeIhtml* self);
 
64
gboolean chmsee_ihtml_can_go_back(ChmseeIhtml* self);
 
65
gboolean chmsee_ihtml_can_go_forward(ChmseeIhtml* self);
 
66
 
 
67
void chmsee_ihtml_open_uri(ChmseeIhtml* self, const gchar* uri);
 
68
void chmsee_ihtml_copy_selection(ChmseeIhtml* self);
 
69
void chmsee_ihtml_select_all(ChmseeIhtml* self);
 
70
void chmsee_ihtml_go_back(ChmseeIhtml* self);
 
71
void chmsee_ihtml_go_forward(ChmseeIhtml* self);
 
72
void chmsee_ihtml_increase_size(ChmseeIhtml* self);
 
73
void chmsee_ihtml_reset_size(ChmseeIhtml* self);
 
74
void chmsee_ihtml_decrease_size(ChmseeIhtml* self);
 
75
void chmsee_ihtml_shutdown(ChmseeIhtml* self);
 
76
void chmsee_ihtml_set_variable_font(ChmseeIhtml* self, const gchar* font);
 
77
void chmsee_ihtml_set_fixed_font(ChmseeIhtml* self, const gchar* font);
 
78
void chmsee_ihtml_clear(ChmseeIhtml* self);
 
79
GtkWidget* chmsee_ihtml_get_widget(ChmseeIhtml* self);
 
80
 
 
81
#endif