XFA Specification
Chapter 7, Layout for Growable Objects
Flowing Layout for Containers
223
For example, the document at right has a single container into
which seven layout objects have been placed using left-to-right
top-to-bottom tiled layout. The layout objects were placed in
order from
B
through
H
.
The layout processor employs left-to-right top-to-bottom tiled
layout within any subform having a
layout
property with a
value of
lr-tb
. It also defaults to this layout strategy when
laying out text within a
draw
or
field
object, unless the
locale
property of the
draw
or
field
names a locale in which
text normally flows right-to-left and top-to-bottom. See
“Flowing Text Within a Container” on page 62
for more detail
about text layout.
When used for text, this type of flowing layout suffices for
languages that are written left-to-right, with successive lines
stacked top-to-bottom in the European style. It does not suffice
for languages written from right-to-left (such as Arabic), nor for
languages written top-to-bottom (such as Chinese).
Content B
Content C
Content
E
Content
D
Content F
Content H
Content G
contentArea A
Left-to-right top-to-bottom layout
Right-to-Left Top-to-Bottom Tiled Layout
Right-to-left top-to-bottom tiled layout is just like left-to-right
top-to-bottom tiled layout, above, except that objects are placed
from right to left instead of left to right. For example, the
document at right has a single container into which seven layout
objects have been placed using right-to-left top-to-bottom tiled
layout. The layout objects were placed in order from
B
through
H
.
When used for text this type of flowing layout suffices for
languages that are written right-to-left, with successive lines
stacked top-to-bottom in the style of Arabic and Hebrew.
However within such languages it is common for sections of
included text to run left to right. For example, numbers using
Western-style digits are placed left-to-right within the overall
right-to-left flow. See for more detail about text layout in
right-to-left top-to-bottom locales see
“Flowing Text Within a
Container” on page 62.
Content C
Content B
Content F
Content
E
Content
D
Content H
Content G
contentArea A
The layout processor employs right-to-left top-to-bottom tiled
layout within any subform having a
layout
property with a
Right-to-left top-to-bottom layout
value of
rl-tb
. It also defaults to this layout strategy when
laying out text within a
draw
or
field
object provided the
locale
property of the
draw
or
field
names a locale in which text normally flows right-to-left and
top-to-bottom.
Error Condition: Inappropriate Layout Strategy
If a layout container has a
layout
property with a value that is a valid keyword but is not applicable to
that container's contents, the layout processor should issue a warning and ignore the offending property.
It is likely that some of the restrictions will be relaxed in future versions of this specification. The
recommended behavior assures that the form can still be processed, although probably not with the
expected appearance. The set of inappropriate layout strategies consists of:
Home Index Bookmark Pages
Pages: Home Index All Pages