Category : Word Processors
Archive   : HP22D2.ZIP
Filename : SPRINT.PAD
Begin
help;
End;
Ò5 7 X
ï:* H F N X | F1=Help on 1 G G p ÿ 3g;handler printScripts(padName);
begin
put the visible of msg into savedMsg;
show msg;
set the lockMessages to true;
set the printer to on;
_printScripts(padName);
set the printer to off;
set the visible of msg to savedMsg;
end;
handler printMany;
begin
put the markedLines of page field "List" into lineNums;
put page field "List" into pList;
put the number of items of lineNums into n;
answer "Ok to print scripts from" && n && "pads?";
if it is not "Ok" then exit to hyperPAD;
set the printer to on;
set the lockMessages to true;
for i = 1 to n do
_printScripts line (item i of lineNums) of pList;
set the printer to off;
exit to HyperPAD;
end;
handler _printScripts(padName);
begin
global outbuffer,lastline;
put 1 into lastline;
put the check of pg button "backgrounds" into backScript;
put the check of pg button "pages" into pageScript;
put the check of pg button "pad" into padScript;
put the check of pg button "background buttons" into bbuttonScript;
put the check of pg button "background fields" into bfieldScript;
put the check of pg button "page buttons" into pbuttonScript;
put the check of pg button "page fields" into pfieldScript;
go to pad padName;
put the userlevel into savedUserLevel;
set the userlevel to 5;
push this page;
go to page 1;
if padScript then
flushScript "Script of Pad" && the longname of pad,the script of pad;
if backScript then
begin
put the number of backgrounds into total;
for i = 1 to total do
begin
go to background i;
flushScript "Script of" && (the longname of background i),the script of this background;
if bbuttonScript then
begin
put the number of background buttons into n;
for j = 1 to n do
flushScript "Script of" && the longname of bg btn j,the script of bg btn j;
end;
if bfieldScript then
begin
put the number of background fields into n;
for j = 1 to n do
flushScript "Script of" && the longname of field j,the script of bg fld j;
end;
end;
end;
if pageScript then
begin
put the number of pages into total;
for i = 1 to total do
begin
go to page i;
flushScript "Script of" && the longname of this page,the script of this page;
if pbuttonScript then
begin
put the number of page buttons into n;
for j = 1 to n do
flushScript "Script of" && the longname of page button j,the script of pg button j;
end;
if pfieldScript then
begin
put the number of page fields into n;
for j = 1 to n do
flushScript "Script of" && the longname of page field j,the script of pg field j;
end;
end;
end;
set the userLevel to savedUserLevel;
pop page;
go to pad "sprint";
end;
handler flushScript(title,scriptText);
begin
put title;
if scriptText is empty then exit;
get repeatChar(65,"-");
flush it & return & title & return & it & return & scriptText & return;
end;
handler flush(b);
begin
global lastline;
put the number of lines of b into numLines;
for j = 1 to numLines do
begin
print line j of b & return;
add 1 to lastLine;
if lastline >= 60 then
begin
print formfeed;
put 1 into lastline;
end;
end;
end;
handler help;
begin
go to pg id 14 of pad "Sprint.hlp";
end;
handler cancel;
begin
go to pad "pad";
end;
g ä é
E ¾ï \ t$ printscripts 8 7
*c
XXX
*R
PX
Ý
PX
Ñà
PX
_printscripts ;:X
Ñß
P
*
P* $ printmany 7 XList %
ác
XXXXList %##
XXX
@
XXXpads?
Ok to print scripts from --XXUOk X. 0*X
Ñà
PX
Ý
P1
XXX
6A
X
X
_printscripts ;:1
XXX$³ÿX
Ñß
P0** $ _printscripts 8 7
1 lastline XXXXbackgrounds L
Åc
XXXXpages L
Åc
XXXXpad L
Åc
XXXXbackground buttons L
Åc
XXXXbackground fields L
Åc
XXXXpage buttons L
Åc
XXXXpage fields L
Åc
XXXXX
%c
XXXX
%5
P`]1
3
ÈcScript of Pad -
Zc
flushscript ;:
jG
XXX1
XXX
6G
ÈcScript of -t
Zc
flushscript ;:
s XF
XXX1
XXX
6O X
M
ÈcScript of -X
M
Zc
flushscript ;:1
XXX$¥ÿ
s XE
XXX1
XXX
6O X
&
ÈcScript of -X
&
Zc
flushscript ;:1
XXX$¥ÿ1
XXX$þ
bB
XXX1
XXX
6?
`
ÈcScript of -`
Zc
flushscript ;:
s XD
XXX1
XXX
6O X
L
ÈcScript of -X
L
Zc
flushscript ;:1
XXX$¥ÿ
s XC
XXX1
XXX
6O X
%
ÈcScript of -X
%
Zc
flushscript ;:1
XXX$¥ÿ1
XXX$µþX
%
P^sprint * $
flushscript 8 7 X)X
X
+ *65 -
Z:
XXX
X
,,,,,,,
flush ;:* $ flush 8 7 XA
XXX1
XXX
6g XX
,} 1 lastline XXXV60 lastline 4 } 1 lastline XXX1
XXX$ÿ* 7 Sprint.hlp 14 * 7 pad * _ $ HyperPAD 2.2¨ Brightbil-Roberts & Co. ± Print Scripts ¿±ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ¾ Ðp0ÿÿÿÿÿÿÿÿÿÿÿÿÿÿý @
À H ¿ handler select;
begin
get line (the currentline of me) of page field "list";
put page field "Files in" into ddir;
if the last char of ddir is not "\" then put "\" after ddir;
put ddir & it into page field "Pad Name";
send "select" to page button "Print";
end;
Ò 7 Xlist %##Xfg
ÚcXXXXXFiles in %##
XXX\
Xl >. \
XX
X
,XPad Name %X
Xselect XPrint L
* P A List 0 0P0r0o0g0r0a0m0 0±±±±±¡ p ´ §ÿÿp ÿ H P @ K Files in r0o0g0r0a0m0 0±±±±±4 p 0 ÿÿ ÿ B ¯% 5 - Handler Select;
Begin
cancel;
End; Ò65 7 X
:* H C G À ¼ ¼ cel cel 0o0g0r0a0m0 0±±±±±1 G G p ÿC.O H À´Ä¼handler select;
begin
get line (the currentline of me) of page field "dirs";
if char 1 of it = "[" then
begin
put page field "Files in" into ddir;
if the last char of ddir is not "\" then put "\" after ddir;
delete char 1 of it;
delete the last char of it;
get trim(it);
get fullname(ddir & it);
end
else
get the directory of it;
put it into page field "Files in";
reread;
end; ÒÄ7 Xdirs %##Xfg
ÚcXXXX[ XX1 + XFiles in %##
XXX\
Xl >. \
XX
XX1
WXXl >
WX
6:XXXXX
,
a:XXXX$ X
#:XXXXXXFiles in %X
XX
reread ;:* P
- Ì ` Dirs 0 0P0r0o0g0r0a0m0 0±±±±±¡ p Ä ÿÿp ÿ " H
C:\CONFIG.SYS P H H Work File Name ! * - p ÿÿp ÿ H P K Pad name ÍÍÍÍÍÍÍÍÍÍÍÍt p 4 [ ÿ à $4,handler select;
begin
if the markedLines of page field "List" is not empty then printMany;
put page field "pad name" into padName;
if padName is empty then exit;
answer "Ok to print scripts from ^"" & trim(padName) & "^"?";
if it is not "Ok" then exit;
printscripts padName;
end; Ò47 XList %
ác. X
printmany ;:Xpad name %##
XXX
+ *"?
6:Ok to print scripts from " ,,XXUOk X. *
printscripts ;:* H C J 8 xR# Print Scripts tions 0 0 0 0 0 0 01 0G G p 0IO H 1
H
Backgrounds cripts ÍÍÍÍÍÍÍ´ C C p ÿ H 1 H Pages pts s ripts ÍÍÍÍÍÍÍ´ C C p ÿ H 1 H Pad Scr pts Scripts ÍÍÍÍÍÍÍ´ C C p ÿ H 1 H Background buttons s ipts ÍÍÍÍ´ C C p ÿ H 1 H Background fields s ipts ÍÍÍÍ´ C C p ÿ H 1 H Page buttons cripts ÍÍÍÍÍÍÍ´ C C p ÿ H 1 H Page fields cripts ÍÍÍÍÍÍÍ´ C C p ÿ Ç×Ïhandler select;
begin
put the currentdirectory into page field "Files In";
reread;
set the check of page button id 19 to false;
set the check of page button id 18 to true;
set the check of page button id 17 to false;
set the check of page button id 22 to true;
set the check of page button id 23 to true;
set the check of page button id 20 to false;
set the check of page button id 21 to false;
end;
Ò×7 X
âcXFiles In %X
XX
reread ;:X19 N
Å
PX18 N
Å
PX17 N
Å
PX22 N
Å
PX23 N
Å
PX20 N
Å
PX21 N
Å
P* H 3 A ' Set Default s tions 0 0 0 0 0 0 01 00 0 p ÿ0IO <