This shows you the differences between two versions of the page.
— |
koda:en:documentation:appendice_koda_form_format [2014/07/10 10:47] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Format of Form Files ====== | ||
+ | |||
+ | The format of Koda's form (.kxf) files has been designed to be as simple as the powerful features of Koda will allow. It conforms to XML rules, so importing forms from, and exporting forms to, other applications is possible. Indeed, a code generator has been written to generate Corel PerfectScript dialogs from Koda form files. | ||
+ | |||
+ | This page describes the .kxf file format. A general understanding of XML is assumed. | ||
+ | |||
+ | **Note that:** | ||
+ | * All tags and attribute names are case-sensitive | ||
+ | * All property and component nodes must be present in every object, even if they are empty. | ||
+ | |||
+ | # | ||
+ | |||
+ | <code xml> | ||
+ | <?xml version=" | ||
+ | <object type=" | ||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <color blue>. . .</ | ||
+ | |||
+ | # | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | |type|classname of object, e.g. TALabel| | ||
+ | |name|unique name of object.| | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | <color blue> | ||
+ | |||
+ | |name|name of the object property, e.g. Caption| | ||
+ | |vt |variant type, i.e. type of value| | ||
+ | |||
+ | <color red> | ||
+ | |||
+ | | |Binary|binary data (see below)| | ||
+ | | |Collection|collection (see below)| | ||
+ | | |Extended|floating point number (double precision)| | ||
+ | | |False|boolean| | ||
+ | | |Ident|object identifier| | ||
+ | | |Int8|short 8-bit integer;| | ||
+ | | |Int16|short 16-bit integer;| | ||
+ | | |Int32|long 32-bit integer;| | ||
+ | | |List|list of strings (see below)| | ||
+ | | |Set|set of identifiers| | ||
+ | | |Single|floating point number| | ||
+ | | |String|ANSI string| | ||
+ | | |True|boolean| | ||
+ | | |UTF8String, | ||
+ | \\ | ||
+ | # | ||
+ | \\ | ||
+ | **List of strings** | ||
+ | |||
+ | __Example__: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **Collection** | ||
+ | |||
+ | __Example__: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **Binary** | ||
+ | |||
+ | __Example__: | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Binary data is split into 32-byte pieces and converted to hexadecimal, | ||
+ | |||