2016

Table Of Contents
</GEOMETRY>
<PICTURE ANGLE="0°" FLIPHORIZONTAL="false"
FLIPVERTICAL="false" FULLRES="false" MASK="None"
OFFSETACROSS="0 OFFSETDOWN="0" OPACITY="100%"
SCALEACROSS="100%" SCALEDOWN="100%" SHADE="100%"
SKEW="0°" SUPRESSPICT="false"/>
<CONTENT>Macintosh HD:DocPool:flower1.jpg</CONTENT>
</BOX>
</SPREAD>
This example will work for a construct request. For a modify request, add the attribute
value OPERATION="CREATE" in the BOX element.
All BOX elements can contain a GEOMETRY element that indicates the position and size
of the box, a FRAME element that describes the box's frame (if any), and a SHADOW
element that describes the box's drop shadow. Additional BOX elements are described
in the following sections.
The z-order (stacking order) of boxes in the layout is determined by the order of the
<BOX> elements in the XML, from rearmost to frontmost.
Fitting a box to text or a picture
The <FIT> element type lets you automatically adjust the size of a box to fit the text
or picture in that box.
The default behaivior is to not fix a box to its content. To use this feature, you must
supply <MAX> and <MIN> elements. Each <MAX> or <MIN> element lets you specify a
maximum or minimum size for the box, a maximum or minimum location for the
resized box, or a maximum or minimum scale percentage for the box. Note that you
can use different types of <MAX> and <MIN> elements in a <FIT> element, but you
can use only one <MAX> element and one <MIN> element per <FIT> element.
The FIT@POINT attribute lets you indicate the direction in which the box should grow
or shrink. The available options are TOPLEFT, BOTTOMLEFT, TOPRIGHT, and
BOTTOMRIGHT.
The FIT@AVOIDBOXESBY attribute lets you specify the distance between the POINT
side or corner of a resized box and any other items around it. A box will expand only
until it is this distance from an adjacent item.
The FIT@PROPORTIONAL attribute lets you specify whether the resized box should
have the same aspect ratio as the original box.
For example:
<BOX>
<ID UID="5"/>
<GEOMETRY>
<POSITION>
<TOP>224.001</TOP>
<LEFT>110.003</LEFT>
<BOTTOM>381</BOTTOM>
<RIGHT>253.253</RIGHT>
</POSITION>
<FIT POINT="BOTTOMLEFT" PROPORTIONAL="true">
<MAX>
<LOCATION X="320" Y="560"/>
</MAX>
<MIN>
<SIZE HEIGHT="100" WIDTH="10"/>
</MIN>
</FIT>
</GEOMETRY>
<BOX/>
116 | A GUIDE TO QUARKXPRESS SERVER 2016
USING QUARKXPRESS SERVER