2017

Table Of Contents
USING QUARKXPRESS SERVER
130 | A Guide to QuarkXPress Server 2017
<BOTTOM>190</BOTTOM>
<RIGHT>195</RIGHT>
</POSITION>
<
/GEOMETRY>
</BOX>
Working with boxes
To add text and pictures to a project, you must add text boxes and picture boxes to
the project’s <SPREAD> element. Both are represented by <BOX> elements, but text
boxes have a
BOXTYPE attribute of CT_TEXT, and picture boxes have a BOXTYPE
attribute of CT_PICT. You can read about how <BOX> elements are put together in
the Modifier DTD, but for purposes of illustration, the sample XML below describes
a spread that contains a text box and a picture box.
<
SPREAD>
<ID UID=”1” />
<!— TEXT BOX —>
<BOX BOXTYPE=”CT_TEXT” COLOR=”White”>
<ID NAME=”Headline Box” />
<GEOMETRY LAYER=”Default” PAGE=”1” SHAPE=”SH_RECT”>
<POSITION>
<TOP>200</TOP>
<LEFT>80</LEFT>
<BOTTOM>450</BOTTOM>
<RIGHT>475</RIGHT>
</POSITION>
</GEOMETRY>
<TEXT>
<STORY>
<PARAGRAPH PARASTYLE=”Normal”>
<RICHTEXT>This is text in a box.</RICHTEXT>
</PARAGRAPH>
</STORY>
</TEXT>
</BOX>
<!— PICTURE BOX —>
<BOX BOXTYPE=”CT_PICT”>
<ID NAME=”Main Story Photo” />
<GEOMETRY LAYER=”Default” PAGE=”1” SHAPE=”SH_RECT”>
<POSITION>
<TOP>90</TOP>
<LEFT>95</LEFT>
<BOTTOM>190</BOTTOM>
<RIGHT>195</RIGHT>
</POSITION>
</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.j pg</CONTEN T>
</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