+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+
/*
* (GLABELS) Label and Business Card Creation program for GNOME
*
*/
#include <config.h>
-#include <libgnome/libgnome.h>
-
#include "bc.h"
+
+#include <glib/gi18n.h>
+#include <glib/gmem.h>
+#include <glib/gstrfuncs.h>
+#include <glib/gmessages.h>
+
#include "bc-postnet.h"
#include "bc-gnubarcode.h"
+#include "bc-iec16022.h"
+#include "bc-iec18004.h"
#include "debug.h"
/* Private globals. */
/*========================================================*/
-Backend backends[] = {
+static const Backend backends[] = {
{ "POSTNET", N_("POSTNET (any)"), gl_barcode_postnet_new,
FALSE, FALSE, TRUE, FALSE, "12345-6789-12", FALSE, 11},
{ "POSTNET-11", N_("POSTNET-11 (DPBC)"), gl_barcode_postnet_new,
FALSE, FALSE, TRUE, FALSE, "12345-6789-12", FALSE, 11},
+ { "CEPNET", N_("CEPNET"), gl_barcode_postnet_new,
+ FALSE, FALSE, TRUE, FALSE, "12345-678", FALSE, 8},
+
{ "EAN", N_("EAN (any)"), gl_barcode_gnubarcode_new,
TRUE, TRUE, TRUE, FALSE, "000000000000 00000", FALSE, 17},
TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10},
{ "Code128C", N_("Code 128C"), gl_barcode_gnubarcode_new,
- TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10},
+ TRUE, TRUE, TRUE, FALSE, "0000000000", TRUE, 10},
{ "Code128B", N_("Code 128B"), gl_barcode_gnubarcode_new,
TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10},
{ "PLS", N_("Plessey"), gl_barcode_gnubarcode_new,
TRUE, TRUE, TRUE, TRUE, "0000000000", TRUE, 10},
+ { "IEC16022", N_("IEC16022 (DataMatrix)"), gl_barcode_iec16022_new,
+ FALSE, FALSE, TRUE, FALSE, "12345678", TRUE, 8},
+
+ { "IEC18004", N_("IEC18004 (QRCode)"), gl_barcode_iec18004_new,
+ FALSE, FALSE, TRUE, FALSE, "12345678", TRUE, 8},
+
{ NULL, NULL, NULL, FALSE, FALSE, FALSE, FALSE, NULL, FALSE, 0}
};
}
}
- g_warning( "Unknown barcode id \"%s\"", id );
+ g_message( "Unknown barcode id \"%s\"", id );
return 0;
}
}
}
- g_warning( "Unknown barcode name \"%s\"", name );
+ g_message( "Unknown barcode name \"%s\"", name );
return 0;
}