1 /*
2  *
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public License
13  * along with this program; if not, see <http://www.gnu.org/licenses/>.
14  *
15  *
16  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
17  *
18  */
19 
20 #ifndef E_COMPOSER_SPELL_HEADER_H
21 #define E_COMPOSER_SPELL_HEADER_H
22 
23 #include <composer/e-composer-text-header.h>
24 
25 /* Standard GObject macros */
26 #define E_TYPE_COMPOSER_SPELL_HEADER \
27 	(e_composer_spell_header_get_type ())
28 #define E_COMPOSER_SPELL_HEADER(obj) \
29 	(G_TYPE_CHECK_INSTANCE_CAST \
30 	((obj), E_TYPE_COMPOSER_SPELL_HEADER, EComposerSpellHeader))
31 #define E_COMPOSER_SPELL_HEADER_CLASS(cls) \
32 	(G_TYPE_CHECK_CLASS_CAST \
33 	((cls), E_TYPE_COMPOSER_SPELL_HEADER, EComposerSpellHeaderClass))
34 #define E_IS_COMPOSER_SPELL_HEADER(obj) \
35 	(G_TYPE_CHECK_INSTANCE_TYPE \
36 	((obj), E_TYPE_COMPOSER_SPELL_HEADER))
37 #define E_IS_COMPOSER_SPELL_HEADER_CLASS(cls) \
38 	(G_TYPE_CHECK_CLASS_TYPE \
39 	((cls), E_TYPE_COMPOSER_SPELL_HEADER))
40 #define E_COMPOSER_SPELL_HEADER_GET_CLASS(obj) \
41 	(G_TYPE_INSTANCE_GET_CLASS \
42 	((obj), E_TYPE_COMPOSER_SPELL_HEADER, EComposerSpellHeaderClass))
43 
44 G_BEGIN_DECLS
45 
46 typedef struct _EComposerSpellHeader EComposerSpellHeader;
47 typedef struct _EComposerSpellHeaderClass EComposerSpellHeaderClass;
48 
49 struct _EComposerSpellHeader {
50 	EComposerTextHeader parent;
51 };
52 
53 struct _EComposerSpellHeaderClass {
54 	EComposerTextHeaderClass parent_class;
55 
56 	GType entry_type;
57 };
58 
59 GType		e_composer_spell_header_get_type
60 						(void) G_GNUC_CONST;
61 EComposerHeader *
62 		e_composer_spell_header_new_label
63 						(ESourceRegistry *registry,
64 						 const gchar *label);
65 EComposerHeader *
66 		e_composer_spell_header_new_button
67 						(ESourceRegistry *registry,
68 						 const gchar *label);
69 
70 G_END_DECLS
71 
72 #endif /* E_COMPOSER_SPELL_HEADER_H */
73