<xi:include href="xml/template.xml"/>
<xi:include href="xml/paper.xml"/>
<xi:include href="xml/category.xml"/>
+ <xi:include href="xml/vendor.xml"/>
</chapter>
<chapter>
<xi:include href="xml/xml-paper.xml"/>
<xi:include href="xml/xml-category.xml"/>
<xi:include href="xml/xml-template.xml"/>
+ <xi:include href="xml/xml-vendor.xml"/>
<xi:include href="xml/xml.xml"/>
</chapter>
lgl_db_get_template_name_list_all
lgl_db_free_template_name_list
lgl_db_lookup_template_from_name
+lgl_db_lookup_template_from_brand_part
+<SUBSECTION Vendor Functions>
+lgl_db_get_vendor_name_list
+lgl_db_free_vendor_name_list
+lgl_db_is_vendor_name_known
+lgl_db_lookup_vendor_from_name
<SUBSECTION Debugging Functions>
lgl_db_print_known_papers
lgl_db_print_known_categories
lglTemplateMarkupLine
lglTemplateMarkupCircle
lglTemplateMarkupRect
+lglTemplateMarkupEllipse
<SUBSECTION Origin Structure>
lglTemplateOrigin
<SUBSECTION Template Functions>
lgl_template_new
+lgl_template_new_from_equiv
lgl_template_dup
lgl_template_free
lgl_template_add_category
lgl_template_alias_free
<SUBSECTION Frame Functions>
lgl_template_frame_rect_new
+lgl_template_frame_ellipse_new
lgl_template_frame_round_new
lgl_template_frame_cd_new
lgl_template_frame_dup
lgl_template_markup_line_new
lgl_template_markup_circle_new
lgl_template_markup_rect_new
+lgl_template_markup_ellipse_new
lgl_template_markup_dup
lgl_template_markup_free
</SECTION>
lgl_category_free
</SECTION>
+<SECTION>
+<FILE>vendor</FILE>
+<INCLUDE>libglabels/vendor.h</INCLUDE>
+lglVendor
+lgl_vendor_new
+lgl_vendor_dup
+lgl_vendor_free
+</SECTION>
+
<SECTION>
<FILE>xml-paper</FILE>
<INCLUDE>libglabels/xml-paper.h</INCLUDE>
lgl_xml_template_create_template_node
</SECTION>
+<SECTION>
+<FILE>xml-vendor</FILE>
+<INCLUDE>libglabels/xml-vendor.h</INCLUDE>
+lgl_xml_vendor_read_vendors_from_file
+lgl_xml_vendor_parse_vendors_doc
+lgl_xml_vendor_parse_vendor_node
+</SECTION>
+
<SECTION>
<FILE>xml</FILE>
<INCLUDE>libglabels/xml.h</INCLUDE>
<FILE>str</FILE>
<INCLUDE>libglabels/str.h</INCLUDE>
lgl_str_utf8_casecmp
+lgl_str_part_name_cmp
</SECTION>
@Returns:
+<!-- ##### FUNCTION lgl_db_lookup_template_from_brand_part ##### -->
+<para>
+
+</para>
+
+@brand:
+@part:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_db_get_vendor_name_list ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_db_free_vendor_name_list ##### -->
+<para>
+
+</para>
+
+@names:
+
+
+<!-- ##### FUNCTION lgl_db_is_vendor_name_known ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_db_lookup_vendor_from_name ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
+
<!-- ##### FUNCTION lgl_db_print_known_papers ##### -->
<para>
@Returns:
+<!-- ##### FUNCTION lgl_str_part_name_cmp ##### -->
+<para>
+
+</para>
+
+@s1:
+@s2:
+@Returns:
+
+
@h: Height of rectangle in points.
@r: Radius of corners in points. Should be zero for sharp corners.
+<!-- ##### STRUCT lglTemplateMarkupEllipse ##### -->
+<para>
+This structure defines a simple elliptical markup.
+</para>
+
+@type: Common field. Always #LGL_TEMPLATE_MARKUP_ELLIPSE for #lglTemplateMarkupEllipse.
+@x1: Distance (in points) of left edge of markup from left edge of label or card.
+@y1: Distance (in points) of top edge of markup from top edge of label or card.
+@w: Width of rectangle in points.
+@h: Height of rectangle in points.
+
<!-- ##### STRUCT lglTemplateOrigin ##### -->
<para>
This structure represents the cartesian coordinates of the origin of a label or card on the page.
@Returns:
+<!-- ##### FUNCTION lgl_template_new_from_equiv ##### -->
+<para>
+
+</para>
+
+@brand:
+@part:
+@equiv_part:
+@Returns:
+
+
<!-- ##### FUNCTION lgl_template_dup ##### -->
<para>
@Returns:
+<!-- ##### FUNCTION lgl_template_frame_ellipse_new ##### -->
+<para>
+
+</para>
+
+@id:
+@w:
+@h:
+@waste:
+@Returns:
+
+
<!-- ##### FUNCTION lgl_template_frame_round_new ##### -->
<para>
@Returns:
+<!-- ##### FUNCTION lgl_template_markup_ellipse_new ##### -->
+<para>
+
+</para>
+
+@x1:
+@y1:
+@w:
+@h:
+@Returns:
+
+
<!-- ##### FUNCTION lgl_template_markup_dup ##### -->
<para>
--- /dev/null
+<!-- ##### SECTION Title ##### -->
+The lglVendor Structure
+
+<!-- ##### SECTION Short_Description ##### -->
+Vendor definitions
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+This section describes a structure for representing vendor data.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT lglVendor ##### -->
+<para>
+This structure defines a vendor.
+</para>
+
+@name: Vendor name. (e.g. "Avery")
+@url: URL to vendor website
+
+<!-- ##### FUNCTION lgl_vendor_new ##### -->
+<para>
+
+</para>
+
+@name:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_vendor_dup ##### -->
+<para>
+
+</para>
+
+@orig:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_vendor_free ##### -->
+<para>
+
+</para>
+
+@vendor:
+
+
--- /dev/null
+<!-- ##### SECTION Title ##### -->
+XML Vendor Functions
+
+<!-- ##### SECTION Short_Description ##### -->
+Functions to parse glabels XML vendor descriptions
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+This section describes several functions for parsing vendor XML description files.
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### FUNCTION lgl_xml_vendor_read_vendors_from_file ##### -->
+<para>
+
+</para>
+
+@utf8_filename:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_xml_vendor_parse_vendors_doc ##### -->
+<para>
+
+</para>
+
+@vendors_doc:
+@Returns:
+
+
+<!-- ##### FUNCTION lgl_xml_vendor_parse_vendor_node ##### -->
+<para>
+
+</para>
+
+@vendor_node:
+@Returns:
+
+
*
* Compare two UTF-8 strings representing part names or numbers. This function
* uses a natural sort order:
+ *
* - Ignores case.
+ *
* - Strings are divided into chunks (numeric and non-numeric)
+ *
* - Non-numeric chunks are compared character by character
+ *
* - Numerical chunks are compared numerically, so that "20" precedes "100".
+ *
* - Comparison of chunks is performed left to right until the first difference
* is encountered or all chunks evaluate as equal.
*
* @id: ID of frame. (This should currently always be "0").
* @w: width of frame in points.
* @h: height of frame in points.
- * @r: radius of rounded corners in points. (Should be 0 for square corners.)
- * @x_waste: Amount of overprint to allow in the horizontal direction.
- * @y_waste: Amount of overprint to allow in the vertical direction.
+ * @waste: Amount of overprint to allow in points.
*
* This function creates a new template frame for an elliptical label or card.
*
/**
* lgl_vendor_new:
- * @id: Id of vendor definition. (E.g. US-Letter, A4, etc.) Should be
- * unique.
* @name: Localized name of vendor.
- * @width: Width of vendor in points.
- * @height: Height of vendor in points.
- * @pwg_size: PWG 5101.1-2002 size name.
*
* Allocates and constructs a new #lglVendor structure.
*
*
* Read glabels templates from template file.
*
- * Returns: a list of #lglTemplate structures.
- *
*/
void
lgl_xml_template_read_templates_from_file (const gchar *utf8_filename)
*
* Read glabels templates from a libxml #xmlDocPtr tree.
*
- * Returns: a list of #lglTemplate structures.
- *
*/
void
lgl_xml_template_parse_templates_doc (const xmlDocPtr templates_doc)