]> git.sur5r.net Git - glabels/blob - glabels2/src/merge-init.c
Multiple fixes to merge type and properties dialog.
[glabels] / glabels2 / src / merge-init.c
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  merge.c:  document merge initialization
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22 #include <config.h>
23
24 #include <gnome.h>
25
26 #include "merge-init.h"
27 #include "merge-text.h"
28
29 #include "debug.h"
30
31 /*========================================================*/
32 /* Private types.                                         */
33 /*========================================================*/
34
35 /*========================================================*/
36 /* Private globals.                                       */
37 /*========================================================*/
38
39 /*========================================================*/
40 /* Private function prototypes.                           */
41 /*========================================================*/
42
43 \f
44 /*****************************************************************************/
45 /* Initailize document merge module, by registering all available backends.  */
46 /*****************************************************************************/
47 void
48 gl_merge_init (void)
49 {
50
51         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
52                                    "Text/Comma",
53                                    _("Text file with comma delimeters (CSV)"),
54                                    GL_MERGE_SRC_IS_FILE,
55                                    "delim", ',',
56                                    NULL);
57
58         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
59                                    "Text/Colon",
60                                    _("Text file with colon delimeters"),
61                                    GL_MERGE_SRC_IS_FILE,
62                                    "delim", ':',
63                                    NULL);
64
65         gl_merge_register_backend (GL_TYPE_MERGE_TEXT,
66                                    "Text/Tab",
67                                    _("Text file with tab delimeters"),
68                                    GL_MERGE_SRC_IS_FILE,
69                                    "delim", '\t',
70                                    NULL);
71
72 }