Common Properties
The properties that follow capture generic aspects of layout may occur in any component or complex property.
Custom properties are described instead along with the corresponding components.
Note that:
when unspecified, property names coincide with types.
when unspecifed, default are missing.
unless otherwise specifed, property values are optional.
complex properties ma_y give names and _may override defaults of the properties they aggregate.
Text
An arbitrary string used to carry free-form text, often content in the questionnaire's language.
type:
textvalue: an arbitrary string of UTF-8 characters.
note: text properties that are used for content are generated from content properties (cf. below) based on the questionnaire's language.
Number
A whole number, typically a measure.
type:
numbervalue: an arbitrary integer.
default:
false.
Bool
A truth value, typically a flag.
type:
boolvalue:
true|false.default:
false.
Content
Free-form content in one ore more of FAO languages.
type:
contentvalue: A set of pairs (lang,text) where _lang is one
en|fr|es|zh|ru|arand text is an arbitrary string ofUTF-8charaters.
A content property exists only in layout specification. At generation time, it is replaced by a text property which contains only text in the questionnaire's language.
Color
An hexadecimal number in the range (#0,#FFFFFF).
type:
colorvalue:
#0, ... ,#FFFFFF.
H-Alignment
An enumerated value for the horizontal alignment of layout elements.
type:
h-alignmentvalue:
left,center,right,justified.default:
left.
V-Alignment
An enumerated value for the horizontal alignment of layout elements.
type:
v-alignmentvalue:
top,center,right,justified.default:
center.
Standard Size
A enumerated value for the sizing of layout components.
type:
standard-sizevalue:
xsmall,small,number,large,xlarge.default:
normal.
Size
A complex property that aggregates two properties for the sizing of layout elements, a standard-size property and a number property for custom values. Rendering process will give priority to non-0 custom sizes.
type:
sizeproperty:
name:
standardtype:
standard-size
property:
name:
customtype:
numberdefault:
0
Border
A complex property for the visibility and color of borders on layout elements.
type:
borderproperty:
name:
showtype:
bool
property:
name:
toptype:
booldefault:
true
property:
name:
lefttype:
booldefault:
true
property:
name:
righttype:
booldefault:
true
property:
name:
bottomtype:
booldefault:
true
The properties top,left,right, and bottom are consulted only if show is true.
Font
A complex property that aggregate a standard set of style properties to describe the typography of some text.
type:
fontproperty:
name:
familytype:
text
property:
type:
size
property:
type:
color
Style
A complex property that aggregates a standard set of style properties for layout elements.
type:
styleproperty:
type:
size
property:
type:
h-alignment
property:
type:
border
property:
type:
color
property:
type:
font
property:
type:
editabledefault:
truemandatory:
true
Generic
A complex property with arbitrary child properties. Used as a technical convenience to avoid the proliferation of custom complex properties where no specific processing is needed.
type:
genericproperty: < vary >.
Last updated