home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d09xx
/
d0925.lha
/
DonsGenies
/
FrenchGenies.lha
/
Rexx
/
PageLandscape.pprx
< prev
next >
Wrap
Text File
|
1993-08-03
|
2KB
|
69 lines
/*
@BPageLandscape @P @I Ecrit et ⌐ par Don Cox en juillet 1992
@IN'est pas du Domaine Publique. Tous Droits RΘservΘs.
Traduit par Fabien Larini le 30/07/93.
Ce GΘnie transforme la page courante du format portrait au format
landscape (α l'italienne) et vice versa. Il rΦgle les spΘcifications
PostScript en consΘquence.
*/
/*LandscapePage*/
/* This Genie changes a portrait format page to landscape, and vice versa. It sets up the Postscript output specs correctly.
Written by Don Cox July '92 Not Public Domain. All rights reserved. */
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
cpage = ppm_CurrentPage()
psize = ppm_GetPageSize(cpage)
Xsize = word(psize,1)
Ysize = word(psize,2)
if Xsize = Ysize then exit_msg("La Page est CarrΘe")
if Xsize<Ysize then
do
shape = "Portrait"
newshape = "Landscape"
neworient = 2
end
else do
shape = "Landscape"
newshape = "Portrait"
neworient = 1
end
choiceint = ppm_Inform(2,"La Page est "shape". Convertit en "newshape"?","Oui","Non")
if choiceint ~=0 then exit_msg("Pas de Changement")
call ppm_SetPageSize(cpage,Ysize,Xsize)
orient = ppm_GetPSOutputOrient(cpage)
call ppm_SetPSOutputOrient(cpage,neworient)
call exit_msg()
end
error:
syntax:
do
exit_msg("ArrΩt du GΘnie d√ α l'erreur: "errortext(rc))
end
exit_msg:
do
parse arg message
if message ~= "" then
call ppm_Inform(1,message,)
call ppm_ClearStatus()
call ppm_AutoUpdate(1)
exit
end