Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!Text-DTP/!Text-DTP

!AWJan95/Goodies/Event/Examples/!Text-DTP/!Text-DTP

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95
Filename: !AWJan95/Goodies/Event/Examples/!Text-DTP/!Text-DTP
Read OK:
File size: 12BB bytes
Load address: 0000
Exec address: 0000
File contents
    1REM > <Text-DTP$Dir>.!Text-DTP
    2:
    3ON ERROR PROCshell_Error 
    4:
    5LIBRARY "<EvntShell$Path>ShellLibRT"
    6:
    7SYS "Hourglass_On"
    8:
    9SYS "Wimp_SlotSize",-1,-1 TO progsize%
   10pagesize%=1<<10
   11freespace%=&8000+progsize%
   12END=freespace%+pagesize%
   13HIMEM=freespace%
   14:
   15PROCshell_HeapManagerInit("<EvntShell$Path>",freespace%)
   16PROCshell_Init
   17task%=FNshell_WimpInit_I(200,"Event Shell Program")
   18PROCshell_TraceInit("")
   19REM PROCshell_TraceOn
   20PROCshell_ResourcesInit
   21PROCapp_init
   22:
   23REM -------------------- Initialise Variables ----------------------------
   24:
   25_closedown%     =FALSE :REM Set this to TRUE when you want the program to
   26                       :REM end
   27changed%        =FALSE :REM Used to keep track of whether the data has
   28                       :REM been changed. Call PROCfile_changed() when it
   29                       :REM has. But if the program does not use data
   30                       :REM files just ignore this variable but do not
   31                       :REM delete it as the program checks it before
   32                       :REM exiting!
   33:
   34REM -------------------- Miscelleanous Initialisation --------------------
   35:
   36SYS "Hourglass_Off"
   37ON ERROR OFF
   38ON ERROR PROCshell_Error
   39REPEAT
   40  PROCshell_Action(FNshell_Poll_I(0,task%))
   41UNTIL _closedown%
   42:
   43IF FNshell_FileExists("<Wimp$ScrapDir>.Text-DTP") THEN
   44  OSCLI("Wipe <Wimp$ScrapDir>.Text-DTP ~CFR~V")
   45ENDIF
   46PROCshell_Exit:END
   47:
   48REM ======================================================================
   49:
   50DEF PROCapp_init
   51PROCSetUp_Windows
   52PROCSetUp_Menus
   53PROCSetUp_IconBar
   54PROCshell_InitHelpSystem(FNshell_GetAppDir+".Text-DTP",TRUE)
   55REM PROCshell_AttachPreQuitHandler("_PreQuit_Handler")
   56IF FNshell_FileExists("<Wimp$ScrapDir>.Text-DTP") THEN
   57  OSCLI("Wipe <Wimp$ScrapDir>.Text-DTP ~CFR~V")
   58ENDIF
   59OSCLI("CDir <Wimp$ScrapDir>.Text-DTP")
   60ENDPROC
   61:
   62DEF PROCSetUp_IconBar
   63sicon=FNshell_Iconbar(-1,"!"+FNshell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0)
   64PROCshell_AttachHelpTag(-1,sicon,"iconbar")
   65PROCshell_AttachDataLoad(-1,sicon,&FFF,"_dataload_FFF",-1)
   66ENDPROC
   67:
   68DEF PROCSetUp_Windows
   69PROCshell_CreateWindowStatic("mainw",mainw%)
   70PROCshell_AttachDataSave(mainw%,2,100,&FFF,1,"_datasave_FFF")
   71PROCshell_AttachClickSelect(mainw%,3,"_ClickSelect_Can_ManiW")
   72PROCshell_AttachHelpTag(mainw%,-1,"mainw")
   73ENDPROC
   74:
   75DEF PROCSetUp_Menus
   76LOCAL void%
   77
   78MenuHandle_IconBar%=FNshell_MenuNew(FNshell_MessageNoArgs("Text-DTP"))
   79MenuItem_Info%     =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Info"),"")
   80MenuItem_Help%     =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Help"),"_MenuSelect_Help")
   81void%              =FNshell_MenuAdd(0,FNshell_MessageNoArgs("Quit"),"_MenuSelect_Quit")
   82PROCshell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
   83
   84ENDPROC
   85:
   86
   87REM ===== Click_Select routines ====================================
   88
   89DEF FN_ClickSelect_Can_ManiW(wh%,ih%)
   90PROCshell_CloseWindow(mainw%)
   91=0
   92:
   93
   94REM ===== Dialog_PreOpen routines ==================================
   95
   96DEF FN_PreOpenInfo(h%)
   97PROCshell_IconPutData(h%,0,FNshell_MessageNoArgs("progInfo0"),0)
   98PROCshell_IconPutData(h%,1,FNshell_MessageNoArgs("progInfo1"),0)
   99PROCshell_IconPutData(h%,2,FNshell_MessageNoArgs("progInfo2"),0)
  100PROCshell_IconPutData(h%,3,FNshell_MessageNoArgs("progInfo3"),0)
  101=0
  102:
  103
  104REM ===== Data_Load routines =======================================
  105
  106DEF FN_dataload_FFF(loc%,filetype%,file$,file_size%)
  107SYS "Hourglass_On"
  108PROCconvert_file(file$,"<Wimp$ScrapDir>.Text-DTP.Output")
  109PROCshell_WindowMoveToIcon(mainw%,-1,sicon,-50,30)
  110PROCshell_IconPutData(mainw%,1,"TextFile",0)
  111SYS "Wimp_SetCaretPosition",mainw%,1,-1,-1,-1,LEN(FNshell_IconGetData(mainw%,1))
  112PROCshell_OpenWindowStatic(mainw%)
  113SYS "Hourglass_Off"
  114=0
  115:
  116
  117REM ===== Data_Save routines =======================================
  118
  119DEF FN_datasave_FFF(f_name$)
  120OSCLI("Copy <Wimp$ScrapDir>.Text-DTP.Output "+f_name$+" ~A~C~DF~L~N~P~Q~R~S~T~V")
  121PROCshell_CloseWindow(mainw%)
  122=0
  123:
  124
  125REM ===== Menu_Select routines =====================================
  126
  127DEF FN_MenuSelect_Help(blk%)
  128IF FNshell_StrongHlpIsAvailable THEN
  129  PROCshell_HelpWord(FNshell_GetAppName+".$")
  130ELSE
  131  PROCshell_MessageSendDataLoad(&FFF,"<Text-DTP$Dir>.!Help")
  132ENDIF
  133=0
  134:
  135DEF FN_MenuSelect_Quit(blk%)
  136_closedown%=TRUE
  137
  138=0
  139:
  140
  141REM ===== Misc_Event routines ======================================
  142
  143DEF FN_PreQuit_Handler
  144REM return TRUE if we are quitting..
  145=(FNshell_MessageWindow("Really quit?",TRUE,"Text-DTP","")=1)
  146:
  147DEF FN_Shutdown_Handler
  148LOCAL x%
  149x%=OPENOUT("<Text-DTP$Dir>.Shutdown")
  150CLOSE# x%
  151=0
  152:
  153
  154REM ===== Application routines =====================================
  155
  156DEFPROCconvert_file(s$,d$)
  157SYS "Wimp_StartTask","<Text-DTP$Dir>.FilterLF "+s$+" > "+d$
  158ENDPROC
  159:
  160REM ================= End Of User Application ============================
  161:
 � > <Text-DTP$Dir>.!Text-DTP
