home *** CD-ROM | disk | FTP | other *** search
- /* EnlargeObjects 1.0 (30.04.94) by NDY's */
- OPTIONS RESULTS
- GetDocItemPrefs "DECIMAL"
- deci=RESULT
- DocItemPrefs "DECIMAL PERIOD"
- GetPageSetup "WIDTH"
- pw=RESULT
- GetSectionSetup "INSIDE OUTSIDE"
- PARSE VAR RESULT x1 x2
- pw=pw-x1-x2
- FirstObject "SELECTED"
- o=RESULT
- IF o~=0 THEN
- DO
- cnt=0
- DO UNTIL o=0
- obj.cnt=o
- NextObject o "SELECTED"
- o=RESULT
- cnt=cnt+1
- END
- DO i=0 TO cnt-1
- GetObjectType obj.i
- type=RESULT
- GetObjectCoords obj.i
- PARSE VAR RESULT p l t w h
- IF type=2 | type=3 THEN
- DO
- h2=(h-t)*pw/(w-l)
- t=t+(h-t-h2)/2
- SetObjectCoords obj.i p x1 t x1+pw t+h2
- END
- ELSE
- DO
- GetObjectRotation obj.i
- rot=RESULT
- IF rot~=0 THEN
- SetObjectRotation obj.i 0
- h2=h*pw/w
- SetObjectCoords obj.i p x1 t+(h-h2)/2 pw h2
- IF rot~=0 THEN
- SetObjectRotation obj.i rot
- END
- END
- END
- IF deci~="" THEN DocItemPrefs "DECIMAL" deci
- EXIT
-