$VER: HTTXPluginCFG 3.0 (28.8.99) by Gabriele Favrin
HTTXPlugin configuration script
*/
options results
if ~Show('L', 'rexxsupport.library') then do
call addlib('rexxsupport.library', 0, -30, 0)
end
call InitPipe()
call Init()
call LoadSettings()
call ManageGUI()
exit 0
InitPipe:
if Showlist('H', 'AWNPIPE') then res=open(gui_fp, 'awnpipe:/-2010/xc', 'W')
if res ~= 1 then do
'request NOWAIT "Error" "To use this program you need AWNPipe:*N (Vers 2.10 or newer).*NInstall AWeb 3.3SE from the AWeb install script*Nor click on the CLICK ME icon in the AWeb drawer." "OK"'
if Open(save_config_fp, dest_dir||"HTTX.prefs", 'W') then do
Call WriteLN(save_config_fp, save_string)
Call Close(save_config_fp)
end
if Open(print_config_fp, dest_dir||"HTTXprt.prefs", 'W') then do
Call WriteLN(print_config_fp, print_string)
Call Close(print_config_fp)
end
if Open(plugin_config_fp, dest_dir||"HTTXPlugin.config", 'W') then do
Call WriteLN(plugin_config_fp, prefs_string)
Call Close(plugin_config_fp)
end
return
MakeGUI:
call WriteCH(gui_fp, '"HTTX prefs editor 3.0 - press <HELP> key for help" defg fh cs ps "'awebscreen'" a v q m sk bf "AWebPath:Docs/awebbg.iff"'eol'clicktab ctl "_1 File save settings|_2 Print settings|_3 AWeb Plugin settings"'eol'menu gt "Project|About|$!HTTX AWeb plugin|$!Configuration Program|Author|$!Written by Gabriele Favrin|$!using AWNPIPE: gui|!|@QQuit"'eol'menu gt "Help|HTTX Plugin documentation|HTTX documentation|$English|$Italiano"'eol)
call WriteCH(gui_fp, 'layout b 0 v so si page 1'eol'layout b 0 rj'eol'layout b 0 v so si'eol'label gt "Line _length " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 15 maxn 255 defn' save_len eol'label gt "_Indentation " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 1 maxn 255 defn' save_indent eol'le'eol'layout b 0 v so si'eol'label gt "_ANSI mode " ua'eol'chooser chl weiw 0 pu cl "Disabled|Standard|Optimized " s' save_ansimode eol'label gt "ANSI c_olor " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 0 maxn 9 defn' save_ansicol eol'le'eol'le'eol'layout b 0 rj'eol'layout b 0 v so si'eol'label gt "_HR draw mode " ua'eol'chooser chl weiw 0 pu cl "Disabled|ASCII|ANSI line " s' save_hrmode eol'le'eol)
call WriteCH(gui_fp, 'layout b 0 so si'eol'label gt "_Filenote type " ua'eol'chooser chl weiw 0 pu cl "None|Document title|Document URL " s' save_setnote eol'le'eol'le'eol)
call WriteCH(gui_fp, 'layout b 0'eol'layout v si b 0'eol'checkbox gt "Convert entities to _7bit ASCII " s' save_7bit eol'checkbox gt "I_gnore text and HR alignment" s' save_noalign eol'checkbox gt "Use _EOL as table cell separator " s' save_tdeol eol'checkbox gt "Suppress _Title/URL" s' prefs_save_noheader eol'le'eol'layout v si b 0'eol'checkbox gt "Include HTML Lin_k References" s' save_href eol'checkbox gt "Include I_mage Alternate Texts" s' save_img eol'checkbox gt "Include _JavaScript scripts" s' save_script eol'checkbox gt "Support _badly written HTML" s' save_badhtml eol'le'eol'le'eol'le'eol)
call WriteCH(gui_fp, 'layout b 0 v so si page 1'eol'layout b 0 rj'eol'layout b 0 v so si'eol'label gt "Line _length " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 15 maxn 255 defn' print_len eol'label gt "_Indentation " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 1 maxn 255 defn' print_indent eol'le'eol'layout b 0 v so si'eol'label gt "_ANSI mode " ua'eol'chooser chl weiw 0 pu cl "Disabled|Standard " s' print_ansimode eol'label gt "ANSI c_olor " ua'eol'integer chl weiw 0 arrows minc 3 maxc 3 minn 0 maxn 9 defn' print_ansicol eol'le'eol'le'eol'layout b 0 rj'eol'layout b 0 v so si'eol'label gt "_HR draw mode " ua'eol'chooser chl weiw 0 pu cl "Disabled|ASCII|ANSI line " s' print_hrmode eol'le'eol'le'eol)
call WriteCH(gui_fp, 'layout b 0'eol'layout v si b 0'eol'checkbox gt "Convert entities to _7bit ASCII " s' print_7bit eol'checkbox gt "I_gnore text and HR alignment" s' print_noalign eol'checkbox gt "Use _EOL as table cell separator " s' print_tdeol eol'checkbox gt "Suppress _Title/URL" s' prefs_print_noheader eol'le'eol'layout v si b 0'eol'checkbox gt "Include HTML Lin_k References" s' print_href eol'checkbox gt "Include I_mage Alternate Texts" s' print_img eol'checkbox gt "Include _JavaScript scripts" s' print_script eol'checkbox gt "Support _badly written HTML" s' print_badhtml eol'le'eol'le'eol'le'eol)
call WriteCH(gui_fp, 'layout sw so si v b 0 page 1'eol'layout b 0'eol'label gt "Default save _directory " ua'eol'getfile chl drawers save icons weih 0 gt "Select HTTX save directory" fn "'prefs_savedir'"'eol'le'eol'checkbox gt "Don''t as_k for save directory" s' prefs_donotaskdir eol'label gt ""'eol'checkbox gt "Include _HTTP/META header" s' prefs_info eol'label gt ""'eol'checkbox gt "Show _preview of converted document" s' prefs_preview eol'label gt ""'eol'checkbox gt "Show conversion _report" s' prefs_report eol'le'eol)
call WriteCH(gui_fp, 'space minh 0 weih 0'eol'layout so si weih 0 b 7'eol'button gt "_Save" c'eol'button gt "_Use" c'eol'button gt "_Cancel" c'eol'le'eol'open'eol)