home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
f
/
feb93.zip
/
TIP840.LSP
< prev
next >
Wrap
Text File
|
1993-01-14
|
1KB
|
45 lines
;TIP840: CHTXJUST.LSP (C)1993, WILLIAM JONES
(DEFUN C:CHTXJUST (); CHANGE TEXT JUSTIFICATION
(SETVAR "CMDECHO" 0)
(SETQ AB (GETVAR "ANGBASE")
AD (GETVAR "ANGDIR")
AUN (GETVAR "AUNITS")
AUP (GETVAR "AUPREC"))
(SETVAR "ANGBASE" 0)
(SETVAR "ANGDIR" 0)
(SETVAR "AUNITS" 3)
(SETVAR "AUPREC" 8)
(SETQ INDEX 0 OL (GETVAR "CLAYER"))
(PROMPT "\nSELECT TEXT TO CHANGE JUSTIFICATION")
(SETQ G1 (SSGET)
SG1 (SSLENGTH G1))
(INITGET "L C R BL BC BR ML MC MR TL TC TR")
(SETQ TXJ (GETKWORD "SELECT JUSTIFICATION - [L C R BL BC BR ML MC MR TL TC TR]: "))
(REPEAT SG1
(SETQ E (SSNAME G1 INDEX)
ED (ENTGET E)
ET (CDR (ASSOC 0 ED)))
(IF (= ET "TEXT")
(PROGN
(SETQ EL (CDR (ASSOC 8 ED))
EI (CDR (ASSOC 10 ED))
EH (CDR (ASSOC 40 ED))
EA (CDR (ASSOC 50 ED))
TS (CDR (ASSOC 1 ED)))
(COMMAND "ERASE" E "")
(COMMAND "LAYER" "S" EL "")
(IF (= TXJ "L")
(COMMAND "TEXT" EI EH EA TS)
(PROGN
(COMMAND "TEXT" "J" TXJ EI EH EA TS)
(COMMAND "MOVE" (ENTLAST) "" (CDR (ASSOC 10 (ENTGET (ENTLAST)))) EI )))))
(SETQ INDEX (+ INDEX 1)))
(COMMAND "LAYER" "S" OL "")
(SETVAR "CMDECHO" 1)
(SETVAR "ANGBASE" AB)
(SETVAR "ANGDIR" AD)
(SETVAR "AUNITS" AUN)
(SETVAR "AUPREC" AUP)
(PRINC))