{
GObject *object;
xmlNodePtr child;
+ gdouble w, h;
gchar *string;
glTextNode *text_node;
glBarcodeStyle style;
object = gl_label_barcode_new (label);
+ w = gl_xml_get_prop_double (node, "w", 0);
+ h = gl_xml_get_prop_double (node, "h", 0);
+
color = gl_xml_get_prop_uint_hex (node, "color", 0);
string = xmlGetProp (node, "style");
}
}
+ gl_label_object_set_size (GL_LABEL_OBJECT(object), w, h);
+
gl_label_barcode_set_data (GL_LABEL_BARCODE(object), text_node);
gl_label_barcode_set_props (GL_LABEL_BARCODE(object),
style, text_flag, checksum_flag, color);
xmlNsPtr ns,
glLabelObject *object)
{
+ gdouble w, h;
glTextNode *text_node;
glBarcodeStyle style;
gboolean text_flag;
xmlSetProp (object_node, "type", "Barcode");
+ gl_label_object_get_size (GL_LABEL_OBJECT(object), &w, &h);
+
+ gl_xml_set_prop_double (object_node, "w", w);
+ gl_xml_set_prop_double (object_node, "h", h);
+
+
text_node = gl_label_barcode_get_data (GL_LABEL_BARCODE(object));
gl_label_barcode_get_props (GL_LABEL_BARCODE(object),
&style, &text_flag, &checksum_flag, &color);