home *** CD-ROM | disk | FTP | other *** search
- /*
- * DupObjects.fw
- *
- * USAGE: DupObjects.fw
- *
- * DupObjects.fw let the Final Writer user to multiply one or more
- * objects.
- *
- * HISTORY:
- * v1.01 increments are converted in MICROPOINTS
- *
- * v1.02 aligned with the new server design v1.10
- *
- * $(C): (1994, Rocco Coluccelli, Bologna)
- * $VER: DupObjects.fw 1.02 (30.Nov.1994)
- */
-
- OPTIONS RESULTS
-
- PARSE ARG oleclip
- PARSE VALUE GETCLIP(oleclip) WITH jobID modID . . . . . oleport . . userport olepipe .
-
- /*
- * olepipe = num.rows inc.rows num.cols inc.cols
- */
- PARSE VALUE GETCLIP(olepipe) WITH num.rows inc.rows num.cols inc.cols .
-
-
- ADDRESS VALUE userport
-
- SetMeasure "MICROPOINTS"
- View 50
-
- obj. = 0
-
-
- /*
- * convert increments into MICROPOINTS
- */
- ms.METRIC = 283.465; ms.INCHES = 720; ms.PICA = 120
-
- GetDisplayPrefs 'measure'
- PARSE UPPER VAR result ms .
-
- inc.rows = (inc.rows * ms.ms) % 1
- inc.cols = (inc.cols * ms.ms) % 1
-
-
- Group
- CurrentObject
- obj.0 = result
-
- GetObjectCoords obj.0
- PARSE VAR result page base_x base_y base_w base_h .
- Cut
-
- DO col = 0 TO num.cols
-
- x = base_x + col * inc.cols
- DO row = 0 TO num.rows
-
- Paste
- CurrentObject
- obj.row.col = result
-
- y = base_y + row * inc.rows
- SetObjectCoords obj.row.col page x y base_w base_h
- END
- END
-
- DO col = 0 TO num.cols
- DO row = 0 TO num.rows
- SelectObject obj.row.col 'MULTIPLE'
- END
- END
- Ungroup
-
-
- Redraw
-
- ADDRESS VALUE oleport
- SETJOB jobID 'end'
-
- EXIT 0
-