[glabels] Cleanup of libglabels documentation.
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels] Cleanup of libglabels documentation.
- Date: Mon, 1 Mar 2010 04:17:23 +0000 (UTC)
commit 4aa7c2ac0a4578c2213b8964dff098f039eef703
Author: Jim Evins <evins snaught com>
Date: Sun Feb 28 23:14:23 2010 -0500
Cleanup of libglabels documentation.
Added documentation for new functionality in 3.0, including the vendor
database and a new "natural order" compare function for sorting
part numbers.
docs/libglabels/libglabels-3.0-docs.sgml | 2 +
docs/libglabels/libglabels-3.0-sections.txt | 28 ++++++++++++++
docs/libglabels/tmpl/db.sgml | 44 ++++++++++++++++++++++
docs/libglabels/tmpl/str.sgml | 10 +++++
docs/libglabels/tmpl/template.sgml | 46 +++++++++++++++++++++++
docs/libglabels/tmpl/vendor.sgml | 53 +++++++++++++++++++++++++++
docs/libglabels/tmpl/xml-vendor.sgml | 46 +++++++++++++++++++++++
libglabels/str.c | 5 +++
libglabels/template.c | 4 +--
libglabels/vendor.c | 5 ---
libglabels/xml-template.c | 4 --
11 files changed, 235 insertions(+), 12 deletions(-)
---
diff --git a/docs/libglabels/libglabels-3.0-docs.sgml b/docs/libglabels/libglabels-3.0-docs.sgml
index 9473f36..28ddc61 100644
--- a/docs/libglabels/libglabels-3.0-docs.sgml
+++ b/docs/libglabels/libglabels-3.0-docs.sgml
@@ -14,6 +14,7 @@
<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>
@@ -21,6 +22,7 @@
<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>
diff --git a/docs/libglabels/libglabels-3.0-sections.txt b/docs/libglabels/libglabels-3.0-sections.txt
index e6fb32f..9391808 100644
--- a/docs/libglabels/libglabels-3.0-sections.txt
+++ b/docs/libglabels/libglabels-3.0-sections.txt
@@ -36,6 +36,12 @@ lgl_db_get_template_name_list_unique
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
@@ -66,10 +72,12 @@ lglTemplateMarkupMargin
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
@@ -87,6 +95,7 @@ lgl_template_alias_dup
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
@@ -106,6 +115,7 @@ lgl_template_markup_margin_new
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>
@@ -129,6 +139,15 @@ 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_paper_read_papers_from_file
@@ -156,6 +175,14 @@ 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>
LGL_XML_NAME_SPACE
@@ -197,5 +224,6 @@ lgl_units_get_units_per_point
<FILE>str</FILE>
<INCLUDE>libglabels/str.h</INCLUDE>
lgl_str_utf8_casecmp
+lgl_str_part_name_cmp
</SECTION>
diff --git a/docs/libglabels/tmpl/db.sgml b/docs/libglabels/tmpl/db.sgml
index 3d5d2de..4c2705b 100644
--- a/docs/libglabels/tmpl/db.sgml
+++ b/docs/libglabels/tmpl/db.sgml
@@ -283,6 +283,50 @@ This enumeration defines a set of possible return values for lgl_db_register_tem
@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>
diff --git a/docs/libglabels/tmpl/str.sgml b/docs/libglabels/tmpl/str.sgml
index 53cbd3b..e333fb0 100644
--- a/docs/libglabels/tmpl/str.sgml
+++ b/docs/libglabels/tmpl/str.sgml
@@ -28,3 +28,13 @@ possible use to a user of libglabels.
@Returns:
+<!-- ##### FUNCTION lgl_str_part_name_cmp ##### -->
+<para>
+
+</para>
+
+ s1:
+ s2:
+ Returns:
+
+
diff --git a/docs/libglabels/tmpl/template.sgml b/docs/libglabels/tmpl/template.sgml
index ae363e4..57e7405 100644
--- a/docs/libglabels/tmpl/template.sgml
+++ b/docs/libglabels/tmpl/template.sgml
@@ -208,6 +208,17 @@ This structure defines a simple rectangle markup. The rectangle can have rounde
@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.
@@ -232,6 +243,17 @@ relative to the upper left corner of the page.
@Returns:
+<!-- ##### FUNCTION lgl_template_new_from_equiv ##### -->
+<para>
+
+</para>
+
+ brand:
+ part:
+ equiv_part:
+ Returns:
+
+
<!-- ##### FUNCTION lgl_template_dup ##### -->
<para>
@@ -366,6 +388,18 @@ relative to the upper left corner of the page.
@Returns:
+<!-- ##### FUNCTION lgl_template_frame_ellipse_new ##### -->
+<para>
+
+</para>
+
+ id:
+ w:
+ h:
+ waste:
+ Returns:
+
+
<!-- ##### FUNCTION lgl_template_frame_round_new ##### -->
<para>
@@ -530,6 +564,18 @@ relative to the upper left corner of the page.
@Returns:
+<!-- ##### FUNCTION lgl_template_markup_ellipse_new ##### -->
+<para>
+
+</para>
+
+ x1:
+ y1:
+ w:
+ h:
+ Returns:
+
+
<!-- ##### FUNCTION lgl_template_markup_dup ##### -->
<para>
diff --git a/docs/libglabels/tmpl/vendor.sgml b/docs/libglabels/tmpl/vendor.sgml
new file mode 100644
index 0000000..1dee004
--- /dev/null
+++ b/docs/libglabels/tmpl/vendor.sgml
@@ -0,0 +1,53 @@
+<!-- ##### 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:
+
+
diff --git a/docs/libglabels/tmpl/xml-vendor.sgml b/docs/libglabels/tmpl/xml-vendor.sgml
new file mode 100644
index 0000000..2550d25
--- /dev/null
+++ b/docs/libglabels/tmpl/xml-vendor.sgml
@@ -0,0 +1,46 @@
+<!-- ##### 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:
+
+
diff --git a/libglabels/str.c b/libglabels/str.c
index 627e6be..e93a991 100644
--- a/libglabels/str.c
+++ b/libglabels/str.c
@@ -86,10 +86,15 @@ lgl_str_utf8_casecmp (const gchar *s1,
*
* 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.
*
diff --git a/libglabels/template.c b/libglabels/template.c
index 9c1e71f..0af4e5d 100644
--- a/libglabels/template.c
+++ b/libglabels/template.c
@@ -414,9 +414,7 @@ lgl_template_frame_rect_new (const gchar *id,
* @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.
*
diff --git a/libglabels/vendor.c b/libglabels/vendor.c
index 9ee29bf..e7f950b 100644
--- a/libglabels/vendor.c
+++ b/libglabels/vendor.c
@@ -49,12 +49,7 @@
/**
* 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.
*
diff --git a/libglabels/xml-template.c b/libglabels/xml-template.c
index a6f10a4..75b6fec 100644
--- a/libglabels/xml-template.c
+++ b/libglabels/xml-template.c
@@ -104,8 +104,6 @@ static void xml_create_alias_node (const lglTemplateAlias *alias
*
* Read glabels templates from template file.
*
- * Returns: a list of #lglTemplate structures.
- *
*/
void
lgl_xml_template_read_templates_from_file (const gchar *utf8_filename)
@@ -142,8 +140,6 @@ 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]