]> git.sur5r.net Git - glabels/blob - src/merge-init.c
Organized master branch to be top-level directory for glabels, instead of
[glabels] / src / merge-init.c
1 /*
2  *  merge-init.c
3  *  Copyright (C) 2002-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #include <config.h>
22
23 #include <glib/gi18n.h>
24
25 #include "merge-init.h"
26 #include "merge-text.h"
27
28 #ifdef HAVE_LIBEBOOK
29 #include "merge-evolution.h"
30 #include "merge-vcard.h"
31 #endif /* HAVE_LIBEBOOK */
32
33 #include "debug.h"
34
35 /*========================================================*/
36 /* Private types.                                         */
37 /*========================================================*/
38
39 /*========================================================*/
40 /* Private globals.                                       */
41 /*========================================================*/
42
43 /*========================================================*/
44 /* Private function prototypes.                           */
45 /*========================================================*/
46
47 \f
48 /*****************************************************************************/
49 /* Initailize document merge module, by registering all available backends.  */
50 /*****************************************************************************/
51 void
52 gl_merge_init (void)
53 {
54
55         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
56                                    "Text/Comma",
57                                    _("Text file with comma delimeters (CSV)"),
58                                    GL_MERGE_SRC_IS_FILE,
59                                    "delim", ',',
60                                    NULL);
61
62         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
63                                    "Text/Colon",
64                                    _("Text file with colon delimeters"),
65                                    GL_MERGE_SRC_IS_FILE,
66                                    "delim", ':',
67                                    NULL);
68
69         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
70                                    "Text/Tab",
71                                    _("Text file with tab delimeters"),
72                                    GL_MERGE_SRC_IS_FILE,
73                                    "delim", '\t',
74                                    NULL);
75
76 #ifdef HAVE_LIBEBOOK
77
78         gl_merge_register_backend (GL_TYPE_MERGE_EVOLUTION,
79                                    "ebook/eds",
80                                    _("Data from default Evolution Addressbook"),
81                                    GL_MERGE_SRC_IS_FIXED,
82                                    NULL);
83
84         gl_merge_register_backend (GL_TYPE_MERGE_VCARD,
85                                    "ebook/vcard",
86                                    _("Data from a file containing VCards"),
87                                    GL_MERGE_SRC_IS_FILE,
88                                    NULL);
89
90 #endif /* HAVE_LIBEBOOK */
91
92 }
93
94
95
96 /*
97  * Local Variables:       -- emacs
98  * mode: C                -- emacs
99  * c-basic-offset: 8      -- emacs
100  * tab-width: 8           -- emacs
101  * indent-tabs-mode: nil  -- emacs
102  * End:                   -- emacs
103  */