3 * Copyright (C) 2002-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
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.
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.
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/>.
23 #include <glib/gi18n.h>
25 #include "merge-init.h"
26 #include "merge-text.h"
29 #include "merge-evolution.h"
30 #include "merge-vcard.h"
31 #endif /* HAVE_LIBEBOOK */
35 /*========================================================*/
37 /*========================================================*/
39 /*========================================================*/
40 /* Private globals. */
41 /*========================================================*/
43 /*========================================================*/
44 /* Private function prototypes. */
45 /*========================================================*/
48 /*****************************************************************************/
49 /* Initailize document merge module, by registering all available backends. */
50 /*****************************************************************************/
55 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
57 _("Text: Comma Separated Values (CSV)"),
62 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
63 "Text/Comma/Line1Keys",
64 _("Text: Comma Separated Values (CSV) with keys on line 1"),
67 "line1_has_keys", TRUE,
70 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
72 _("Text: Tab Separated Values (TSV)"),
77 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
79 _("Text: Tab Separated Values (TSV) with keys on line 1"),
82 "line1_has_keys", TRUE,
85 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
87 _("Text: Colon separated values"),
92 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
93 "Text/Colon/Line1Keys",
94 _("Text: Colon separated values with keys on line 1"),
97 "line1_has_keys", TRUE,
100 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
102 _("Text: Semicolon separated values"),
103 GL_MERGE_SRC_IS_FILE,
107 gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
108 "Text/Semicolon/Line1Keys",
109 _("Text: Semicolon separated values with keys on line 1"),
110 GL_MERGE_SRC_IS_FILE,
112 "line1_has_keys", TRUE,
117 gl_merge_register_backend (GL_TYPE_MERGE_EVOLUTION,
119 _("Evolution Addressbook"),
120 GL_MERGE_SRC_IS_FIXED,
123 gl_merge_register_backend (GL_TYPE_MERGE_VCARD,
126 GL_MERGE_SRC_IS_FILE,
129 #endif /* HAVE_LIBEBOOK */
136 * Local Variables: -- emacs
138 * c-basic-offset: 8 -- emacs
139 * tab-width: 8 -- emacs
140 * indent-tabs-mode: nil -- emacs