2020

Table Of Contents
USING QUARKXPRESS SERVER
Creating boxes
To create a new box, use the following parameters in the Modifier schema:
BOX
ID
TEXT
PICTURE
GEOMETRY
CONTENT
SHADOW
FRAME
BORDER
The following XML shows how some of these parameters work.
<PROJECT>
<LAYOUT>
<ID UID="layout 1"/>
<SPREAD>
<ID UID="1"/>
<ID/>
<BOX OPERATION="CREATE" BOXTYPE="CT_PICT">
<ID NAME="PRODUCTS"/>
<GEOMETRY PAGE="2" SHAPE="SH_RECT">
<POSITION>
Geometry(); geo.moveUp = this.moveup.Text; geo.color = this.color.Text;
geo.growDown = this.growdown.Text; geo.shrinkAcross =
this.shrinkacross.Text; Box box = new Box(); box.UID = this.Boxid.Text;
box.geometry = geo; Layout layout1 = new Layout(); layout1.name =
this.layout.Text; layout1.boxes = new Box[]{box};
if(this.runaround.Checked == true) { Runaround runaround = new
Runaround(); runaround.type = this.runaroundtype.Text; runaround.top
= this.top.Text; runaround.left = this.left.Text; runaround.right =
this.right.Text; geo.runaround = runaround; } contents.layouts = new
Layout[]{layout1}; request.project = contents; rc.request = request;
//Create the service and call it with QRequestContext object
RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
Example 2, object
model
To edit the geometrical properties of an existing box in a QuarkXPress
project, use the following object hierarchy:ModifierRequest < Project <
Layout < Spread < Box < Geometry The Geometry object has the following
properties:allowBoxOffPage allowBoxOnToPasteBoard angle growAcross
growDown layer linestyle (of type ‘Linestyle’) moveDown moveLeft
moveRight moveUp page position (of type ‘Position’) runaround (of type
‘Runaround’) shape shrinkAcross shrinkDown stackingOrder
suppressOutput The Runaround object has the following
properties:bottom edited invert left noise outset outsideOnly pathName
restrictToBox right smoothness threshold top type
A GUIDE TO QUARKXPRESS SERVER 2020 | 105