III. Functional objects
105
Developer handbook DATAformXTension © 1992-2004 www.gassenhuber.de
*T109 SAVE DOCUMENT =>
*T109*$¶ without path details
Saves a QuarkXPress document that already exists as a file and works the same as the Quark-
XPress menu command Save. If the document is still new or has been converted from an old
version, the save dialogue appears.
*T109*$path¶ with path details
¶*T109*$HD:my folder:my document¶
¶*T109*$C:\MyFolder\mydocument.qxd¶
Saves the document to the specified path. Files with the same name are overwritten. Corre-
sponds to the QuarkXPress command Save as..., however no dialogues appear. The docu-
ment itself cannot be overwritten. To save existing documents choose the above variant.
The path must correspond to the current operating system, the folders etc. must already exist.
Example under MacOS
¶*T108*e["NEW";841.89;595.276;55.555;56.666;57.777;58.888;1;3;9.999;0]*$¶*
T3*p1*$text box 1¶*T109*$HD:folder1:save 1.qxp¶*
T3*p2*$text box 2¶*T3*p3*$text box 3¶*T109*$¶
Example under windows
¶*T108*e["NEW";841,89;595,276;55,555;56,666;57,777;58,888;1;3;9,999;0]*$¶*
T3*p1*$text box 1¶*T109*$F:\folder1\save 1.qxp¶*
T3*p2*$text box 2¶*T3*p3*$text box 3¶*T109*$¶
Creates a new document called NEW and there on page 1 a text box;
saves the document as save 1.qxp;
creates a text box on page 2;
creates a third text box;
saves the document.
Calling in the DATAform 4d interface
DX_Write (0)
`initialisation
DX_Array{1}:="HD G3:folder1:save 1"
DX_Array{5}:="109"
`*T109 = save/save as
$0:=DX_Write (1)
`transfer object to interface
`further objects may follow here
DX_Write (2)
`end of export