:
� � �shell_Error 
:
#ț "<EvntShell$Path>ShellLibRT"
:
ș "Hourglass_On"
:
	(ș "Wimp_SlotSize",-1,-1 � progsize%

pagesize%=1<<10
freespace%=&8000+progsize%
�=freespace%+pagesize%

�=freespace%
:
9�shell_HeapManagerInit("<EvntShell$Path>",freespace%)
�shell_Init
6task%=�shell_WimpInit_I(200,"Event Shell Program")
�shell_TraceInit("")
� PROCshell_TraceOn
�shell_ResourcesInit

�app_init
:
L� -------------------- Initialise Variables ----------------------------
:
G_closedown%     =� :� Set this to TRUE when you want the program to
!                       :� end
Dchanged%        =� :� Used to keep track of whether the data has
K                       :� been changed. Call PROCfile_changed() when it
G                       :� has. But if the program does not use data
H                       :� files just ignore this variable but do not
G                       :� delete it as the program checks it before
 &                       :� exiting!
!:
"L� -------------------- Miscelleanous Initialisation --------------------
#:
$ș "Hourglass_Off"
%	� � �
&� � �shell_Error
'�
(+  �shell_Action(�shell_Poll_I(0,task%))
)� _closedown%
*:
+5� �shell_FileExists("<Wimp$ScrapDir>.Text-DTP") �
,/  �("Wipe <Wimp$ScrapDir>.Text-DTP ~CFR~V")
-�
.�shell_Exit:�
/:
0L� ======================================================================
1:
2� �app_init
3�SetUp_Windows
4�SetUp_Menus
5�SetUp_IconBar
69�shell_InitHelpSystem(�shell_GetAppDir+".Text-DTP",�)
78� PROCshell_AttachPreQuitHandler("_PreQuit_Handler")
85� �shell_FileExists("<Wimp$ScrapDir>.Text-DTP") �
9/  �("Wipe <Wimp$ScrapDir>.Text-DTP ~CFR~V")
:�
;&�("CDir <Wimp$ScrapDir>.Text-DTP")
<�
=:
>� �SetUp_IconBar
?Ssicon=�shell_Iconbar(-1,"!"+�shell_GetAppName,"",120,MenuHandle_IconBar%,0,0,0)
@,�shell_AttachHelpTag(-1,sicon,"iconbar")
A;�shell_AttachDataLoad(-1,sicon,&FFF,"_dataload_FFF",-1)
B�
C:
D� �SetUp_Windows
E-�shell_CreateWindowStatic("mainw",mainw%)
F>�shell_AttachDataSave(mainw%,2,100,&FFF,1,"_datasave_FFF")
G?�shell_AttachClickSelect(mainw%,3,"_ClickSelect_Can_ManiW")
H+�shell_AttachHelpTag(mainw%,-1,"mainw")
I�
J:
K� �SetUp_Menus
L� void%
M
NHMenuHandle_IconBar%=�shell_MenuNew(�shell_MessageNoArgs("Text-DTP"))
OIMenuItem_Info%     =�shell_MenuAdd(0,�shell_MessageNoArgs("Info"),"")
PYMenuItem_Help%     =�shell_MenuAdd(0,�shell_MessageNoArgs("Help"),"_MenuSelect_Help")
QYvoid%              =�shell_MenuAdd(0,�shell_MessageNoArgs("Quit"),"_MenuSelect_Quit")
RF�shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
S
T�
U:
V
WF� ===== Click_Select routines ====================================
X
Y&� �_ClickSelect_Can_ManiW(wh%,ih%)
Z�shell_CloseWindow(mainw%)
[=0
\:
]
^F� ===== Dialog_PreOpen routines ==================================
_
`� �_PreOpenInfo(h%)
a@�shell_IconPutData(h%,0,�shell_MessageNoArgs("progInfo0"),0)
b@�shell_IconPutData(h%,1,�shell_MessageNoArgs("progInfo1"),0)
c@�shell_IconPutData(h%,2,�shell_MessageNoArgs("progInfo2"),0)
d@�shell_IconPutData(h%,3,�shell_MessageNoArgs("progInfo3"),0)
e=0
f:
g
hF� ===== Data_Load routines =======================================
i
j5� �_dataload_FFF(loc%,filetype%,file$,file_size%)
kș "Hourglass_On"
l:�convert_file(file$,"<Wimp$ScrapDir>.Text-DTP.Output")
m3�shell_WindowMoveToIcon(mainw%,-1,sicon,-50,30)
n-�shell_IconPutData(mainw%,1,"TextFile",0)
oPș "Wimp_SetCaretPosition",mainw%,1,-1,-1,-1,�(�shell_IconGetData(mainw%,1))
p#�shell_OpenWindowStatic(mainw%)
qș "Hourglass_Off"
r=0
s:
t
uF� ===== Data_Save routines =======================================
v
w� �_datasave_FFF(f_name$)
xQ�("Copy <Wimp$ScrapDir>.Text-DTP.Output "+f_name$+" ~A~C~DF~L~N~P~Q~R~S~T~V")
y�shell_CloseWindow(mainw%)
z=0
{:
|
}F� ===== Menu_Select routines =====================================
~
� �_MenuSelect_Help(blk%)
�#� �shell_StrongHlpIsAvailable �
�-  �shell_HelpWord(�shell_GetAppName+".$")
��
�=  �shell_MessageSendDataLoad(&FFF,"<Text-DTP$Dir>.!Help")
��
�=0
�:
�� �_MenuSelect_Quit(blk%)
�_closedown%=�
�
�=0
�:
�
�F� ===== Misc_Event routines ======================================
�
�� �_PreQuit_Handler
�&� return TRUE if we are quitting..
�==(�shell_MessageWindow("Really quit?",�,"Text-DTP","")=1)
�:
�� �_Shutdown_Handler
�� x%
�#x%=�("<Text-DTP$Dir>.Shutdown")
�	�# x%
�=0
�:
�
�F� ===== Application routines =====================================
�
���convert_file(s$,d$)
�>ș "Wimp_StartTask","<Text-DTP$Dir>.FilterLF "+s$+" > "+d$
��
�:
�L� ================= End Of User Application ============================
�:
�
00000000  0d 00 01 20 f4 20 3e 20  3c 54 65 78 74 2d 44 54  |... . > <Text-DT|
00000010  50 24 44 69 72 3e 2e 21  54 65 78 74 2d 44 54 50  |P$Dir>.!Text-DTP|
00000020  0d 00 02 05 3a 0d 00 03  15 ee 20 85 20 f2 73 68  |....:..... . .sh|
00000030  65 6c 6c 5f 45 72 72 6f  72 20 0d 00 04 05 3a 0d  |ell_Error ....:.|
00000040  00 05 23 c8 9b 20 22 3c  45 76 6e 74 53 68 65 6c  |..#.. "<EvntShel|
00000050  6c 24 50 61 74 68 3e 53  68 65 6c 6c 4c 69 62 52  |l$Path>ShellLibR|
00000060  54 22 0d 00 06 05 3a 0d  00 07 15 c8 99 20 22 48  |T"....:...... "H|
00000070  6f 75 72 67 6c 61 73 73  5f 4f 6e 22 0d 00 08 05  |ourglass_On"....|
00000080  3a 0d 00 09 28 c8 99 20  22 57 69 6d 70 5f 53 6c  |:...(.. "Wimp_Sl|
00000090  6f 74 53 69 7a 65 22 2c  2d 31 2c 2d 31 20 b8 20  |otSize",-1,-1 . |
000000a0  70 72 6f 67 73 69 7a 65  25 0d 00 0a 13 70 61 67  |progsize%....pag|
000000b0  65 73 69 7a 65 25 3d 31  3c 3c 31 30 0d 00 0b 1e  |esize%=1<<10....|
000000c0  66 72 65 65 73 70 61 63  65 25 3d 26 38 30 30 30  |freespace%=&8000|
000000d0  2b 70 72 6f 67 73 69 7a  65 25 0d 00 0c 1a e0 3d  |+progsize%.....=|
000000e0  66 72 65 65 73 70 61 63  65 25 2b 70 61 67 65 73  |freespace%+pages|
000000f0  69 7a 65 25 0d 00 0d 10  d3 3d 66 72 65 65 73 70  |ize%.....=freesp|
00000100  61 63 65 25 0d 00 0e 05  3a 0d 00 0f 39 f2 73 68  |ace%....:...9.sh|
00000110  65 6c 6c 5f 48 65 61 70  4d 61 6e 61 67 65 72 49  |ell_HeapManagerI|
00000120  6e 69 74 28 22 3c 45 76  6e 74 53 68 65 6c 6c 24  |nit("<EvntShell$|
00000130  50 61 74 68 3e 22 2c 66  72 65 65 73 70 61 63 65  |Path>",freespace|
00000140  25 29 0d 00 10 0f f2 73  68 65 6c 6c 5f 49 6e 69  |%).....shell_Ini|
00000150  74 0d 00 11 36 74 61 73  6b 25 3d a4 73 68 65 6c  |t...6task%=.shel|
00000160  6c 5f 57 69 6d 70 49 6e  69 74 5f 49 28 32 30 30  |l_WimpInit_I(200|
00000170  2c 22 45 76 65 6e 74 20  53 68 65 6c 6c 20 50 72  |,"Event Shell Pr|
00000180  6f 67 72 61 6d 22 29 0d  00 12 18 f2 73 68 65 6c  |ogram").....shel|
00000190  6c 5f 54 72 61 63 65 49  6e 69 74 28 22 22 29 0d  |l_TraceInit("").|
000001a0  00 13 17 f4 20 50 52 4f  43 73 68 65 6c 6c 5f 54  |.... PROCshell_T|
000001b0  72 61 63 65 4f 6e 0d 00  14 18 f2 73 68 65 6c 6c  |raceOn.....shell|
000001c0  5f 52 65 73 6f 75 72 63  65 73 49 6e 69 74 0d 00  |_ResourcesInit..|
000001d0  15 0d f2 61 70 70 5f 69  6e 69 74 0d 00 16 05 3a  |...app_init....:|
000001e0  0d 00 17 4c f4 20 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |...L. ----------|
000001f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 20 49 6e 69 74 69  |---------- Initi|
00000200  61 6c 69 73 65 20 56 61  72 69 61 62 6c 65 73 20  |alise Variables |
00000210  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000220  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 0d 00 18 05  |------------....|
00000230  3a 0d 00 19 47 5f 63 6c  6f 73 65 64 6f 77 6e 25  |:...G_closedown%|
00000240  20 20 20 20 20 3d a3 20  3a f4 20 53 65 74 20 74  |     =. :. Set t|
00000250  68 69 73 20 74 6f 20 54  52 55 45 20 77 68 65 6e  |his to TRUE when|
00000260  20 79 6f 75 20 77 61 6e  74 20 74 68 65 20 70 72  | you want the pr|
00000270  6f 67 72 61 6d 20 74 6f  0d 00 1a 21 20 20 20 20  |ogram to...!    |
00000280  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000290  20 20 20 3a f4 20 65 6e  64 0d 00 1b 44 63 68 61  |   :. end...Dcha|
000002a0  6e 67 65 64 25 20 20 20  20 20 20 20 20 3d a3 20  |nged%        =. |
000002b0  3a f4 20 55 73 65 64 20  74 6f 20 6b 65 65 70 20  |:. Used to keep |
000002c0  74 72 61 63 6b 20 6f 66  20 77 68 65 74 68 65 72  |track of whether|
000002d0  20 74 68 65 20 64 61 74  61 20 68 61 73 0d 00 1c  | the data has...|
000002e0  4b 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |K               |
000002f0  20 20 20 20 20 20 20 20  3a f4 20 62 65 65 6e 20  |        :. been |
00000300  63 68 61 6e 67 65 64 2e  20 43 61 6c 6c 20 50 52  |changed. Call PR|
00000310  4f 43 66 69 6c 65 5f 63  68 61 6e 67 65 64 28 29  |OCfile_changed()|
00000320  20 77 68 65 6e 20 69 74  0d 00 1d 47 20 20 20 20  | when it...G    |
00000330  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000340  20 20 20 3a f4 20 68 61  73 2e 20 42 75 74 20 69  |   :. has. But i|
00000350  66 20 74 68 65 20 70 72  6f 67 72 61 6d 20 64 6f  |f the program do|
00000360  65 73 20 6e 6f 74 20 75  73 65 20 64 61 74 61 0d  |es not use data.|
00000370  00 1e 48 20 20 20 20 20  20 20 20 20 20 20 20 20  |..H             |
00000380  20 20 20 20 20 20 20 20  20 20 3a f4 20 66 69 6c  |          :. fil|
00000390  65 73 20 6a 75 73 74 20  69 67 6e 6f 72 65 20 74  |es just ignore t|
000003a0  68 69 73 20 76 61 72 69  61 62 6c 65 20 62 75 74  |his variable but|
000003b0  20 64 6f 20 6e 6f 74 0d  00 1f 47 20 20 20 20 20  | do not...G     |
000003c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000003d0  20 20 3a f4 20 64 65 6c  65 74 65 20 69 74 20 61  |  :. delete it a|
000003e0  73 20 74 68 65 20 70 72  6f 67 72 61 6d 20 63 68  |s the program ch|
000003f0  65 63 6b 73 20 69 74 20  62 65 66 6f 72 65 0d 00  |ecks it before..|
00000400  20 26 20 20 20 20 20 20  20 20 20 20 20 20 20 20  | &              |
00000410  20 20 20 20 20 20 20 20  20 3a f4 20 65 78 69 74  |         :. exit|
00000420  69 6e 67 21 0d 00 21 05  3a 0d 00 22 4c f4 20 2d  |ing!..!.:.."L. -|
00000430  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000440  2d 2d 2d 20 4d 69 73 63  65 6c 6c 65 61 6e 6f 75  |--- Miscelleanou|
00000450  73 20 49 6e 69 74 69 61  6c 69 73 61 74 69 6f 6e  |s Initialisation|
00000460  20 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  | ---------------|
00000470  2d 2d 2d 2d 2d 0d 00 23  05 3a 0d 00 24 16 c8 99  |-----..#.:..$...|
00000480  20 22 48 6f 75 72 67 6c  61 73 73 5f 4f 66 66 22  | "Hourglass_Off"|
00000490  0d 00 25 09 ee 20 85 20  87 0d 00 26 14 ee 20 85  |..%.. . ...&.. .|
000004a0  20 f2 73 68 65 6c 6c 5f  45 72 72 6f 72 0d 00 27  | .shell_Error..'|
000004b0  05 f5 0d 00 28 2b 20 20  f2 73 68 65 6c 6c 5f 41  |....(+  .shell_A|
000004c0  63 74 69 6f 6e 28 a4 73  68 65 6c 6c 5f 50 6f 6c  |ction(.shell_Pol|
000004d0  6c 5f 49 28 30 2c 74 61  73 6b 25 29 29 0d 00 29  |l_I(0,task%))..)|
000004e0  11 fd 20 5f 63 6c 6f 73  65 64 6f 77 6e 25 0d 00  |.. _closedown%..|
000004f0  2a 05 3a 0d 00 2b 35 e7  20 a4 73 68 65 6c 6c 5f  |*.:..+5. .shell_|
00000500  46 69 6c 65 45 78 69 73  74 73 28 22 3c 57 69 6d  |FileExists("<Wim|
00000510  70 24 53 63 72 61 70 44  69 72 3e 2e 54 65 78 74  |p$ScrapDir>.Text|
00000520  2d 44 54 50 22 29 20 8c  0d 00 2c 2f 20 20 ff 28  |-DTP") ...,/  .(|
00000530  22 57 69 70 65 20 3c 57  69 6d 70 24 53 63 72 61  |"Wipe <Wimp$Scra|
00000540  70 44 69 72 3e 2e 54 65  78 74 2d 44 54 50 20 7e  |pDir>.Text-DTP ~|
00000550  43 46 52 7e 56 22 29 0d  00 2d 05 cd 0d 00 2e 11  |CFR~V")..-......|
00000560  f2 73 68 65 6c 6c 5f 45  78 69 74 3a e0 0d 00 2f  |.shell_Exit:.../|
00000570  05 3a 0d 00 30 4c f4 20  3d 3d 3d 3d 3d 3d 3d 3d  |.:..0L. ========|
00000580  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000005b0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 0d 00  |==============..|
000005c0  31 05 3a 0d 00 32 0f dd  20 f2 61 70 70 5f 69 6e  |1.:..2.. .app_in|
000005d0  69 74 0d 00 33 12 f2 53  65 74 55 70 5f 57 69 6e  |it..3..SetUp_Win|
000005e0  64 6f 77 73 0d 00 34 10  f2 53 65 74 55 70 5f 4d  |dows..4..SetUp_M|
000005f0  65 6e 75 73 0d 00 35 12  f2 53 65 74 55 70 5f 49  |enus..5..SetUp_I|
00000600  63 6f 6e 42 61 72 0d 00  36 39 f2 73 68 65 6c 6c  |conBar..69.shell|
00000610  5f 49 6e 69 74 48 65 6c  70 53 79 73 74 65 6d 28  |_InitHelpSystem(|
00000620  a4 73 68 65 6c 6c 5f 47  65 74 41 70 70 44 69 72  |.shell_GetAppDir|
00000630  2b 22 2e 54 65 78 74 2d  44 54 50 22 2c b9 29 0d  |+".Text-DTP",.).|
00000640  00 37 38 f4 20 50 52 4f  43 73 68 65 6c 6c 5f 41  |.78. PROCshell_A|
00000650  74 74 61 63 68 50 72 65  51 75 69 74 48 61 6e 64  |ttachPreQuitHand|
00000660  6c 65 72 28 22 5f 50 72  65 51 75 69 74 5f 48 61  |ler("_PreQuit_Ha|
00000670  6e 64 6c 65 72 22 29 0d  00 38 35 e7 20 a4 73 68  |ndler")..85. .sh|
00000680  65 6c 6c 5f 46 69 6c 65  45 78 69 73 74 73 28 22  |ell_FileExists("|
00000690  3c 57 69 6d 70 24 53 63  72 61 70 44 69 72 3e 2e  |<Wimp$ScrapDir>.|
000006a0  54 65 78 74 2d 44 54 50  22 29 20 8c 0d 00 39 2f  |Text-DTP") ...9/|
000006b0  20 20 ff 28 22 57 69 70  65 20 3c 57 69 6d 70 24  |  .("Wipe <Wimp$|
000006c0  53 63 72 61 70 44 69 72  3e 2e 54 65 78 74 2d 44  |ScrapDir>.Text-D|
000006d0  54 50 20 7e 43 46 52 7e  56 22 29 0d 00 3a 05 cd  |TP ~CFR~V")..:..|
000006e0  0d 00 3b 26 ff 28 22 43  44 69 72 20 3c 57 69 6d  |..;&.("CDir <Wim|
000006f0  70 24 53 63 72 61 70 44  69 72 3e 2e 54 65 78 74  |p$ScrapDir>.Text|
00000700  2d 44 54 50 22 29 0d 00  3c 05 e1 0d 00 3d 05 3a  |-DTP")..<....=.:|
00000710  0d 00 3e 14 dd 20 f2 53  65 74 55 70 5f 49 63 6f  |..>.. .SetUp_Ico|
00000720  6e 42 61 72 0d 00 3f 53  73 69 63 6f 6e 3d a4 73  |nBar..?Ssicon=.s|
00000730  68 65 6c 6c 5f 49 63 6f  6e 62 61 72 28 2d 31 2c  |hell_Iconbar(-1,|
00000740  22 21 22 2b a4 73 68 65  6c 6c 5f 47 65 74 41 70  |"!"+.shell_GetAp|
00000750  70 4e 61 6d 65 2c 22 22  2c 31 32 30 2c 4d 65 6e  |pName,"",120,Men|
00000760  75 48 61 6e 64 6c 65 5f  49 63 6f 6e 42 61 72 25  |uHandle_IconBar%|
00000770  2c 30 2c 30 2c 30 29 0d  00 40 2c f2 73 68 65 6c  |,0,0,0)..@,.shel|
00000780  6c 5f 41 74 74 61 63 68  48 65 6c 70 54 61 67 28  |l_AttachHelpTag(|
00000790  2d 31 2c 73 69 63 6f 6e  2c 22 69 63 6f 6e 62 61  |-1,sicon,"iconba|
000007a0  72 22 29 0d 00 41 3b f2  73 68 65 6c 6c 5f 41 74  |r")..A;.shell_At|
000007b0  74 61 63 68 44 61 74 61  4c 6f 61 64 28 2d 31 2c  |tachDataLoad(-1,|
000007c0  73 69 63 6f 6e 2c 26 46  46 46 2c 22 5f 64 61 74  |sicon,&FFF,"_dat|
000007d0  61 6c 6f 61 64 5f 46 46  46 22 2c 2d 31 29 0d 00  |aload_FFF",-1)..|
000007e0  42 05 e1 0d 00 43 05 3a  0d 00 44 14 dd 20 f2 53  |B....C.:..D.. .S|
000007f0  65 74 55 70 5f 57 69 6e  64 6f 77 73 0d 00 45 2d  |etUp_Windows..E-|
00000800  f2 73 68 65 6c 6c 5f 43  72 65 61 74 65 57 69 6e  |.shell_CreateWin|
00000810  64 6f 77 53 74 61 74 69  63 28 22 6d 61 69 6e 77  |dowStatic("mainw|
00000820  22 2c 6d 61 69 6e 77 25  29 0d 00 46 3e f2 73 68  |",mainw%)..F>.sh|
00000830  65 6c 6c 5f 41 74 74 61  63 68 44 61 74 61 53 61  |ell_AttachDataSa|
00000840  76 65 28 6d 61 69 6e 77  25 2c 32 2c 31 30 30 2c  |ve(mainw%,2,100,|
00000850  26 46 46 46 2c 31 2c 22  5f 64 61 74 61 73 61 76  |&FFF,1,"_datasav|
00000860  65 5f 46 46 46 22 29 0d  00 47 3f f2 73 68 65 6c  |e_FFF")..G?.shel|
00000870  6c 5f 41 74 74 61 63 68  43 6c 69 63 6b 53 65 6c  |l_AttachClickSel|
00000880  65 63 74 28 6d 61 69 6e  77 25 2c 33 2c 22 5f 43  |ect(mainw%,3,"_C|
00000890  6c 69 63 6b 53 65 6c 65  63 74 5f 43 61 6e 5f 4d  |lickSelect_Can_M|
000008a0  61 6e 69 57 22 29 0d 00  48 2b f2 73 68 65 6c 6c  |aniW")..H+.shell|
000008b0  5f 41 74 74 61 63 68 48  65 6c 70 54 61 67 28 6d  |_AttachHelpTag(m|
000008c0  61 69 6e 77 25 2c 2d 31  2c 22 6d 61 69 6e 77 22  |ainw%,-1,"mainw"|
000008d0  29 0d 00 49 05 e1 0d 00  4a 05 3a 0d 00 4b 12 dd  |)..I....J.:..K..|
000008e0  20 f2 53 65 74 55 70 5f  4d 65 6e 75 73 0d 00 4c  | .SetUp_Menus..L|
000008f0  0b ea 20 76 6f 69 64 25  0d 00 4d 04 0d 00 4e 48  |.. void%..M...NH|
00000900  4d 65 6e 75 48 61 6e 64  6c 65 5f 49 63 6f 6e 42  |MenuHandle_IconB|
00000910  61 72 25 3d a4 73 68 65  6c 6c 5f 4d 65 6e 75 4e  |ar%=.shell_MenuN|
00000920  65 77 28 a4 73 68 65 6c  6c 5f 4d 65 73 73 61 67  |ew(.shell_Messag|
00000930  65 4e 6f 41 72 67 73 28  22 54 65 78 74 2d 44 54  |eNoArgs("Text-DT|
00000940  50 22 29 29 0d 00 4f 49  4d 65 6e 75 49 74 65 6d  |P"))..OIMenuItem|
00000950  5f 49 6e 66 6f 25 20 20  20 20 20 3d a4 73 68 65  |_Info%     =.she|
00000960  6c 6c 5f 4d 65 6e 75 41  64 64 28 30 2c a4 73 68  |ll_MenuAdd(0,.sh|
00000970  65 6c 6c 5f 4d 65 73 73  61 67 65 4e 6f 41 72 67  |ell_MessageNoArg|
00000980  73 28 22 49 6e 66 6f 22  29 2c 22 22 29 0d 00 50  |s("Info"),"")..P|
00000990  59 4d 65 6e 75 49 74 65  6d 5f 48 65 6c 70 25 20  |YMenuItem_Help% |
000009a0  20 20 20 20 3d a4 73 68  65 6c 6c 5f 4d 65 6e 75  |    =.shell_Menu|
000009b0  41 64 64 28 30 2c a4 73  68 65 6c 6c 5f 4d 65 73  |Add(0,.shell_Mes|
000009c0  73 61 67 65 4e 6f 41 72  67 73 28 22 48 65 6c 70  |sageNoArgs("Help|
000009d0  22 29 2c 22 5f 4d 65 6e  75 53 65 6c 65 63 74 5f  |"),"_MenuSelect_|
000009e0  48 65 6c 70 22 29 0d 00  51 59 76 6f 69 64 25 20  |Help")..QYvoid% |
000009f0  20 20 20 20 20 20 20 20  20 20 20 20 20 3d a4 73  |             =.s|
00000a00  68 65 6c 6c 5f 4d 65 6e  75 41 64 64 28 30 2c a4  |hell_MenuAdd(0,.|
00000a10  73 68 65 6c 6c 5f 4d 65  73 73 61 67 65 4e 6f 41  |shell_MessageNoA|
00000a20  72 67 73 28 22 51 75 69  74 22 29 2c 22 5f 4d 65  |rgs("Quit"),"_Me|
00000a30  6e 75 53 65 6c 65 63 74  5f 51 75 69 74 22 29 0d  |nuSelect_Quit").|
00000a40  00 52 46 f2 73 68 65 6c  6c 5f 41 74 74 61 63 68  |.RF.shell_Attach|
00000a50  4d 65 6e 75 44 42 6f 78  28 4d 65 6e 75 49 74 65  |MenuDBox(MenuIte|
00000a60  6d 5f 49 6e 66 6f 25 2c  22 70 72 6f 67 49 6e 66  |m_Info%,"progInf|
00000a70  6f 22 2c 22 5f 50 72 65  4f 70 65 6e 49 6e 66 6f  |o","_PreOpenInfo|
00000a80  22 2c 22 22 29 0d 00 53  04 0d 00 54 05 e1 0d 00  |","")..S...T....|
00000a90  55 05 3a 0d 00 56 04 0d  00 57 46 f4 20 3d 3d 3d  |U.:..V...WF. ===|
00000aa0  3d 3d 20 43 6c 69 63 6b  5f 53 65 6c 65 63 74 20  |== Click_Select |
00000ab0  72 6f 75 74 69 6e 65 73  20 3d 3d 3d 3d 3d 3d 3d  |routines =======|
00000ac0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000ad0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 0d 00 58  |=============..X|
00000ae0  04 0d 00 59 26 dd 20 a4  5f 43 6c 69 63 6b 53 65  |...Y&. ._ClickSe|
00000af0  6c 65 63 74 5f 43 61 6e  5f 4d 61 6e 69 57 28 77  |lect_Can_ManiW(w|
00000b00  68 25 2c 69 68 25 29 0d  00 5a 1e f2 73 68 65 6c  |h%,ih%)..Z..shel|
00000b10  6c 5f 43 6c 6f 73 65 57  69 6e 64 6f 77 28 6d 61  |l_CloseWindow(ma|
00000b20  69 6e 77 25 29 0d 00 5b  06 3d 30 0d 00 5c 05 3a  |inw%)..[.=0..\.:|
00000b30  0d 00 5d 04 0d 00 5e 46  f4 20 3d 3d 3d 3d 3d 20  |..]...^F. ===== |
00000b40  44 69 61 6c 6f 67 5f 50  72 65 4f 70 65 6e 20 72  |Dialog_PreOpen r|
00000b50  6f 75 74 69 6e 65 73 20  3d 3d 3d 3d 3d 3d 3d 3d  |outines ========|
00000b60  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000b70  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0d 00 5f 04 0d 00  |==========.._...|
00000b80  60 17 dd 20 a4 5f 50 72  65 4f 70 65 6e 49 6e 66  |`.. ._PreOpenInf|
00000b90  6f 28 68 25 29 0d 00 61  40 f2 73 68 65 6c 6c 5f  |o(h%)..a@.shell_|
00000ba0  49 63 6f 6e 50 75 74 44  61 74 61 28 68 25 2c 30  |IconPutData(h%,0|
00000bb0  2c a4 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 4e  |,.shell_MessageN|
00000bc0  6f 41 72 67 73 28 22 70  72 6f 67 49 6e 66 6f 30  |oArgs("progInfo0|
00000bd0  22 29 2c 30 29 0d 00 62  40 f2 73 68 65 6c 6c 5f  |"),0)..b@.shell_|
00000be0  49 63 6f 6e 50 75 74 44  61 74 61 28 68 25 2c 31  |IconPutData(h%,1|
00000bf0  2c a4 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 4e  |,.shell_MessageN|
00000c00  6f 41 72 67 73 28 22 70  72 6f 67 49 6e 66 6f 31  |oArgs("progInfo1|
00000c10  22 29 2c 30 29 0d 00 63  40 f2 73 68 65 6c 6c 5f  |"),0)..c@.shell_|
00000c20  49 63 6f 6e 50 75 74 44  61 74 61 28 68 25 2c 32  |IconPutData(h%,2|
00000c30  2c a4 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 4e  |,.shell_MessageN|
00000c40  6f 41 72 67 73 28 22 70  72 6f 67 49 6e 66 6f 32  |oArgs("progInfo2|
00000c50  22 29 2c 30 29 0d 00 64  40 f2 73 68 65 6c 6c 5f  |"),0)..d@.shell_|
00000c60  49 63 6f 6e 50 75 74 44  61 74 61 28 68 25 2c 33  |IconPutData(h%,3|
00000c70  2c a4 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 4e  |,.shell_MessageN|
00000c80  6f 41 72 67 73 28 22 70  72 6f 67 49 6e 66 6f 33  |oArgs("progInfo3|
00000c90  22 29 2c 30 29 0d 00 65  06 3d 30 0d 00 66 05 3a  |"),0)..e.=0..f.:|
00000ca0  0d 00 67 04 0d 00 68 46  f4 20 3d 3d 3d 3d 3d 20  |..g...hF. ===== |
00000cb0  44 61 74 61 5f 4c 6f 61  64 20 72 6f 75 74 69 6e  |Data_Load routin|
00000cc0  65 73 20 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |es =============|
00000cd0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000ce0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0d 00 69 04 0d 00  |==========..i...|
00000cf0  6a 35 dd 20 a4 5f 64 61  74 61 6c 6f 61 64 5f 46  |j5. ._dataload_F|
00000d00  46 46 28 6c 6f 63 25 2c  66 69 6c 65 74 79 70 65  |FF(loc%,filetype|
00000d10  25 2c 66 69 6c 65 24 2c  66 69 6c 65 5f 73 69 7a  |%,file$,file_siz|
00000d20  65 25 29 0d 00 6b 15 c8  99 20 22 48 6f 75 72 67  |e%)..k... "Hourg|
00000d30  6c 61 73 73 5f 4f 6e 22  0d 00 6c 3a f2 63 6f 6e  |lass_On"..l:.con|
00000d40  76 65 72 74 5f 66 69 6c  65 28 66 69 6c 65 24 2c  |vert_file(file$,|
00000d50  22 3c 57 69 6d 70 24 53  63 72 61 70 44 69 72 3e  |"<Wimp$ScrapDir>|
00000d60  2e 54 65 78 74 2d 44 54  50 2e 4f 75 74 70 75 74  |.Text-DTP.Output|
00000d70  22 29 0d 00 6d 33 f2 73  68 65 6c 6c 5f 57 69 6e  |")..m3.shell_Win|
00000d80  64 6f 77 4d 6f 76 65 54  6f 49 63 6f 6e 28 6d 61  |dowMoveToIcon(ma|
00000d90  69 6e 77 25 2c 2d 31 2c  73 69 63 6f 6e 2c 2d 35  |inw%,-1,sicon,-5|
00000da0  30 2c 33 30 29 0d 00 6e  2d f2 73 68 65 6c 6c 5f  |0,30)..n-.shell_|
00000db0  49 63 6f 6e 50 75 74 44  61 74 61 28 6d 61 69 6e  |IconPutData(main|
00000dc0  77 25 2c 31 2c 22 54 65  78 74 46 69 6c 65 22 2c  |w%,1,"TextFile",|
00000dd0  30 29 0d 00 6f 50 c8 99  20 22 57 69 6d 70 5f 53  |0)..oP.. "Wimp_S|
00000de0  65 74 43 61 72 65 74 50  6f 73 69 74 69 6f 6e 22  |etCaretPosition"|
00000df0  2c 6d 61 69 6e 77 25 2c  31 2c 2d 31 2c 2d 31 2c  |,mainw%,1,-1,-1,|
00000e00  2d 31 2c a9 28 a4 73 68  65 6c 6c 5f 49 63 6f 6e  |-1,.(.shell_Icon|
00000e10  47 65 74 44 61 74 61 28  6d 61 69 6e 77 25 2c 31  |GetData(mainw%,1|
00000e20  29 29 0d 00 70 23 f2 73  68 65 6c 6c 5f 4f 70 65  |))..p#.shell_Ope|
00000e30  6e 57 69 6e 64 6f 77 53  74 61 74 69 63 28 6d 61  |nWindowStatic(ma|
00000e40  69 6e 77 25 29 0d 00 71  16 c8 99 20 22 48 6f 75  |inw%)..q... "Hou|
00000e50  72 67 6c 61 73 73 5f 4f  66 66 22 0d 00 72 06 3d  |rglass_Off"..r.=|
00000e60  30 0d 00 73 05 3a 0d 00  74 04 0d 00 75 46 f4 20  |0..s.:..t...uF. |
00000e70  3d 3d 3d 3d 3d 20 44 61  74 61 5f 53 61 76 65 20  |===== Data_Save |
00000e80  72 6f 75 74 69 6e 65 73  20 3d 3d 3d 3d 3d 3d 3d  |routines =======|
00000e90  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000eb0  0d 00 76 04 0d 00 77 1d  dd 20 a4 5f 64 61 74 61  |..v...w.. ._data|
00000ec0  73 61 76 65 5f 46 46 46  28 66 5f 6e 61 6d 65 24  |save_FFF(f_name$|
00000ed0  29 0d 00 78 51 ff 28 22  43 6f 70 79 20 3c 57 69  |)..xQ.("Copy <Wi|
00000ee0  6d 70 24 53 63 72 61 70  44 69 72 3e 2e 54 65 78  |mp$ScrapDir>.Tex|
00000ef0  74 2d 44 54 50 2e 4f 75  74 70 75 74 20 22 2b 66  |t-DTP.Output "+f|
00000f00  5f 6e 61 6d 65 24 2b 22  20 7e 41 7e 43 7e 44 46  |_name$+" ~A~C~DF|
00000f10  7e 4c 7e 4e 7e 50 7e 51  7e 52 7e 53 7e 54 7e 56  |~L~N~P~Q~R~S~T~V|
00000f20  22 29 0d 00 79 1e f2 73  68 65 6c 6c 5f 43 6c 6f  |")..y..shell_Clo|
00000f30  73 65 57 69 6e 64 6f 77  28 6d 61 69 6e 77 25 29  |seWindow(mainw%)|
00000f40  0d 00 7a 06 3d 30 0d 00  7b 05 3a 0d 00 7c 04 0d  |..z.=0..{.:..|..|
00000f50  00 7d 46 f4 20 3d 3d 3d  3d 3d 20 4d 65 6e 75 5f  |.}F. ===== Menu_|
00000f60  53 65 6c 65 63 74 20 72  6f 75 74 69 6e 65 73 20  |Select routines |
00000f70  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000f90  3d 3d 3d 3d 3d 0d 00 7e  04 0d 00 7f 1d dd 20 a4  |=====..~...... .|
00000fa0  5f 4d 65 6e 75 53 65 6c  65 63 74 5f 48 65 6c 70  |_MenuSelect_Help|
00000fb0  28 62 6c 6b 25 29 0d 00  80 23 e7 20 a4 73 68 65  |(blk%)...#. .she|
00000fc0  6c 6c 5f 53 74 72 6f 6e  67 48 6c 70 49 73 41 76  |ll_StrongHlpIsAv|
00000fd0  61 69 6c 61 62 6c 65 20  8c 0d 00 81 2d 20 20 f2  |ailable ....-  .|
00000fe0  73 68 65 6c 6c 5f 48 65  6c 70 57 6f 72 64 28 a4  |shell_HelpWord(.|
00000ff0  73 68 65 6c 6c 5f 47 65  74 41 70 70 4e 61 6d 65  |shell_GetAppName|
00001000  2b 22 2e 24 22 29 0d 00  82 05 cc 0d 00 83 3d 20  |+".$")........= |
00001010  20 f2 73 68 65 6c 6c 5f  4d 65 73 73 61 67 65 53  | .shell_MessageS|
00001020  65 6e 64 44 61 74 61 4c  6f 61 64 28 26 46 46 46  |endDataLoad(&FFF|
00001030  2c 22 3c 54 65 78 74 2d  44 54 50 24 44 69 72 3e  |,"<Text-DTP$Dir>|
00001040  2e 21 48 65 6c 70 22 29  0d 00 84 05 cd 0d 00 85  |.!Help")........|
00001050  06 3d 30 0d 00 86 05 3a  0d 00 87 1d dd 20 a4 5f  |.=0....:..... ._|
00001060  4d 65 6e 75 53 65 6c 65  63 74 5f 51 75 69 74 28  |MenuSelect_Quit(|
00001070  62 6c 6b 25 29 0d 00 88  11 5f 63 6c 6f 73 65 64  |blk%)...._closed|
00001080  6f 77 6e 25 3d b9 0d 00  89 04 0d 00 8a 06 3d 30  |own%=.........=0|
00001090  0d 00 8b 05 3a 0d 00 8c  04 0d 00 8d 46 f4 20 3d  |....:.......F. =|
000010a0  3d 3d 3d 3d 20 4d 69 73  63 5f 45 76 65 6e 74 20  |==== Misc_Event |
000010b0  72 6f 75 74 69 6e 65 73  20 3d 3d 3d 3d 3d 3d 3d  |routines =======|
000010c0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
000010d0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
000010e0  00 8e 04 0d 00 8f 17 dd  20 a4 5f 50 72 65 51 75  |........ ._PreQu|
000010f0  69 74 5f 48 61 6e 64 6c  65 72 0d 00 90 26 f4 20  |it_Handler...&. |
00001100  72 65 74 75 72 6e 20 54  52 55 45 20 69 66 20 77  |return TRUE if w|
00001110  65 20 61 72 65 20 71 75  69 74 74 69 6e 67 2e 2e  |e are quitting..|
00001120  0d 00 91 3d 3d 28 a4 73  68 65 6c 6c 5f 4d 65 73  |...==(.shell_Mes|
00001130  73 61 67 65 57 69 6e 64  6f 77 28 22 52 65 61 6c  |sageWindow("Real|
00001140  6c 79 20 71 75 69 74 3f  22 2c b9 2c 22 54 65 78  |ly quit?",.,"Tex|
00001150  74 2d 44 54 50 22 2c 22  22 29 3d 31 29 0d 00 92  |t-DTP","")=1)...|
00001160  05 3a 0d 00 93 18 dd 20  a4 5f 53 68 75 74 64 6f  |.:..... ._Shutdo|
00001170  77 6e 5f 48 61 6e 64 6c  65 72 0d 00 94 08 ea 20  |wn_Handler..... |
00001180  78 25 0d 00 95 23 78 25  3d ae 28 22 3c 54 65 78  |x%...#x%=.("<Tex|
00001190  74 2d 44 54 50 24 44 69  72 3e 2e 53 68 75 74 64  |t-DTP$Dir>.Shutd|
000011a0  6f 77 6e 22 29 0d 00 96  09 d9 23 20 78 25 0d 00  |own").....# x%..|
000011b0  97 06 3d 30 0d 00 98 05  3a 0d 00 99 04 0d 00 9a  |..=0....:.......|
000011c0  46 f4 20 3d 3d 3d 3d 3d  20 41 70 70 6c 69 63 61  |F. ===== Applica|
000011d0  74 69 6f 6e 20 72 6f 75  74 69 6e 65 73 20 3d 3d  |tion routines ==|
000011e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00001200  3d 3d 3d 0d 00 9b 04 0d  00 9c 19 dd f2 63 6f 6e  |===..........con|
00001210  76 65 72 74 5f 66 69 6c  65 28 73 24 2c 64 24 29  |vert_file(s$,d$)|
00001220  0d 00 9d 3e c8 99 20 22  57 69 6d 70 5f 53 74 61  |...>.. "Wimp_Sta|
00001230  72 74 54 61 73 6b 22 2c  22 3c 54 65 78 74 2d 44  |rtTask","<Text-D|
00001240  54 50 24 44 69 72 3e 2e  46 69 6c 74 65 72 4c 46  |TP$Dir>.FilterLF|
00001250  20 22 2b 73 24 2b 22 20  3e 20 22 2b 64 24 0d 00  | "+s$+" > "+d$..|
00001260  9e 05 e1 0d 00 9f 05 3a  0d 00 a0 4c f4 20 3d 3d  |.......:...L. ==|
00001270  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 20  |=============== |
00001280  45 6e 64 20 4f 66 20 55  73 65 72 20 41 70 70 6c  |End Of User Appl|
00001290  69 63 61 74 69 6f 6e 20  3d 3d 3d 3d 3d 3d 3d 3d  |ication ========|
000012a0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
000012b0  3d 3d 3d 3d 0d 00 a1 05  3a 0d ff                 |====....:..|
000012bb