home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / Chip_06_2000.iso / games / WheelofTime / WoTDemo.exe / System / UWindow.u / ScriptText10.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  20.5 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5b c7 02 63 6c 61 73 73 |........|[..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00000020| 41 72 65 61 20 65 78 70 | 61 6e 64 73 20 55 57 69 |Area exp|ands UWi|
|00000030| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 41 |ndowDyna|micTextA|
|00000040| 72 65 61 3b 0d 0a 0d 0a | 2f 2a 0d 0a 0d 0a 48 54 |rea;....|/*....HT|
|00000050| 4d 4c 20 43 75 72 72 65 | 6e 74 6c 79 20 53 75 70 |ML Curre|ntly Sup|
|00000060| 70 6f 72 74 65 64 0d 0a | 3d 3d 3d 3d 3d 3d 3d 3d |ported..|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 0d 0a 0d 0a 50 61 72 73 | 65 64 20 6f 6e 20 61 64 |....Pars|ed on ad|
|00000090| 64 0d 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d..-----|--------|
|000000a0| 0d 0a 3c 62 6f 64 79 20 | 62 67 63 6f 6c 6f 72 3d |..<body |bgcolor=|
|000000b0| 23 66 66 66 66 66 66 20 | 6c 69 6e 6b 3d 23 66 66 |#ffffff |link=#ff|
|000000c0| 66 66 66 66 20 61 6c 69 | 6e 6b 3d 23 66 66 66 66 |ffff ali|nk=#ffff|
|000000d0| 66 66 3e 2e 2e 2e 3c 2f | 62 6f 64 79 3e 0d 0a 3c |ff>...</|body>..<|
|000000e0| 66 6f 6e 74 20 63 6f 6c | 6f 72 3d 23 66 66 66 66 |font col|or=#ffff|
|000000f0| 66 66 20 62 67 63 6f 6c | 6f 72 3d 23 66 66 66 66 |ff bgcol|or=#ffff|
|00000100| 66 66 3e 2e 2e 2e 3c 2f | 66 6f 6e 74 3e 0d 0a 3c |ff>...</|font>..<|
|00000110| 62 72 3e 0d 0a 3c 63 65 | 6e 74 65 72 3e 2e 2e 2e |br>..<ce|nter>...|
|00000120| 2e 3c 2f 63 65 6e 74 65 | 72 3e 0d 0a 3c 70 3e 0d |.</cente|r>..<p>.|
|00000130| 0a 3c 68 31 3e 2e 2e 2e | 3c 2f 68 31 3e 0d 0a 0d |.<h1>...|</h1>...|
|00000140| 0a 50 61 72 73 65 64 20 | 6f 6e 20 61 64 64 20 61 |.Parsed |on add a|
|00000150| 6e 64 20 64 69 73 70 6c | 61 79 0d 0a 2d 2d 2d 2d |nd displ|ay..----|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000170| 2d 2d 2d 2d 2d 0d 0a 3c | 6e 6f 62 72 3e 2e 2e 2e |-----..<|nobr>...|
|00000180| 3c 2f 6e 6f 62 72 3e 0d | 0a 3c 61 20 68 72 65 66 |</nobr>.|.<a href|
|00000190| 3d 22 2e 2e 2e 22 3e 2e | 2e 2e 3c 2f 61 3e 0d 0a |="...">.|..</a>..|
|000001a0| 3c 62 3e 2e 2e 2e 3c 2f | 62 3e 0d 0a 3c 75 3e 2e |<b>...</|b>..<u>.|
|000001b0| 2e 2e 3c 2f 75 3e 0d 0a | 3c 62 6c 69 6e 6b 3e 2e |..</u>..|<blink>.|
|000001c0| 2e 2e 3c 2f 62 6c 69 6e | 6b 3e 0d 0a 0d 0a 50 61 |..</blin|k>....Pa|
|000001d0| 72 73 65 64 20 6f 6e 6c | 79 20 6f 6e 20 64 69 73 |rsed onl|y on dis|
|000001e0| 70 6c 61 79 0d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |play..--|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 26 67 |--------|----..&g|
|00000200| 74 3b 0d 0a 26 6c 74 3b | 0d 0a 26 61 6d 70 3b 0d |t;..&lt;|..&amp;.|
|00000210| 0a 26 6e 62 73 70 3b 0d | 0a 0d 0a 50 6c 61 6e 6e |.&nbsp;.|...Plann|
|00000220| 65 64 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 0d |ed impro|vements.|
|00000230| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000240| 2d 2d 2d 2d 2d 0d 0a 3c | 75 6c 3e 3c 6c 69 3e 69 |-----..<|ul><li>i|
|00000250| 74 65 6d 20 31 3c 6c 69 | 3e 69 74 65 6d 20 32 2e |tem 1<li|>item 2.|
|00000260| 2e 2e 3c 2f 75 6c 3e 0d | 0a 3c 74 61 62 6c 65 3e |..</ul>.|.<table>|
|00000270| 2e 2e 2e 3c 2f 74 61 62 | 6c 65 3e 0d 0a 0d 0a 42 |...</tab|le>....B|
|00000280| 75 67 73 0d 0a 2d 2d 2d | 2d 0d 0a 54 68 65 20 70 |ugs..---|-..The p|
|00000290| 61 72 73 69 6e 67 20 69 | 73 20 70 72 65 74 74 79 |arsing i|s pretty|
|000002a0| 20 73 6c 61 63 6b 21 0d | 0a 0d 0a 2a 2f 0d 0a 0d | slack!.|...*/...|
|000002b0| 0a 2f 2f 20 64 65 66 61 | 75 6c 74 20 73 74 79 6c |.// defa|ult styl|
|000002c0| 65 73 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 54 65 |es..var |Color Te|
|000002d0| 78 74 43 6f 6c 6f 72 3b | 0d 0a 76 61 72 20 43 6f |xtColor;|..var Co|
|000002e0| 6c 6f 72 20 42 47 43 6f | 6c 6f 72 3b 0d 0a 76 61 |lor BGCo|lor;..va|
|000002f0| 72 20 43 6f 6c 6f 72 20 | 4c 69 6e 6b 43 6f 6c 6f |r Color |LinkColo|
|00000300| 72 3b 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 41 4c |r;..var |Color AL|
|00000310| 69 6e 6b 43 6f 6c 6f 72 | 3b 0d 0a 76 61 72 20 66 |inkColor|;..var f|
|00000320| 6c 6f 61 74 20 4c 61 73 | 74 42 6c 69 6e 6b 54 69 |loat Las|tBlinkTi|
|00000330| 6d 65 3b 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 62 53 |me;..var| bool bS|
|00000340| 68 6f 77 42 6c 69 6e 6b | 3b 0d 0a 76 61 72 20 62 |howBlink|;..var b|
|00000350| 6f 6f 6c 20 62 52 65 6c | 65 61 73 65 64 3b 0d 0a |ool bRel|eased;..|
|00000360| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 65 74 48 54 |..functi|on SetHT|
|00000370| 4d 4c 28 73 74 72 69 6e | 67 20 48 54 4d 4c 29 0d |ML(strin|g HTML).|
|00000380| 0a 7b 0d 0a 09 43 6c 65 | 61 72 28 29 3b 0d 0a 09 |.{...Cle|ar();...|
|00000390| 52 65 70 6c 61 63 65 54 | 65 78 74 28 48 54 4d 4c |ReplaceT|ext(HTML|
|000003a0| 2c 20 43 68 72 28 31 33 | 29 24 43 68 72 28 31 30 |, Chr(13|)$Chr(10|
|000003b0| 29 2c 20 22 20 22 29 3b | 0d 0a 09 52 65 70 6c 61 |), " ");|...Repla|
|000003c0| 63 65 54 65 78 74 28 48 | 54 4d 4c 2c 20 43 68 72 |ceText(H|TML, Chr|
|000003d0| 28 31 33 29 2c 20 22 20 | 22 29 3b 0d 0a 09 52 65 |(13), " |");...Re|
|000003e0| 70 6c 61 63 65 54 65 78 | 74 28 48 54 4d 4c 2c 20 |placeTex|t(HTML, |
|000003f0| 43 68 72 28 31 30 29 2c | 20 22 20 22 29 3b 0d 0a |Chr(10),| " ");..|
|00000400| 09 41 64 64 54 65 78 74 | 28 48 54 4d 4c 29 3b 0d |.AddText|(HTML);.|
|00000410| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 42 |.}....fu|nction B|
|00000420| 65 66 6f 72 65 50 61 69 | 6e 74 28 43 61 6e 76 61 |eforePai|nt(Canva|
|00000430| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|00000440| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 53 75 70 65 |oat Y)..|{...Supe|
|00000450| 72 2e 42 65 66 6f 72 65 | 50 61 69 6e 74 28 43 2c |r.Before|Paint(C,|
|00000460| 20 58 2c 20 59 29 3b 0d | 0a 09 43 75 72 73 6f 72 | X, Y);.|..Cursor|
|00000470| 20 3d 20 52 6f 6f 74 2e | 4e 6f 72 6d 61 6c 43 75 | = Root.|NormalCu|
|00000480| 72 73 6f 72 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |rsor;..}|....func|
|00000490| 74 69 6f 6e 20 50 61 69 | 6e 74 28 43 61 6e 76 61 |tion Pai|nt(Canva|
|000004a0| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|000004b0| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 43 2e 44 72 |oat Y)..|{...C.Dr|
|000004c0| 61 77 43 6f 6c 6f 72 20 | 3d 20 42 47 43 6f 6c 6f |awColor |= BGColo|
|000004d0| 72 3b 0d 0a 09 44 72 61 | 77 53 74 72 65 74 63 68 |r;...Dra|wStretch|
|000004e0| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 30 2c 20 |edTextur|e(C, 0, |
|000004f0| 30 2c 20 57 69 6e 57 69 | 64 74 68 2c 20 57 69 6e |0, WinWi|dth, Win|
|00000500| 48 65 69 67 68 74 2c 20 | 54 65 78 74 75 72 65 27 |Height, |Texture'|
|00000510| 57 68 69 74 65 54 65 78 | 74 75 72 65 27 29 3b 0d |WhiteTex|ture');.|
|00000520| 0a 09 53 75 70 65 72 2e | 50 61 69 6e 74 28 43 2c |..Super.|Paint(C,|
|00000530| 20 58 2c 20 59 29 3b 0d | 0a 09 62 52 65 6c 65 61 | X, Y);.|..bRelea|
|00000540| 73 65 64 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 7d 0d |sed = Fa|lse;..}.|
|00000550| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 43 6c 69 63 |...funct|ion Clic|
|00000560| 6b 28 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |k(float |X, float|
|00000570| 20 59 29 0d 0a 7b 0d 0a | 09 53 75 70 65 72 2e 43 | Y)..{..|.Super.C|
|00000580| 6c 69 63 6b 28 58 2c 20 | 59 29 3b 0d 0a 09 62 52 |lick(X, |Y);...bR|
|00000590| 65 6c 65 61 73 65 64 20 | 3d 20 54 72 75 65 3b 0d |eleased |= True;.|
|000005a0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 50 |.}....fu|nction P|
|000005b0| 72 6f 63 65 73 73 55 52 | 4c 28 73 74 72 69 6e 67 |rocessUR|L(string|
|000005c0| 20 55 52 4c 29 0d 0a 7b | 0d 0a 09 4c 6f 67 28 22 | URL)..{|...Log("|
|000005d0| 43 6c 69 63 6b 65 64 20 | 4c 69 6e 6b 3a 20 3e 3e |Clicked |Link: >>|
|000005e0| 22 24 55 52 4c 24 22 3c | 3c 22 29 3b 0d 0a 0d 0a |"$URL$"<|<");....|
|000005f0| 09 69 66 28 20 4c 65 66 | 74 28 55 52 4c 2c 20 37 |.if( Lef|t(URL, 7|
|00000600| 29 20 7e 3d 20 22 6d 61 | 69 6c 74 6f 3a 22 20 29 |) ~= "ma|ilto:" )|
|00000610| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 4f 77 6e |....GetP|layerOwn|
|00000620| 65 72 28 29 2e 43 6f 6e | 73 6f 6c 65 43 6f 6d 6d |er().Con|soleComm|
|00000630| 61 6e 64 28 22 73 74 61 | 72 74 20 22 24 55 52 4c |and("sta|rt "$URL|
|00000640| 29 3b 0d 0a 09 69 66 28 | 20 4c 65 66 74 28 55 52 |);...if(| Left(UR|
|00000650| 4c 2c 20 37 29 20 7e 3d | 20 22 68 74 74 70 3a 2f |L, 7) ~=| "http:/|
|00000660| 2f 22 20 29 0d 0a 09 09 | 47 65 74 50 6c 61 79 65 |/" )....|GetPlaye|
|00000670| 72 4f 77 6e 65 72 28 29 | 2e 43 6f 6e 73 6f 6c 65 |rOwner()|.Console|
|00000680| 43 6f 6d 6d 61 6e 64 28 | 22 73 74 61 72 74 20 22 |Command(|"start "|
|00000690| 24 55 52 4c 29 3b 0d 0a | 09 69 66 28 20 4c 65 66 |$URL);..|.if( Lef|
|000006a0| 74 28 55 52 4c 2c 20 36 | 29 20 7e 3d 20 22 66 74 |t(URL, 6|) ~= "ft|
|000006b0| 70 3a 2f 2f 22 20 29 0d | 0a 09 09 47 65 74 50 6c |p://" ).|...GetPl|
|000006c0| 61 79 65 72 4f 77 6e 65 | 72 28 29 2e 43 6f 6e 73 |ayerOwne|r().Cons|
|000006d0| 6f 6c 65 43 6f 6d 6d 61 | 6e 64 28 22 73 74 61 72 |oleComma|nd("star|
|000006e0| 74 20 22 24 55 52 4c 29 | 3b 0d 0a 09 69 66 28 20 |t "$URL)|;...if( |
|000006f0| 4c 65 66 74 28 55 52 4c | 2c 20 39 29 20 7e 3d 20 |Left(URL|, 9) ~= |
|00000700| 22 74 65 6c 6e 65 74 3a | 2f 2f 22 20 29 0d 0a 09 |"telnet:|//" )...|
|00000710| 09 47 65 74 50 6c 61 79 | 65 72 4f 77 6e 65 72 28 |.GetPlay|erOwner(|
|00000720| 29 2e 43 6f 6e 73 6f 6c | 65 43 6f 6d 6d 61 6e 64 |).Consol|eCommand|
|00000730| 28 22 73 74 61 72 74 20 | 22 24 55 52 4c 29 3b 0d |("start |"$URL);.|
|00000740| 0a 09 69 66 28 20 4c 65 | 66 74 28 55 52 4c 2c 20 |..if( Le|ft(URL, |
|00000750| 39 29 20 7e 3d 20 22 67 | 6f 70 68 65 72 3a 2f 2f |9) ~= "g|opher://|
|00000760| 22 20 29 0d 0a 09 09 47 | 65 74 50 6c 61 79 65 72 |" )....G|etPlayer|
|00000770| 4f 77 6e 65 72 28 29 2e | 43 6f 6e 73 6f 6c 65 43 |Owner().|ConsoleC|
|00000780| 6f 6d 6d 61 6e 64 28 22 | 73 74 61 72 74 20 22 24 |ommand("|start "$|
|00000790| 55 52 4c 29 3b 0d 0a 09 | 69 66 28 20 4c 65 66 74 |URL);...|if( Left|
|000007a0| 28 55 52 4c 2c 20 34 29 | 20 7e 3d 20 22 77 77 77 |(URL, 4)| ~= "www|
|000007b0| 2e 22 20 29 0d 0a 09 09 | 47 65 74 50 6c 61 79 65 |." )....|GetPlaye|
|000007c0| 72 4f 77 6e 65 72 28 29 | 2e 43 6f 6e 73 6f 6c 65 |rOwner()|.Console|
|000007d0| 43 6f 6d 6d 61 6e 64 28 | 22 73 74 61 72 74 20 68 |Command(|"start h|
|000007e0| 74 74 70 3a 2f 2f 22 24 | 55 52 4c 29 3b 0d 0a 09 |ttp://"$|URL);...|
|000007f0| 69 66 28 20 4c 65 66 74 | 28 55 52 4c 2c 20 34 29 |if( Left|(URL, 4)|
|00000800| 20 7e 3d 20 22 66 74 70 | 2e 22 20 29 0d 0a 09 09 | ~= "ftp|." )....|
|00000810| 47 65 74 50 6c 61 79 65 | 72 4f 77 6e 65 72 28 29 |GetPlaye|rOwner()|
|00000820| 2e 43 6f 6e 73 6f 6c 65 | 43 6f 6d 6d 61 6e 64 28 |.Console|Command(|
|00000830| 22 73 74 61 72 74 20 66 | 74 70 3a 2f 2f 22 24 55 |"start f|tp://"$U|
|00000840| 52 4c 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 69 66 |RL);...e|lse...if|
|00000850| 28 20 4c 65 66 74 28 55 | 52 4c 2c 20 39 29 20 7e |( Left(U|RL, 9) ~|
|00000860| 3d 20 22 75 6e 72 65 61 | 6c 3a 2f 2f 22 20 29 0d |= "unrea|l://" ).|
|00000870| 0a 09 09 4c 61 75 6e 63 | 68 55 6e 72 65 61 6c 55 |...Launc|hUnrealU|
|00000880| 52 4c 28 55 52 4c 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |RL(URL);|..}....f|
|00000890| 75 6e 63 74 69 6f 6e 20 | 4f 76 65 72 55 52 4c 28 |unction |OverURL(|
|000008a0| 73 74 72 69 6e 67 20 55 | 52 4c 29 0d 0a 7b 0d 0a |string U|RL)..{..|
|000008b0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4c 61 |}....fun|ction La|
|000008c0| 75 6e 63 68 55 6e 72 65 | 61 6c 55 52 4c 28 73 74 |unchUnre|alURL(st|
|000008d0| 72 69 6e 67 20 55 52 4c | 29 0d 0a 7b 0d 0a 09 47 |ring URL|)..{...G|
|000008e0| 65 74 50 6c 61 79 65 72 | 4f 77 6e 65 72 28 29 2e |etPlayer|Owner().|
|000008f0| 43 6c 69 65 6e 74 54 72 | 61 76 65 6c 28 55 52 4c |ClientTr|avel(URL|
|00000900| 2c 20 54 52 41 56 45 4c | 5f 41 62 73 6f 6c 75 74 |, TRAVEL|_Absolut|
|00000910| 65 2c 20 66 61 6c 73 65 | 29 3b 0d 0a 7d 0d 0a 0d |e, false|);..}...|
|00000920| 0a 66 75 6e 63 74 69 6f | 6e 20 54 65 78 74 41 72 |.functio|n TextAr|
|00000930| 65 61 54 65 78 74 53 69 | 7a 65 28 43 61 6e 76 61 |eaTextSi|ze(Canva|
|00000940| 73 20 43 2c 20 73 74 72 | 69 6e 67 20 54 65 78 74 |s C, str|ing Text|
|00000950| 2c 20 6f 75 74 20 66 6c | 6f 61 74 20 57 2c 20 6f |, out fl|oat W, o|
|00000960| 75 74 20 66 6c 6f 61 74 | 20 48 29 0d 0a 7b 0d 0a |ut float| H)..{..|
|00000970| 09 52 65 70 6c 61 63 65 | 54 65 78 74 28 54 65 78 |.Replace|Text(Tex|
|00000980| 74 2c 20 22 26 6e 62 73 | 70 3b 22 2c 20 22 20 22 |t, "&nbs|p;", " "|
|00000990| 29 3b 0d 0a 09 52 65 70 | 6c 61 63 65 54 65 78 74 |);...Rep|laceText|
|000009a0| 28 54 65 78 74 2c 20 22 | 26 67 74 3b 22 2c 20 22 |(Text, "|&gt;", "|
|000009b0| 3e 22 29 3b 0d 0a 09 52 | 65 70 6c 61 63 65 54 65 |>");...R|eplaceTe|
|000009c0| 78 74 28 54 65 78 74 2c | 20 22 26 6c 74 3b 22 2c |xt(Text,| "&lt;",|
|000009d0| 20 22 3c 22 29 3b 0d 0a | 09 52 65 70 6c 61 63 65 | "<");..|.Replace|
|000009e0| 54 65 78 74 28 54 65 78 | 74 2c 20 22 26 61 6d 70 |Text(Tex|t, "&amp|
|000009f0| 3b 22 2c 20 22 26 22 29 | 3b 0d 0a 0d 0a 09 54 65 |;", "&")|;.....Te|
|00000a00| 78 74 53 69 7a 65 28 43 | 2c 20 54 65 78 74 2c 20 |xtSize(C|, Text, |
|00000a10| 57 2c 20 48 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |W, H);..|}....fun|
|00000a20| 63 74 69 6f 6e 20 54 65 | 78 74 41 72 65 61 43 6c |ction Te|xtAreaCl|
|00000a30| 69 70 54 65 78 74 28 43 | 61 6e 76 61 73 20 43 2c |ipText(C|anvas C,|
|00000a40| 20 66 6c 6f 61 74 20 44 | 72 61 77 58 2c 20 66 6c | float D|rawX, fl|
|00000a50| 6f 61 74 20 44 72 61 77 | 59 2c 20 63 6f 65 72 63 |oat Draw|Y, coerc|
|00000a60| 65 20 73 74 72 69 6e 67 | 20 54 65 78 74 2c 20 6f |e string| Text, o|
|00000a70| 70 74 69 6f 6e 61 6c 20 | 62 6f 6f 6c 20 62 43 68 |ptional |bool bCh|
|00000a80| 65 63 6b 48 6f 74 6b 65 | 79 29 0d 0a 7b 0d 0a 09 |eckHotke|y)..{...|
|00000a90| 52 65 70 6c 61 63 65 54 | 65 78 74 28 54 65 78 74 |ReplaceT|ext(Text|
|00000aa0| 2c 20 22 26 6e 62 73 70 | 3b 22 2c 20 22 20 22 29 |, "&nbsp|;", " ")|
|00000ab0| 3b 0d 0a 09 52 65 70 6c | 61 63 65 54 65 78 74 28 |;...Repl|aceText(|
|00000ac0| 54 65 78 74 2c 20 22 26 | 67 74 3b 22 2c 20 22 3e |Text, "&|gt;", ">|
|00000ad0| 22 29 3b 0d 0a 09 52 65 | 70 6c 61 63 65 54 65 78 |");...Re|placeTex|
|00000ae0| 74 28 54 65 78 74 2c 20 | 22 26 6c 74 3b 22 2c 20 |t(Text, |"&lt;", |
|00000af0| 22 3c 22 29 3b 0d 0a 09 | 52 65 70 6c 61 63 65 54 |"<");...|ReplaceT|
|00000b00| 65 78 74 28 54 65 78 74 | 2c 20 22 26 61 6d 70 3b |ext(Text|, "&amp;|
|00000b10| 22 2c 20 22 26 22 29 3b | 0d 0a 0d 0a 09 43 6c 69 |", "&");|.....Cli|
|00000b20| 70 54 65 78 74 28 43 2c | 20 44 72 61 77 58 2c 20 |pText(C,| DrawX, |
|00000b30| 44 72 61 77 59 2c 20 54 | 65 78 74 2c 20 62 43 68 |DrawY, T|ext, bCh|
|00000b40| 65 63 6b 48 6f 74 4b 65 | 79 29 3b 0d 0a 7d 0d 0a |eckHotKe|y);..}..|
|00000b50| 0d 0a 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00000b60| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b70| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b80| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 2f 2f 20 4f 76 |////////|/..// Ov|
|00000b90| 65 72 6c 6f 61 64 65 64 | 20 66 75 6e 63 74 69 6f |erloaded| functio|
|00000ba0| 6e 73 20 66 72 6f 6d 20 | 55 57 69 6e 64 6f 77 44 |ns from |UWindowD|
|00000bb0| 79 6e 61 6d 69 63 54 65 | 78 74 41 72 65 61 0d 0a |ynamicTe|xtArea..|
|00000bc0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bd0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000be0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bf0| 2f 2f 2f 2f 2f 2f 2f 0d | 0a 0d 0a 66 75 6e 63 74 |///////.|...funct|
|00000c00| 69 6f 6e 20 57 72 61 70 | 52 6f 77 28 43 61 6e 76 |ion Wrap|Row(Canv|
|00000c10| 61 73 20 43 2c 20 55 57 | 69 6e 64 6f 77 44 79 6e |as C, UW|indowDyn|
|00000c20| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 4c 29 0d 0a |amicText|Row L)..|
|00000c30| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 48 54 4d 4c 53 74 |{...loca|l HTMLSt|
|00000c40| 79 6c 65 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |yle Curr|entStyle|
|00000c50| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |;...loca|l UWindo|
|00000c60| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 20 52 3b 0d |wHTMLTex|tRow R;.|
|00000c70| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 49 |..local |string I|
|00000c80| 6e 70 75 74 2c 20 4c 65 | 66 74 54 65 78 74 2c 20 |nput, Le|ftText, |
|00000c90| 48 54 4d 4c 2c 20 52 69 | 67 68 74 54 65 78 74 3b |HTML, Ri|ghtText;|
|00000ca0| 0d 0a 0d 0a 09 53 75 70 | 65 72 2e 57 72 61 70 52 |.....Sup|er.WrapR|
|00000cb0| 6f 77 28 43 2c 20 4c 29 | 3b 0d 0a 0d 0a 09 2f 2f |ow(C, L)|;.....//|
|00000cc0| 20 47 65 6e 65 72 61 74 | 65 20 74 68 65 20 44 69 | Generat|e the Di|
|00000cd0| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 61 6e 64 20 |splayStr|ing and |
|00000ce0| 53 74 79 6c 65 53 74 72 | 69 6e 67 20 6c 69 6e 65 |StyleStr|ing line|
|00000cf0| 73 20 66 6f 72 20 65 61 | 63 68 20 72 6f 77 0d 0a |s for ea|ch row..|
|00000d00| 09 52 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.R = UWi|ndowHTML|
|00000d10| 54 65 78 74 52 6f 77 28 | 4c 29 3b 0d 0a 09 77 68 |TextRow(|L);...wh|
|00000d20| 69 6c 65 28 52 20 21 3d | 20 4e 6f 6e 65 20 26 26 |ile(R !=| None &&|
|00000d30| 20 28 52 20 3d 3d 20 4c | 20 7c 7c 20 52 2e 57 72 | (R == L| || R.Wr|
|00000d40| 61 70 50 61 72 65 6e 74 | 20 3d 3d 20 4c 29 29 0d |apParent| == L)).|
|00000d50| 0a 09 7b 0d 0a 09 09 52 | 2e 44 69 73 70 6c 61 79 |..{....R|.Display|
|00000d60| 53 74 72 69 6e 67 20 3d | 20 22 22 3b 0d 0a 09 09 |String =| "";....|
|00000d70| 52 2e 53 74 79 6c 65 53 | 74 72 69 6e 67 20 3d 20 |R.StyleS|tring = |
|00000d80| 22 22 3b 0d 0a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |"";.....|.Current|
|00000d90| 53 74 79 6c 65 20 3d 20 | 52 2e 53 74 61 72 74 53 |Style = |R.StartS|
|00000da0| 74 79 6c 65 3b 0d 0a 09 | 09 0d 0a 09 09 49 6e 70 |tyle;...|.....Inp|
|00000db0| 75 74 20 3d 20 52 2e 54 | 65 78 74 3b 0d 0a 09 09 |ut = R.T|ext;....|
|00000dc0| 77 68 69 6c 65 28 49 6e | 70 75 74 20 21 3d 20 22 |while(In|put != "|
|00000dd0| 22 29 0d 0a 09 09 7b 0d | 0a 09 09 09 50 61 72 73 |")....{.|....Pars|
|00000de0| 65 48 54 4d 4c 28 49 6e | 70 75 74 2c 20 4c 65 66 |eHTML(In|put, Lef|
|00000df0| 74 54 65 78 74 2c 20 48 | 54 4d 4c 2c 20 52 69 67 |tText, H|TML, Rig|
|00000e00| 68 74 54 65 78 74 29 3b | 0d 0a 0d 0a 09 09 09 69 |htText);|.......i|
|00000e10| 66 28 4c 65 66 74 54 65 | 78 74 20 21 3d 20 22 22 |f(LeftTe|xt != ""|
|00000e20| 20 7c 7c 20 52 2e 44 69 | 73 70 6c 61 79 53 74 72 | || R.Di|splayStr|
|00000e30| 69 6e 67 20 3d 3d 20 22 | 22 29 0d 0a 09 09 09 7b |ing == "|").....{|
|00000e40| 0d 0a 09 09 09 09 52 2e | 44 69 73 70 6c 61 79 53 |......R.|DisplayS|
|00000e50| 74 72 69 6e 67 20 3d 20 | 52 2e 44 69 73 70 6c 61 |tring = |R.Displa|
|00000e60| 79 53 74 72 69 6e 67 20 | 24 20 4c 65 66 74 54 65 |yString |$ LeftTe|
|00000e70| 78 74 3b 0d 0a 09 09 09 | 09 52 2e 53 74 79 6c 65 |xt;.....|.R.Style|
|00000e80| 53 74 72 69 6e 67 20 3d | 20 52 2e 53 74 79 6c 65 |String =| R.Style|
|00000e90| 53 74 72 69 6e 67 20 24 | 20 57 72 69 74 65 53 74 |String $| WriteSt|
|00000ea0| 79 6c 65 54 65 78 74 28 | 43 75 72 72 65 6e 74 53 |yleText(|CurrentS|
|00000eb0| 74 79 6c 65 2c 20 4c 65 | 6e 28 4c 65 66 74 54 65 |tyle, Le|n(LeftTe|
|00000ec0| 78 74 29 29 3b 0d 0a 09 | 09 09 7d 0d 0a 0d 0a 09 |xt));...|..}.....|
|00000ed0| 09 09 50 72 6f 63 65 73 | 73 49 6e 6c 69 6e 65 48 |..Proces|sInlineH|
|00000ee0| 54 4d 4c 28 48 54 4d 4c | 2c 20 43 75 72 72 65 6e |TML(HTML|, Curren|
|00000ef0| 74 53 74 79 6c 65 29 3b | 0d 0a 09 09 09 53 65 74 |tStyle);|.....Set|
|00000f00| 43 61 6e 76 61 73 53 74 | 79 6c 65 28 43 2c 20 43 |CanvasSt|yle(C, C|
|00000f10| 75 72 72 65 6e 74 53 74 | 79 6c 65 29 3b 0d 0a 0d |urrentSt|yle);...|
|00000f20| 0a 09 09 09 49 6e 70 75 | 74 20 3d 20 52 69 67 68 |....Inpu|t = Righ|
|00000f30| 74 54 65 78 74 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 09 |tText;..|..}.....|
|00000f40| 09 52 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.R = UWi|ndowHTML|
|00000f50| 54 65 78 74 52 6f 77 28 | 52 2e 4e 65 78 74 29 3b |TextRow(|R.Next);|
|00000f60| 0d 0a 09 7d 09 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |...}...}|....func|
|00000f70| 74 69 6f 6e 20 66 6c 6f | 61 74 20 44 72 61 77 54 |tion flo|at DrawT|
|00000f80| 65 78 74 4c 69 6e 65 28 | 43 61 6e 76 61 73 20 43 |extLine(|Canvas C|
|00000f90| 2c 20 55 57 69 6e 64 6f | 77 44 79 6e 61 6d 69 63 |, UWindo|wDynamic|
|00000fa0| 54 65 78 74 52 6f 77 20 | 4c 2c 20 66 6c 6f 61 74 |TextRow |L, float|
|00000fb0| 20 59 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 | Y)..{..|.local f|
|00000fc0| 6c 6f 61 74 20 58 2c 20 | 57 2c 20 48 2c 20 4d 6f |loat X, |W, H, Mo|
|00000fd0| 75 73 65 58 2c 20 4d 6f | 75 73 65 59 3b 0d 0a 09 |useX, Mo|useY;...|
|00000fe0| 6c 6f 63 61 6c 20 48 54 | 4d 4c 53 74 79 6c 65 20 |local HT|MLStyle |
|00000ff0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00001000| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 52 6f 77 48 |local fl|oat RowH|
|00001010| 65 69 67 68 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 43 |eight;..|.local C|
|00001020| 6f 6c 6f 72 20 4f 6c 64 | 43 6f 6c 6f 72 3b 0d 0a |olor Old|Color;..|
|00001030| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 53 74 79 6c 65 |.local i|nt Style|
|00001040| 50 6f 73 2c 20 44 69 73 | 70 6c 61 79 50 6f 73 2c |Pos, Dis|playPos,|
|00001050| 20 69 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 | i;...lo|cal stri|
|00001060| 6e 67 20 53 3b 0d 0a 0d | 0a 09 52 6f 77 48 65 69 |ng S;...|..RowHei|
|00001070| 67 68 74 20 3d 20 30 3b | 0d 0a 0d 0a 09 43 75 72 |ght = 0;|.....Cur|
|00001080| 72 65 6e 74 53 74 79 6c | 65 20 3d 20 55 57 69 6e |rentStyl|e = UWin|
|00001090| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|000010a0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 3b 0d 0a 09 |).StartS|tyle;...|
|000010b0| 69 66 28 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |if(Curre|ntStyle.|
|000010c0| 62 43 65 6e 74 65 72 29 | 0d 0a 09 7b 0d 0a 09 09 |bCenter)|...{....|
|000010d0| 57 20 3d 20 43 61 6c 63 | 48 54 4d 4c 54 65 78 74 |W = Calc|HTMLText|
|000010e0| 57 69 64 74 68 28 43 2c | 20 4c 2e 54 65 78 74 2c |Width(C,| L.Text,|
|000010f0| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 3b 0d | Current|Style);.|
|00001100| 0a 09 09 69 66 28 56 65 | 72 74 53 42 2e 62 57 69 |...if(Ve|rtSB.bWi|
|00001110| 6e 64 6f 77 56 69 73 69 | 62 6c 65 29 0d 0a 09 09 |ndowVisi|ble)....|
|00001120| 09 58 20 3d 20 69 6e 74 | 28 28 28 57 69 6e 57 69 |.X = int|(((WinWi|
|00001130| 64 74 68 20 2d 20 56 65 | 72 74 53 42 2e 57 69 6e |dth - Ve|rtSB.Win|
|00001140| 57 69 64 74 68 29 20 2d | 20 57 29 20 2f 20 32 29 |Width) -| W) / 2)|
|00001150| 3b 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 09 58 20 |;....els|e.....X |
|00001160| 3d 20 69 6e 74 28 28 57 | 69 6e 57 69 64 74 68 20 |= int((W|inWidth |
|00001170| 2d 20 57 29 20 2f 20 32 | 29 3b 0d 0a 09 7d 0d 0a |- W) / 2|);...}..|
|00001180| 09 65 6c 73 65 0d 0a 09 | 09 58 20 3d 20 32 3b 0d |.else...|.X = 2;.|
|00001190| 0a 0d 0a 09 69 66 28 47 | 65 74 45 6e 74 72 79 4c |....if(G|etEntryL|
|000011a0| 65 76 65 6c 28 29 2e 54 | 69 6d 65 53 65 63 6f 6e |evel().T|imeSecon|
|000011b0| 64 73 20 3e 20 4c 61 73 | 74 42 6c 69 6e 6b 54 69 |ds > Las|tBlinkTi|
|000011c0| 6d 65 20 2b 20 30 2e 35 | 29 0d 0a 09 7b 0d 0a 09 |me + 0.5|)...{...|
|000011d0| 09 62 53 68 6f 77 42 6c | 69 6e 6b 20 3d 20 21 62 |.bShowBl|ink = !b|
|000011e0| 53 68 6f 77 42 6c 69 6e | 6b 3b 0d 0a 09 09 4c 61 |ShowBlin|k;....La|
|000011f0| 73 74 42 6c 69 6e 6b 54 | 69 6d 65 20 3d 20 47 65 |stBlinkT|ime = Ge|
|00001200| 74 45 6e 74 72 79 4c 65 | 76 65 6c 28 29 2e 54 69 |tEntryLe|vel().Ti|
|00001210| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 09 7d 0d 0a |meSecond|s;...}..|
|00001220| 0d 0a 09 69 66 28 55 57 | 69 6e 64 6f 77 48 54 4d |...if(UW|indowHTM|
|00001230| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 44 69 73 70 |LTextRow|(L).Disp|
|00001240| 6c 61 79 53 74 72 69 6e | 67 20 3d 3d 20 22 22 29 |layStrin|g == "")|
|00001250| 0d 0a 09 09 53 65 74 43 | 61 6e 76 61 73 53 74 79 |....SetC|anvasSty|
|00001260| 6c 65 28 43 2c 20 43 75 | 72 72 65 6e 74 53 74 79 |le(C, Cu|rrentSty|
|00001270| 6c 65 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 7b 0d |le);...e|lse...{.|
|00001280| 0a 09 09 77 68 69 6c 65 | 28 44 69 73 70 6c 61 79 |...while|(Display|
|00001290| 50 6f 73 20 3c 20 4c 65 | 6e 28 55 57 69 6e 64 6f |Pos < Le|n(UWindo|
|000012a0| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|000012b0| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 29 29 0d |DisplayS|tring)).|
|000012c0| 0a 09 09 7b 0d 0a 09 09 | 09 69 20 3d 20 52 65 61 |...{....|.i = Rea|
|000012d0| 64 53 74 79 6c 65 54 65 | 78 74 28 55 57 69 6e 64 |dStyleTe|xt(UWind|
|000012e0| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|000012f0| 2e 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |.StyleSt|ring, St|
|00001300| 79 6c 65 50 6f 73 2c 20 | 43 75 72 72 65 6e 74 53 |ylePos, |CurrentS|
|00001310| 74 79 6c 65 29 3b 0d 0a | 09 09 09 53 20 3d 20 4d |tyle);..|...S = M|
|00001320| 69 64 28 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 |id(UWind|owHTMLTe|
|00001330| 78 74 52 6f 77 28 4c 29 | 2e 44 69 73 70 6c 61 79 |xtRow(L)|.Display|
|00001340| 53 74 72 69 6e 67 2c 20 | 44 69 73 70 6c 61 79 50 |String, |DisplayP|
|00001350| 6f 73 2c 20 69 29 3b 0d | 0a 09 09 09 44 69 73 70 |os, i);.|....Disp|
|00001360| 6c 61 79 50 6f 73 20 2b | 3d 20 69 3b 09 09 09 09 |layPos +|= i;....|
|00001370| 09 0d 0a 09 09 09 53 65 | 74 43 61 6e 76 61 73 53 |......Se|tCanvasS|
|00001380| 74 79 6c 65 28 43 2c 20 | 43 75 72 72 65 6e 74 53 |tyle(C, |CurrentS|
|00001390| 74 79 6c 65 29 3b 0d 0a | 0d 0a 09 09 09 54 65 78 |tyle);..|.....Tex|
|000013a0| 74 41 72 65 61 54 65 78 | 74 53 69 7a 65 28 43 2c |tAreaTex|tSize(C,|
|000013b0| 20 53 2c 20 57 2c 20 48 | 29 3b 0d 0a 09 09 09 69 | S, W, H|);.....i|
|000013c0| 66 28 48 20 3e 20 52 6f | 77 48 65 69 67 68 74 29 |f(H > Ro|wHeight)|
|000013d0| 0d 0a 09 09 09 09 52 6f | 77 48 65 69 67 68 74 20 |......Ro|wHeight |
|000013e0| 3d 20 48 3b 0d 0a 0d 0a | 09 09 09 69 66 28 43 75 |= H;....|...if(Cu|
|000013f0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 4c 69 6e 6b |rrentSty|le.bLink|
|00001400| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 47 65 74 |).....{.|.....Get|
|00001410| 4d 6f 75 73 65 58 59 28 | 4d 6f 75 73 65 58 2c 20 |MouseXY(|MouseX, |
|00001420| 4d 6f 75 73 65 59 29 3b | 0d 0a 09 09 09 09 69 66 |MouseY);|......if|
|00001430| 28 58 20 3c 20 4d 6f 75 | 73 65 58 20 26 26 20 58 |(X < Mou|seX && X|
|00001440| 20 2b 20 57 20 3e 20 4d | 6f 75 73 65 58 20 26 26 | + W > M|ouseX &&|
|00001450| 20 59 20 3c 20 4d 6f 75 | 73 65 59 20 26 26 20 59 | Y < Mou|seY && Y|
|00001460| 20 2b 20 48 20 3e 20 4d | 6f 75 73 65 59 29 0d 0a | + H > M|ouseY)..|
|00001470| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 43 75 72 73 |....{...|....Curs|
|00001480| 6f 72 20 3d 20 52 6f 6f | 74 2e 48 61 6e 64 43 75 |or = Roo|t.HandCu|
|00001490| 72 73 6f 72 3b 0d 0a 09 | 09 09 09 09 4f 76 65 72 |rsor;...|....Over|
|000014a0| 55 52 4c 28 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |URL(Curr|entStyle|
|000014b0| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|000014c0| 29 3b 0d 0a 0d 0a 09 09 | 09 09 09 69 66 28 62 4d |);......|...if(bM|
|000014d0| 6f 75 73 65 44 6f 77 6e | 20 7c 7c 20 62 52 65 6c |ouseDown| || bRel|
|000014e0| 65 61 73 65 64 29 0d 0a | 09 09 09 09 09 7b 0d 0a |eased)..|.....{..|
|000014f0| 09 09 09 09 09 09 69 66 | 28 62 52 65 6c 65 61 73 |......if|(bReleas|
|00001500| 65 64 29 0d 0a 09 09 09 | 09 09 09 7b 0d 0a 09 09 |ed).....|...{....|
|00001510| 09 09 09 09 09 50 72 6f | 63 65 73 73 55 52 4c 28 |.....Pro|cessURL(|
|00001520| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 4c 69 6e |CurrentS|tyle.Lin|
|00001530| 6b 44 65 73 74 69 6e 61 | 74 69 6f 6e 29 3b 0d 0a |kDestina|tion);..|
|00001540| 09 09 09 09 09 09 09 62 | 52 65 6c 65 61 73 65 64 |.......b|Released|
|00001550| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 09 09 09 | = False|;.......|
|00001560| 09 7d 0d 0a 09 09 09 09 | 09 09 65 6c 73 65 0d 0a |.}......|..else..|
|00001570| 09 09 09 09 09 09 09 43 | 2e 44 72 61 77 43 6f 6c |.......C|.DrawCol|
|00001580| 6f 72 20 3d 20 41 4c 69 | 6e 6b 43 6f 6c 6f 72 3b |or = ALi|nkColor;|
|00001590| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 7d 0d |.......}|......}.|
|000015a0| 0a 09 09 09 7d 0d 0a 0d | 0a 09 09 09 69 66 28 43 |....}...|....if(C|
|000015b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 42 47 43 6f |urrentSt|yle.BGCo|
|000015c0| 6c 6f 72 20 21 3d 20 42 | 47 43 6f 6c 6f 72 29 0d |lor != B|GColor).|
|000015d0| 0a 09 09 09 7b 09 0d 0a | 09 09 09 09 4f 6c 64 43 |....{...|....OldC|
|000015e0| 6f 6c 6f 72 20 3d 20 43 | 2e 44 72 61 77 43 6f 6c |olor = C|.DrawCol|
|000015f0| 6f 72 3b 0d 0a 09 09 09 | 09 43 2e 44 72 61 77 43 |or;.....|.C.DrawC|
|00001600| 6f 6c 6f 72 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |olor = C|urrentSt|
|00001610| 79 6c 65 2e 42 47 43 6f | 6c 6f 72 3b 0d 0a 09 09 |yle.BGCo|lor;....|
|00001620| 09 09 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |..DrawSt|retchedT|
|00001630| 65 78 74 75 72 65 28 43 | 2c 20 58 2c 20 59 2c 20 |exture(C|, X, Y, |
|00001640| 57 2c 20 48 2c 20 54 65 | 78 74 75 72 65 27 57 68 |W, H, Te|xture'Wh|
|00001650| 69 74 65 54 65 78 74 75 | 72 65 27 29 3b 0d 0a 09 |iteTextu|re');...|
|00001660| 09 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 3d |...C.Dra|wColor =|
|00001670| 20 4f 6c 64 43 6f 6c 6f | 72 3b 0d 0a 09 09 09 7d | OldColo|r;.....}|
|00001680| 0d 0a 09 09 09 69 66 28 | 21 43 75 72 72 65 6e 74 |.....if(|!Current|
|00001690| 53 74 79 6c 65 2e 62 42 | 6c 69 6e 6b 20 7c 7c 20 |Style.bB|link || |
|000016a0| 62 53 68 6f 77 42 6c 69 | 6e 6b 29 0d 0a 09 09 09 |bShowBli|nk).....|
|000016b0| 09 54 65 78 74 41 72 65 | 61 43 6c 69 70 54 65 78 |.TextAre|aClipTex|
|000016c0| 74 28 43 2c 20 58 2c 20 | 59 2c 20 53 29 3b 0d 0a |t(C, X, |Y, S);..|
|000016d0| 09 09 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|000016e0| 6c 65 2e 62 4c 69 6e 6b | 20 7c 7c 20 43 75 72 72 |le.bLink| || Curr|
|000016f0| 65 6e 74 53 74 79 6c 65 | 2e 62 55 6e 64 65 72 6c |entStyle|.bUnderl|
|00001700| 69 6e 65 29 0d 0a 09 09 | 09 09 44 72 61 77 53 74 |ine)....|..DrawSt|
|00001710| 72 65 74 63 68 65 64 54 | 65 78 74 75 72 65 28 43 |retchedT|exture(C|
|00001720| 2c 20 58 2c 20 59 2b 48 | 2d 31 2c 20 57 2c 20 31 |, X, Y+H|-1, W, 1|
|00001730| 2c 20 54 65 78 74 75 72 | 65 27 57 68 69 74 65 54 |, Textur|e'WhiteT|
|00001740| 65 78 74 75 72 65 27 29 | 3b 0d 0a 0d 0a 09 09 09 |exture')|;.......|
|00001750| 58 20 2b 3d 20 57 3b 0d | 0a 09 09 7d 0d 0a 09 7d |X += W;.|...}...}|
|00001760| 0d 0a 09 69 66 28 52 6f | 77 48 65 69 67 68 74 20 |...if(Ro|wHeight |
|00001770| 3d 3d 20 30 29 0d 0a 09 | 09 54 65 78 74 41 72 65 |== 0)...|.TextAre|
|00001780| 61 54 65 78 74 53 69 7a | 65 28 43 2c 20 22 41 22 |aTextSiz|e(C, "A"|
|00001790| 2c 20 57 2c 20 52 6f 77 | 48 65 69 67 68 74 29 3b |, W, Row|Height);|
|000017a0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 52 6f 77 48 |.....ret|urn RowH|
|000017b0| 65 69 67 68 74 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |eight;..|}....fun|
|000017c0| 63 74 69 6f 6e 20 55 57 | 69 6e 64 6f 77 44 79 6e |ction UW|indowDyn|
|000017d0| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 53 70 6c 69 |amicText|Row Spli|
|000017e0| 74 52 6f 77 41 74 28 55 | 57 69 6e 64 6f 77 44 79 |tRowAt(U|WindowDy|
|000017f0| 6e 61 6d 69 63 54 65 78 | 74 52 6f 77 20 4c 2c 20 |namicTex|tRow L, |
|00001800| 69 6e 74 20 53 70 6c 69 | 74 50 6f 73 29 0d 0a 7b |int Spli|tPos)..{|
|00001810| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00001820| 44 79 6e 61 6d 69 63 54 | 65 78 74 52 6f 77 20 4e |DynamicT|extRow N|
|00001830| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 48 54 4d 4c 53 74 |;...loca|l HTMLSt|
|00001840| 79 6c 65 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |yle Curr|entStyle|
|00001850| 3b 0d 0a 0d 0a 09 4e 20 | 3d 20 53 75 70 65 72 2e |;.....N |= Super.|
|00001860| 53 70 6c 69 74 52 6f 77 | 41 74 28 4c 2c 20 53 70 |SplitRow|At(L, Sp|
|00001870| 6c 69 74 50 6f 73 29 3b | 0d 0a 0d 0a 09 2f 2f 20 |litPos);|.....// |
|00001880| 75 70 64 61 74 65 20 74 | 68 65 20 73 74 79 6c 65 |update t|he style|
|00001890| 20 62 79 20 70 72 6f 63 | 65 73 73 69 6e 67 20 66 | by proc|essing f|
|000018a0| 72 6f 6d 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 |rom the |start of|
|000018b0| 20 4c 20 74 6f 20 74 68 | 65 20 73 70 6c 69 74 20 | L to th|e split |
|000018c0| 70 6f 73 69 74 69 6f 6e | 2e 0d 0a 09 55 57 69 6e |position|....UWin|
|000018d0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4e |dowHTMLT|extRow(N|
|000018e0| 29 2e 45 6e 64 53 74 79 | 6c 65 20 3d 20 55 57 69 |).EndSty|le = UWi|
|000018f0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00001900| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 3b 0d 0a 09 43 |L).EndSt|yle;...C|
|00001910| 75 72 72 65 6e 74 53 74 | 79 6c 65 20 3d 20 55 57 |urrentSt|yle = UW|
|00001920| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00001930| 28 4c 29 2e 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |(L).Star|tStyle;.|
|00001940| 0a 09 48 54 4d 4c 55 70 | 64 61 74 65 53 74 79 6c |..HTMLUp|dateStyl|
|00001950| 65 28 4c 2e 54 65 78 74 | 2c 20 43 75 72 72 65 6e |e(L.Text|, Curren|
|00001960| 74 53 74 79 6c 65 29 3b | 0d 0a 09 55 57 69 6e 64 |tStyle);|...UWind|
|00001970| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|00001980| 2e 45 6e 64 53 74 79 6c | 65 20 3d 20 43 75 72 72 |.EndStyl|e = Curr|
|00001990| 65 6e 74 53 74 79 6c 65 | 3b 0d 0a 09 55 57 69 6e |entStyle|;...UWin|
|000019a0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4e |dowHTMLT|extRow(N|
|000019b0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 43 |).StartS|tyle = C|
|000019c0| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 0d 0a |urrentSt|yle;....|
|000019d0| 09 72 65 74 75 72 6e 20 | 4e 3b 0d 0a 7d 0d 0a 0d |.return |N;..}...|
|000019e0| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 6d 6f 76 65 |.functio|n Remove|
|000019f0| 57 72 61 70 28 55 57 69 | 6e 64 6f 77 44 79 6e 61 |Wrap(UWi|ndowDyna|
|00001a00| 6d 69 63 54 65 78 74 52 | 6f 77 20 4c 29 0d 0a 7b |micTextR|ow L)..{|
|00001a10| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00001a20| 44 79 6e 61 6d 69 63 54 | 65 78 74 52 6f 77 20 4e |DynamicT|extRow N|
|00001a30| 3b 0d 0a 0d 0a 09 2f 2f | 20 63 6f 70 79 20 66 69 |;.....//| copy fi|
|00001a40| 6e 61 6c 20 65 6e 64 73 | 74 79 6c 65 20 74 6f 20 |nal ends|tyle to |
|00001a50| 63 75 72 72 65 6e 74 20 | 72 6f 77 0d 0a 09 4e 20 |current |row...N |
|00001a60| 3d 20 55 57 69 6e 64 6f | 77 44 79 6e 61 6d 69 63 |= UWindo|wDynamic|
|00001a70| 54 65 78 74 52 6f 77 28 | 4c 2e 4e 65 78 74 29 3b |TextRow(|L.Next);|
|00001a80| 0d 0a 09 77 68 69 6c 65 | 28 4e 20 21 3d 20 4e 6f |...while|(N != No|
|00001a90| 6e 65 20 26 26 20 4e 2e | 57 72 61 70 50 61 72 65 |ne && N.|WrapPare|
|00001aa0| 6e 74 20 3d 3d 20 4c 29 | 0d 0a 09 7b 0d 0a 09 09 |nt == L)|...{....|
|00001ab0| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00001ac0| 6f 77 28 4c 29 2e 45 6e | 64 53 74 79 6c 65 20 3d |ow(L).En|dStyle =|
|00001ad0| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00001ae0| 52 6f 77 28 4e 29 2e 45 | 6e 64 53 74 79 6c 65 3b |Row(N).E|ndStyle;|
|00001af0| 0d 0a 09 09 4e 20 3d 20 | 55 57 69 6e 64 6f 77 44 |....N = |UWindowD|
|00001b00| 79 6e 61 6d 69 63 54 65 | 78 74 52 6f 77 28 4e 2e |ynamicTe|xtRow(N.|
|00001b10| 4e 65 78 74 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 53 |Next);..|.}.....S|
|00001b20| 75 70 65 72 2e 52 65 6d | 6f 76 65 57 72 61 70 28 |uper.Rem|oveWrap(|
|00001b30| 4c 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |L);..}..|..functi|
|00001b40| 6f 6e 20 69 6e 74 20 47 | 65 74 57 72 61 70 50 6f |on int G|etWrapPo|
|00001b50| 73 28 43 61 6e 76 61 73 | 20 43 2c 20 55 57 69 6e |s(Canvas| C, UWin|
|00001b60| 64 6f 77 44 79 6e 61 6d | 69 63 54 65 78 74 52 6f |dowDynam|icTextRo|
|00001b70| 77 20 4c 2c 20 66 6c 6f | 61 74 20 4d 61 78 57 69 |w L, flo|at MaxWi|
|00001b80| 64 74 68 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |dth)..{.|..local |
|00001b90| 66 6c 6f 61 74 20 57 2c | 20 4c 69 6e 65 57 69 64 |float W,| LineWid|
|00001ba0| 74 68 2c 20 4e 65 78 74 | 57 6f 72 64 57 69 64 74 |th, Next|WordWidt|
|00001bb0| 68 3b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |h;...loc|al strin|
|00001bc0| 67 20 49 6e 70 75 74 2c | 20 4e 65 78 74 57 6f 72 |g Input,| NextWor|
|00001bd0| 64 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 57 |d;...loc|al int W|
|00001be0| 6f 72 64 73 54 68 69 73 | 52 6f 77 2c 20 57 72 61 |ordsThis|Row, Wra|
|00001bf0| 70 50 6f 73 3b 0d 0a 09 | 6c 6f 63 61 6c 20 48 54 |pPos;...|local HT|
|00001c00| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00001c10| 74 79 6c 65 3b 0d 0a 0d | 0a 09 43 75 72 72 65 6e |tyle;...|..Curren|
|00001c20| 74 53 74 79 6c 65 20 3d | 20 55 57 69 6e 64 6f 77 |tStyle =| UWindow|
|00001c30| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00001c40| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 0d 0a 09 2f |tartStyl|e;...../|
|00001c50| 2f 20 71 75 69 63 6b 20 | 63 68 65 63 6b 0d 0a 09 |/ quick |check...|
|00001c60| 69 66 28 43 61 6c 63 48 | 54 4d 4c 54 65 78 74 57 |if(CalcH|TMLTextW|
|00001c70| 69 64 74 68 28 43 2c 20 | 4c 2e 54 65 78 74 2c 20 |idth(C, |L.Text, |
|00001c80| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 20 3c 3d |CurrentS|tyle) <=|
|00001c90| 20 4d 61 78 57 69 64 74 | 68 29 0d 0a 09 09 72 65 | MaxWidt|h)....re|
|00001ca0| 74 75 72 6e 20 2d 31 3b | 0d 0a 0d 0a 09 49 6e 70 |turn -1;|.....Inp|
|00001cb0| 75 74 20 3d 20 4c 2e 54 | 65 78 74 3b 0d 0a 09 57 |ut = L.T|ext;...W|
|00001cc0| 6f 72 64 73 54 68 69 73 | 52 6f 77 20 3d 20 30 3b |ordsThis|Row = 0;|
|00001cd0| 0d 0a 09 4c 69 6e 65 57 | 69 64 74 68 20 3d 20 30 |...LineW|idth = 0|
|00001ce0| 3b 0d 0a 09 57 72 61 70 | 50 6f 73 20 3d 20 30 3b |;...Wrap|Pos = 0;|
|00001cf0| 0d 0a 09 4e 65 78 74 57 | 6f 72 64 20 3d 20 22 22 |...NextW|ord = ""|
|00001d00| 3b 0d 0a 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |;...Curr|entStyle|
|00001d10| 20 3d 20 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 | = UWind|owHTMLTe|
|00001d20| 78 74 52 6f 77 28 4c 29 | 2e 53 74 61 72 74 53 74 |xtRow(L)|.StartSt|
|00001d30| 79 6c 65 3b 0d 0a 0d 0a | 09 77 68 69 6c 65 28 49 |yle;....|.while(I|
|00001d40| 6e 70 75 74 20 21 3d 20 | 22 22 20 7c 7c 20 4e 65 |nput != |"" || Ne|
|00001d50| 78 74 57 6f 72 64 20 21 | 3d 20 22 22 29 0d 0a 09 |xtWord !|= "")...|
|00001d60| 7b 0d 0a 09 09 69 66 28 | 4e 65 78 74 57 6f 72 64 |{....if(|NextWord|
|00001d70| 20 3d 3d 20 22 22 29 0d | 0a 09 09 7b 0d 0a 09 09 | == "").|...{....|
|00001d80| 09 52 65 6d 6f 76 65 4e | 65 78 74 57 6f 72 64 28 |.RemoveN|extWord(|
|00001d90| 49 6e 70 75 74 2c 20 4e | 65 78 74 57 6f 72 64 29 |Input, N|extWord)|
|00001da0| 3b 0d 0a 09 09 09 4e 65 | 78 74 57 6f 72 64 57 69 |;.....Ne|xtWordWi|
|00001db0| 64 74 68 20 3d 20 43 61 | 6c 63 48 54 4d 4c 54 65 |dth = Ca|lcHTMLTe|
|00001dc0| 78 74 57 69 64 74 68 28 | 43 2c 20 4e 65 78 74 57 |xtWidth(|C, NextW|
|00001dd0| 6f 72 64 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |ord, Cur|rentStyl|
|00001de0| 65 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 69 66 28 57 |e);....}|....if(W|
|00001df0| 6f 72 64 73 54 68 69 73 | 52 6f 77 20 3e 20 30 20 |ordsThis|Row > 0 |
|00001e00| 26 26 20 4c 69 6e 65 57 | 69 64 74 68 20 2b 20 4e |&& LineW|idth + N|
|00001e10| 65 78 74 57 6f 72 64 57 | 69 64 74 68 20 3e 20 4d |extWordW|idth > M|
|00001e20| 61 78 57 69 64 74 68 29 | 0d 0a 09 09 7b 0d 0a 09 |axWidth)|....{...|
|00001e30| 09 09 72 65 74 75 72 6e | 20 57 72 61 70 50 6f 73 |..return| WrapPos|
|00001e40| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00001e50| 09 09 7b 0d 0a 09 09 09 | 57 72 61 70 50 6f 73 20 |..{.....|WrapPos |
|00001e60| 2b 3d 20 4c 65 6e 28 4e | 65 78 74 57 6f 72 64 29 |+= Len(N|extWord)|
|00001e70| 3b 0d 0a 09 09 09 4c 69 | 6e 65 57 69 64 74 68 20 |;.....Li|neWidth |
|00001e80| 2b 3d 20 4e 65 78 74 57 | 6f 72 64 57 69 64 74 68 |+= NextW|ordWidth|
|00001e90| 3b 0d 0a 09 09 09 4e 65 | 78 74 57 6f 72 64 20 3d |;.....Ne|xtWord =|
|00001ea0| 20 22 22 3b 0d 0a 09 09 | 09 57 6f 72 64 73 54 68 | "";....|.WordsTh|
|00001eb0| 69 73 52 6f 77 2b 2b 3b | 0d 0a 09 09 7d 0d 0a 09 |isRow++;|....}...|
|00001ec0| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 2d 31 3b 0d 0a |}...retu|rn -1;..|
|00001ed0| 7d 0d 0a 0d 0a 2f 2f 20 | 46 69 6e 64 20 74 68 65 |}....// |Find the|
|00001ee0| 20 6e 65 78 74 20 77 6f | 72 64 20 2d 20 62 75 74 | next wo|rd - but|
|00001ef0| 20 64 6f 6e 27 74 20 73 | 70 6c 69 74 20 75 70 20 | don't s|plit up |
|00001f00| 48 54 4d 4c 20 74 61 67 | 73 2e 0d 0a 66 75 6e 63 |HTML tag|s...func|
|00001f10| 74 69 6f 6e 20 52 65 6d | 6f 76 65 4e 65 78 74 57 |tion Rem|oveNextW|
|00001f20| 6f 72 64 28 6f 75 74 20 | 73 74 72 69 6e 67 20 54 |ord(out |string T|
|00001f30| 65 78 74 2c 20 6f 75 74 | 20 73 74 72 69 6e 67 20 |ext, out| string |
|00001f40| 4e 65 78 74 57 6f 72 64 | 29 0d 0a 7b 0d 0a 09 6c |NextWord|)..{...l|
|00001f50| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 09 6c 6f |ocal int| i;...lo|
|00001f60| 63 61 6c 20 62 6f 6f 6c | 20 62 49 6e 73 69 64 65 |cal bool| bInside|
|00001f70| 54 61 67 3b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |Tag;...l|ocal str|
|00001f80| 69 6e 67 20 43 68 3b 0d | 0a 09 0d 0a 09 62 49 6e |ing Ch;.|.....bIn|
|00001f90| 73 69 64 65 54 61 67 20 | 3d 20 46 61 6c 73 65 3b |sideTag |= False;|
|00001fa0| 0d 0a 0d 0a 09 66 6f 72 | 28 69 3d 30 3b 69 3c 4c |.....for|(i=0;i<L|
|00001fb0| 65 6e 28 54 65 78 74 29 | 3b 69 2b 2b 29 0d 0a 09 |en(Text)|;i++)...|
|00001fc0| 7b 0d 0a 09 09 43 68 20 | 3d 20 4d 69 64 28 54 65 |{....Ch |= Mid(Te|
|00001fd0| 78 74 2c 20 69 2c 20 31 | 29 3b 0d 0a 09 09 69 66 |xt, i, 1|);....if|
|00001fe0| 28 43 68 20 3d 3d 20 22 | 3e 22 29 0d 0a 09 09 09 |(Ch == "|>").....|
|00001ff0| 62 49 6e 73 69 64 65 54 | 61 67 20 3d 20 46 61 6c |bInsideT|ag = Fal|
|00002000| 73 65 3b 0d 0a 09 09 69 | 66 28 43 68 20 3d 3d 20 |se;....i|f(Ch == |
|00002010| 22 3c 22 29 0d 0a 09 09 | 09 62 49 6e 73 69 64 65 |"<")....|.bInside|
|00002020| 54 61 67 20 3d 20 54 72 | 75 65 3b 0d 0a 09 09 69 |Tag = Tr|ue;....i|
|00002030| 66 28 43 68 20 3d 3d 20 | 22 20 22 20 26 26 20 21 |f(Ch == |" " && !|
|00002040| 62 49 6e 73 69 64 65 54 | 61 67 29 0d 0a 09 09 09 |bInsideT|ag).....|
|00002050| 62 72 65 61 6b 3b 0d 0a | 09 7d 0d 0a 09 77 68 69 |break;..|.}...whi|
|00002060| 6c 65 28 4d 69 64 28 54 | 65 78 74 2c 20 69 2c 20 |le(Mid(T|ext, i, |
|00002070| 31 29 20 3d 3d 20 22 20 | 22 29 0d 0a 09 09 69 2b |1) == " |")....i+|
|00002080| 2b 3b 09 0d 0a 09 4e 65 | 78 74 57 6f 72 64 20 3d |+;....Ne|xtWord =|
|00002090| 20 4c 65 66 74 28 54 65 | 78 74 2c 20 69 29 3b 0d | Left(Te|xt, i);.|
|000020a0| 0a 09 54 65 78 74 20 3d | 20 4d 69 64 28 54 65 78 |..Text =| Mid(Tex|
|000020b0| 74 2c 20 69 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |t, i);..|}....fun|
|000020c0| 63 74 69 6f 6e 20 55 57 | 69 6e 64 6f 77 44 79 6e |ction UW|indowDyn|
|000020d0| 61 6d 69 63 54 65 78 74 | 52 6f 77 20 41 64 64 54 |amicText|Row AddT|
|000020e0| 65 78 74 28 73 74 72 69 | 6e 67 20 4e 65 77 4c 69 |ext(stri|ng NewLi|
|000020f0| 6e 65 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 73 |ne)..{..|.local s|
|00002100| 74 72 69 6e 67 20 49 6e | 70 75 74 2c 20 4f 75 74 |tring In|put, Out|
|00002110| 70 75 74 2c 20 4c 65 66 | 74 54 65 78 74 2c 20 52 |put, Lef|tText, R|
|00002120| 69 67 68 74 54 65 78 74 | 2c 20 48 54 4d 4c 2c 20 |ightText|, HTML, |
|00002130| 54 65 6d 70 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |Temp;...|local in|
|00002140| 74 20 69 3b 0d 0a 09 6c | 6f 63 61 6c 20 55 57 69 |t i;...l|ocal UWi|
|00002150| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 52 |ndowDyna|micTextR|
|00002160| 6f 77 20 4c 3b 0d 0a 09 | 6c 6f 63 61 6c 20 48 54 |ow L;...|local HT|
|00002170| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00002180| 74 79 6c 65 2c 20 53 74 | 61 72 74 53 74 79 6c 65 |tyle, St|artStyle|
|00002190| 3b 0d 0a 0d 0a 09 69 66 | 28 4c 69 73 74 2e 4c 61 |;.....if|(List.La|
|000021a0| 73 74 20 3d 3d 20 4c 69 | 73 74 29 0d 0a 09 7b 0d |st == Li|st)...{.|
|000021b0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|000021c0| 42 75 6c 6c 65 74 4c 65 | 76 65 6c 20 3d 20 30 3b |BulletLe|vel = 0;|
|000021d0| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|000021e0| 2e 4c 69 6e 6b 44 65 73 | 74 69 6e 61 74 69 6f 6e |.LinkDes|tination|
|000021f0| 20 3d 20 22 22 3b 0d 0a | 09 09 43 75 72 72 65 6e | = "";..|..Curren|
|00002200| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|00002210| 20 3d 20 54 65 78 74 43 | 6f 6c 6f 72 3b 0d 0a 09 | = TextC|olor;...|
|00002220| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 42 47 |.Current|Style.BG|
|00002230| 43 6f 6c 6f 72 20 3d 20 | 42 47 43 6f 6c 6f 72 3b |Color = |BGColor;|
|00002240| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00002250| 2e 62 43 65 6e 74 65 72 | 20 3d 20 62 48 43 65 6e |.bCenter| = bHCen|
|00002260| 74 65 72 3b 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |ter;....|CurrentS|
|00002270| 74 79 6c 65 2e 62 4c 69 | 6e 6b 20 3d 20 46 61 6c |tyle.bLi|nk = Fal|
|00002280| 73 65 3b 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |se;....C|urrentSt|
|00002290| 79 6c 65 2e 62 55 6e 64 | 65 72 6c 69 6e 65 20 3d |yle.bUnd|erline =|
|000022a0| 20 46 61 6c 73 65 3b 0d | 0a 09 09 43 75 72 72 65 | False;.|...Curre|
|000022b0| 6e 74 53 74 79 6c 65 2e | 62 4e 6f 42 52 20 3d 20 |ntStyle.|bNoBR = |
|000022c0| 46 61 6c 73 65 3b 0d 0a | 09 09 43 75 72 72 65 6e |False;..|..Curren|
|000022d0| 74 53 74 79 6c 65 2e 62 | 48 65 61 64 69 6e 67 20 |tStyle.b|Heading |
|000022e0| 3d 20 46 61 6c 73 65 3b | 0d 0a 09 09 43 75 72 72 |= False;|....Curr|
|000022f0| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6f 6c 64 20 3d |entStyle|.bBold =|
|00002300| 20 46 61 6c 73 65 3b 0d | 0a 09 09 43 75 72 72 65 | False;.|...Curre|
|00002310| 6e 74 53 74 79 6c 65 2e | 62 42 6c 69 6e 6b 20 3d |ntStyle.|bBlink =|
|00002320| 20 46 61 6c 73 65 3b 0d | 0a 09 7d 0d 0a 09 65 6c | False;.|..}...el|
|00002330| 73 65 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |se....Cu|rrentSty|
|00002340| 6c 65 20 3d 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |le = UWi|ndowHTML|
|00002350| 54 65 78 74 52 6f 77 28 | 4c 69 73 74 2e 4c 61 73 |TextRow(|List.Las|
|00002360| 74 29 2e 45 6e 64 53 74 | 79 6c 65 3b 0d 0a 09 53 |t).EndSt|yle;...S|
|00002370| 74 61 72 74 53 74 79 6c | 65 20 3d 20 43 75 72 72 |tartStyl|e = Curr|
|00002380| 65 6e 74 53 74 79 6c 65 | 3b 0d 0a 0d 0a 09 2f 2f |entStyle|;.....//|
|00002390| 20 63 6f 6e 76 65 72 74 | 20 5c 5c 6e 27 73 20 2d | convert| \\n's -|
|000023a0| 3e 20 3c 62 72 3e 27 73 | 0d 0a 09 69 20 3d 20 49 |> <br>'s|...i = I|
|000023b0| 6e 53 74 72 28 4e 65 77 | 4c 69 6e 65 2c 20 22 5c |nStr(New|Line, "\|
|000023c0| 5c 6e 22 29 3b 0d 0a 09 | 77 68 69 6c 65 28 69 20 |\n");...|while(i |
|000023d0| 21 3d 20 2d 31 29 0d 0a | 09 7b 0d 0a 09 09 4e 65 |!= -1)..|.{....Ne|
|000023e0| 77 4c 69 6e 65 20 3d 20 | 4c 65 66 74 28 4e 65 77 |wLine = |Left(New|
|000023f0| 4c 69 6e 65 2c 20 69 29 | 20 24 20 22 3c 62 72 3e |Line, i)| $ "<br>|
|00002400| 22 20 24 20 4d 69 64 28 | 4e 65 77 4c 69 6e 65 2c |" $ Mid(|NewLine,|
|00002410| 20 69 20 2b 20 32 29 3b | 0d 0a 09 09 69 20 3d 20 | i + 2);|....i = |
|00002420| 49 6e 53 74 72 28 4e 65 | 77 4c 69 6e 65 2c 20 22 |InStr(Ne|wLine, "|
|00002430| 5c 5c 6e 22 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 49 |\\n");..|.}.....I|
|00002440| 6e 70 75 74 20 3d 20 4e | 65 77 4c 69 6e 65 3b 0d |nput = N|ewLine;.|
|00002450| 0a 09 4f 75 74 70 75 74 | 20 3d 20 22 22 3b 0d 0a |..Output| = "";..|
|00002460| 09 77 68 69 6c 65 28 49 | 6e 70 75 74 20 21 3d 20 |.while(I|nput != |
|00002470| 22 22 29 0d 0a 09 7b 0d | 0a 09 09 50 61 72 73 65 |"")...{.|...Parse|
|00002480| 48 54 4d 4c 28 49 6e 70 | 75 74 2c 20 4c 65 66 74 |HTML(Inp|ut, Left|
|00002490| 54 65 78 74 2c 20 48 54 | 4d 4c 2c 20 52 69 67 68 |Text, HT|ML, Righ|
|000024a0| 74 54 65 78 74 29 3b 0d | 0a 09 09 0d 0a 09 09 73 |tText);.|.......s|
|000024b0| 77 69 74 63 68 28 47 65 | 74 54 61 67 28 48 54 4d |witch(Ge|tTag(HTM|
|000024c0| 4c 29 29 0d 0a 09 09 7b | 0d 0a 09 09 2f 2f 20 6d |L))....{|....// m|
|000024d0| 75 6c 74 69 6c 69 6e 65 | 20 48 54 4d 4c 20 74 61 |ultiline| HTML ta|
|000024e0| 67 73 0d 0a 09 09 63 61 | 73 65 20 22 50 22 3a 0d |gs....ca|se "P":.|
|000024f0| 0a 09 09 09 69 66 28 28 | 4f 75 74 70 75 74 20 24 |....if((|Output $|
|00002500| 20 4c 65 66 74 54 65 78 | 74 29 20 21 3d 20 22 22 | LeftTex|t) != ""|
|00002510| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 4c 20 3d |).....{.|.....L =|
|00002520| 20 53 75 70 65 72 2e 41 | 64 64 54 65 78 74 28 4f | Super.A|ddText(O|
|00002530| 75 74 70 75 74 20 24 20 | 4c 65 66 74 54 65 78 74 |utput $ |LeftText|
|00002540| 29 3b 0d 0a 09 09 09 09 | 4f 75 74 70 75 74 20 3d |);......|Output =|
|00002550| 20 22 22 3b 0d 0a 09 09 | 09 09 55 57 69 6e 64 6f | "";....|..UWindo|
|00002560| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|00002570| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 53 74 61 |StartSty|le = Sta|
|00002580| 72 74 53 74 79 6c 65 3b | 0d 0a 09 09 09 09 55 57 |rtStyle;|......UW|
|00002590| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|000025a0| 28 4c 29 2e 45 6e 64 53 | 74 79 6c 65 20 3d 20 43 |(L).EndS|tyle = C|
|000025b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 09 |urrentSt|yle;....|
|000025c0| 09 7d 0d 0a 09 09 09 53 | 74 61 72 74 53 74 79 6c |.}.....S|tartStyl|
|000025d0| 65 20 3d 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |e = Curr|entStyle|
|000025e0| 3b 0d 0a 09 09 09 4c 20 | 3d 20 53 75 70 65 72 2e |;.....L |= Super.|
|000025f0| 41 64 64 54 65 78 74 28 | 22 22 29 3b 0d 0a 09 09 |AddText(|"");....|
|00002600| 09 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 |.UWindow|HTMLText|
|00002610| 52 6f 77 28 4c 29 2e 53 | 74 61 72 74 53 74 79 6c |Row(L).S|tartStyl|
|00002620| 65 20 3d 20 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |e = Star|tStyle;.|
|00002630| 0a 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002640| 65 78 74 52 6f 77 28 4c | 29 2e 45 6e 64 53 74 79 |extRow(L|).EndSty|
|00002650| 6c 65 20 3d 20 43 75 72 | 72 65 6e 74 53 74 79 6c |le = Cur|rentStyl|
|00002660| 65 3b 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |e;.....b|reak;...|
|00002670| 09 63 61 73 65 20 22 42 | 52 22 3a 0d 0a 09 09 09 |.case "B|R":.....|
|00002680| 4c 20 3d 20 53 75 70 65 | 72 2e 41 64 64 54 65 78 |L = Supe|r.AddTex|
|00002690| 74 28 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |t(Output| $ LeftT|
|000026a0| 65 78 74 29 3b 0d 0a 09 | 09 09 4f 75 74 70 75 74 |ext);...|..Output|
|000026b0| 20 3d 20 22 22 3b 0d 0a | 09 09 09 55 57 69 6e 64 | = "";..|...UWind|
|000026c0| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|000026d0| 2e 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 53 74 |.StartSt|yle = St|
|000026e0| 61 72 74 53 74 79 6c 65 | 3b 0d 0a 09 09 09 55 57 |artStyle|;.....UW|
|000026f0| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00002700| 28 4c 29 2e 45 6e 64 53 | 74 79 6c 65 20 3d 20 43 |(L).EndS|tyle = C|
|00002710| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 09 |urrentSt|yle;....|
|00002720| 09 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 43 75 |.StartSt|yle = Cu|
|00002730| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002740| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00002750| 42 4f 44 59 22 3a 0d 0a | 09 09 09 54 65 6d 70 20 |BODY":..|...Temp |
|00002760| 3d 20 47 65 74 4f 70 74 | 69 6f 6e 28 48 54 4d 4c |= GetOpt|ion(HTML|
|00002770| 2c 20 22 42 47 43 4f 4c | 4f 52 3d 22 29 3b 0d 0a |, "BGCOL|OR=");..|
|00002780| 09 09 09 69 66 28 54 65 | 6d 70 20 21 3d 20 22 22 |...if(Te|mp != ""|
|00002790| 29 0d 0a 09 09 09 09 42 | 47 43 6f 6c 6f 72 20 3d |)......B|GColor =|
|000027a0| 20 50 61 72 73 65 43 6f | 6c 6f 72 28 54 65 6d 70 | ParseCo|lor(Temp|
|000027b0| 29 3b 0d 0a 0d 0a 09 09 | 09 54 65 6d 70 20 3d 20 |);......|.Temp = |
|000027c0| 47 65 74 4f 70 74 69 6f | 6e 28 48 54 4d 4c 2c 20 |GetOptio|n(HTML, |
|000027d0| 22 4c 49 4e 4b 3d 22 29 | 3b 0d 0a 09 09 09 69 66 |"LINK=")|;.....if|
|000027e0| 28 54 65 6d 70 20 21 3d | 20 22 22 29 0d 0a 09 09 |(Temp !=| "")....|
|000027f0| 09 09 4c 69 6e 6b 43 6f | 6c 6f 72 20 3d 20 50 61 |..LinkCo|lor = Pa|
|00002800| 72 73 65 43 6f 6c 6f 72 | 28 54 65 6d 70 29 3b 0d |rseColor|(Temp);.|
|00002810| 0a 0d 0a 09 09 09 54 65 | 6d 70 20 3d 20 47 65 74 |......Te|mp = Get|
|00002820| 4f 70 74 69 6f 6e 28 48 | 54 4d 4c 2c 20 22 41 4c |Option(H|TML, "AL|
|00002830| 49 4e 4b 3d 22 29 3b 0d | 0a 09 09 09 69 66 28 54 |INK=");.|....if(T|
|00002840| 65 6d 70 20 21 3d 20 22 | 22 29 0d 0a 09 09 09 09 |emp != "|")......|
|00002850| 41 4c 69 6e 6b 43 6f 6c | 6f 72 20 3d 20 50 61 72 |ALinkCol|or = Par|
|00002860| 73 65 43 6f 6c 6f 72 28 | 54 65 6d 70 29 3b 0d 0a |seColor(|Temp);..|
|00002870| 0d 0a 09 09 09 54 65 6d | 70 20 3d 20 47 65 74 4f |.....Tem|p = GetO|
|00002880| 70 74 69 6f 6e 28 48 54 | 4d 4c 2c 20 22 54 45 58 |ption(HT|ML, "TEX|
|00002890| 54 3d 22 29 3b 0d 0a 09 | 09 09 69 66 28 54 65 6d |T=");...|..if(Tem|
|000028a0| 70 20 21 3d 20 22 22 29 | 0d 0a 09 09 09 09 54 65 |p != "")|......Te|
|000028b0| 78 74 43 6f 6c 6f 72 20 | 3d 20 50 61 72 73 65 43 |xtColor |= ParseC|
|000028c0| 6f 6c 6f 72 28 54 65 6d | 70 29 3b 0d 0a 09 09 09 |olor(Tem|p);.....|
|000028d0| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|000028e0| 24 20 4c 65 66 74 54 65 | 78 74 3b 0d 0a 09 09 09 |$ LeftTe|xt;.....|
|000028f0| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00002900| 43 45 4e 54 45 52 22 3a | 0d 0a 09 09 09 69 66 28 |CENTER":|.....if(|
|00002910| 28 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 |(Output |$ LeftTe|
|00002920| 78 74 29 20 21 3d 20 22 | 22 29 0d 0a 09 09 09 7b |xt) != "|").....{|
|00002930| 0d 0a 09 09 09 09 4c 20 | 3d 20 53 75 70 65 72 2e |......L |= Super.|
|00002940| 41 64 64 54 65 78 74 28 | 4f 75 74 70 75 74 20 24 |AddText(|Output $|
|00002950| 20 4c 65 66 74 54 65 78 | 74 29 3b 0d 0a 09 09 09 | LeftTex|t);.....|
|00002960| 09 4f 75 74 70 75 74 20 | 3d 20 22 22 3b 0d 0a 09 |.Output |= "";...|
|00002970| 09 09 09 55 57 69 6e 64 | 6f 77 48 54 4d 4c 54 65 |...UWind|owHTMLTe|
|00002980| 78 74 52 6f 77 28 4c 29 | 2e 53 74 61 72 74 53 74 |xtRow(L)|.StartSt|
|00002990| 79 6c 65 20 3d 20 53 74 | 61 72 74 53 74 79 6c 65 |yle = St|artStyle|
|000029a0| 3b 0d 0a 09 09 09 09 55 | 57 69 6e 64 6f 77 48 54 |;......U|WindowHT|
|000029b0| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 45 6e 64 |MLTextRo|w(L).End|
|000029c0| 53 74 79 6c 65 20 3d 20 | 43 75 72 72 65 6e 74 53 |Style = |CurrentS|
|000029d0| 74 79 6c 65 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |tyle;...|..}.....|
|000029e0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 43 65 |CurrentS|tyle.bCe|
|000029f0| 6e 74 65 72 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |nter = T|rue;....|
|00002a00| 09 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 43 75 |.StartSt|yle = Cu|
|00002a10| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002a20| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|00002a30| 2f 43 45 4e 54 45 52 22 | 3a 0d 0a 09 09 09 4c 20 |/CENTER"|:.....L |
|00002a40| 3d 20 53 75 70 65 72 2e | 41 64 64 54 65 78 74 28 |= Super.|AddText(|
|00002a50| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 54 65 78 |Output $| LeftTex|
|00002a60| 74 29 3b 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |t);.....|Output =|
|00002a70| 20 22 22 3b 0d 0a 09 09 | 09 55 57 69 6e 64 6f 77 | "";....|.UWindow|
|00002a80| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00002a90| 74 61 72 74 53 74 79 6c | 65 20 3d 20 53 74 61 72 |tartStyl|e = Star|
|00002aa0| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 55 57 69 6e |tStyle;.|....UWin|
|00002ab0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|00002ac0| 29 2e 45 6e 64 53 74 79 | 6c 65 20 3d 20 43 75 72 |).EndSty|le = Cur|
|00002ad0| 72 65 6e 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 43 |rentStyl|e;.....C|
|00002ae0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 43 65 6e |urrentSt|yle.bCen|
|00002af0| 74 65 72 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 09 |ter = Fa|lse;....|
|00002b00| 09 53 74 61 72 74 53 74 | 79 6c 65 20 3d 20 43 75 |.StartSt|yle = Cu|
|00002b10| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002b20| 62 72 65 61 6b 3b 09 09 | 09 0d 0a 09 09 2f 2f 20 |break;..|.....// |
|00002b30| 49 6e 6c 69 6e 65 20 48 | 54 4d 4c 20 74 61 67 73 |Inline H|TML tags|
|00002b40| 0d 0a 09 09 63 61 73 65 | 20 22 48 31 22 3a 0d 0a |....case| "H1":..|
|00002b50| 09 09 09 69 66 28 28 4f | 75 74 70 75 74 20 24 20 |...if((O|utput $ |
|00002b60| 4c 65 66 74 54 65 78 74 | 29 20 21 3d 20 22 22 29 |LeftText|) != "")|
|00002b70| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 4c 20 3d 20 |.....{..|....L = |
|00002b80| 53 75 70 65 72 2e 41 64 | 64 54 65 78 74 28 4f 75 |Super.Ad|dText(Ou|
|00002b90| 74 70 75 74 20 24 20 4c | 65 66 74 54 65 78 74 29 |tput $ L|eftText)|
|00002ba0| 3b 0d 0a 09 09 09 09 4f | 75 74 70 75 74 20 3d 20 |;......O|utput = |
|00002bb0| 22 22 3b 0d 0a 09 09 09 | 09 55 57 69 6e 64 6f 77 |"";.....|.UWindow|
|00002bc0| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00002bd0| 74 61 72 74 53 74 79 6c | 65 20 3d 20 53 74 61 72 |tartStyl|e = Star|
|00002be0| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 09 55 57 69 |tStyle;.|.....UWi|
|00002bf0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00002c00| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 20 3d 20 43 75 |L).EndSt|yle = Cu|
|00002c10| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 09 09 09 |rrentSty|le;.....|
|00002c20| 7d 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |}.....Cu|rrentSty|
|00002c30| 6c 65 2e 62 48 65 61 64 | 69 6e 67 20 3d 20 54 72 |le.bHead|ing = Tr|
|00002c40| 75 65 3b 0d 0a 09 09 09 | 53 74 61 72 74 53 74 79 |ue;.....|StartSty|
|00002c50| 6c 65 20 3d 20 43 75 72 | 72 65 6e 74 53 74 79 6c |le = Cur|rentStyl|
|00002c60| 65 3b 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |e;.....b|reak;...|
|00002c70| 09 63 61 73 65 20 22 2f | 48 31 22 3a 0d 0a 09 09 |.case "/|H1":....|
|00002c80| 09 4c 20 3d 20 53 75 70 | 65 72 2e 41 64 64 54 65 |.L = Sup|er.AddTe|
|00002c90| 78 74 28 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 |xt(Outpu|t $ Left|
|00002ca0| 54 65 78 74 29 3b 0d 0a | 09 09 09 4f 75 74 70 75 |Text);..|...Outpu|
|00002cb0| 74 20 3d 20 22 22 3b 0d | 0a 09 09 09 55 57 69 6e |t = "";.|....UWin|
|00002cc0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|00002cd0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 53 |).StartS|tyle = S|
|00002ce0| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 55 |tartStyl|e;.....U|
|00002cf0| 57 69 6e 64 6f 77 48 54 | 4d 4c 54 65 78 74 52 6f |WindowHT|MLTextRo|
|00002d00| 77 28 4c 29 2e 45 6e 64 | 53 74 79 6c 65 20 3d 20 |w(L).End|Style = |
|00002d10| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00002d20| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00002d30| 48 65 61 64 69 6e 67 20 | 3d 20 46 61 6c 73 65 3b |Heading |= False;|
|00002d40| 0d 0a 09 09 09 53 74 61 | 72 74 53 74 79 6c 65 20 |.....Sta|rtStyle |
|00002d50| 3d 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 3b 0d |= Curren|tStyle;.|
|00002d60| 0a 09 09 09 62 72 65 61 | 6b 3b 09 09 09 0d 0a 09 |....brea|k;......|
|00002d70| 09 63 61 73 65 20 22 46 | 4f 4e 54 22 3a 0d 0a 09 |.case "F|ONT":...|
|00002d80| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00002d90| 74 20 24 20 4c 65 66 74 | 54 65 78 74 20 24 20 48 |t $ Left|Text $ H|
|00002da0| 54 4d 4c 3b 0d 0a 09 09 | 09 54 65 6d 70 20 3d 20 |TML;....|.Temp = |
|00002db0| 47 65 74 4f 70 74 69 6f | 6e 28 48 54 4d 4c 2c 20 |GetOptio|n(HTML, |
|00002dc0| 22 43 4f 4c 4f 52 3d 22 | 29 3b 0d 0a 09 09 09 69 |"COLOR="|);.....i|
|00002dd0| 66 28 54 65 6d 70 20 21 | 3d 20 22 22 29 0d 0a 09 |f(Temp !|= "")...|
|00002de0| 09 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00002df0| 54 65 78 74 43 6f 6c 6f | 72 20 3d 20 50 61 72 73 |TextColo|r = Pars|
|00002e00| 65 43 6f 6c 6f 72 28 54 | 65 6d 70 29 3b 0d 0a 09 |eColor(T|emp);...|
|00002e10| 09 09 54 65 6d 70 20 3d | 20 47 65 74 4f 70 74 69 |..Temp =| GetOpti|
|00002e20| 6f 6e 28 48 54 4d 4c 2c | 20 22 42 47 43 4f 4c 4f |on(HTML,| "BGCOLO|
|00002e30| 52 3d 22 29 3b 0d 0a 09 | 09 09 69 66 28 54 65 6d |R=");...|..if(Tem|
|00002e40| 70 20 21 3d 20 22 22 29 | 0d 0a 09 09 09 09 43 75 |p != "")|......Cu|
|00002e50| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00002e60| 6f 72 20 3d 20 50 61 72 | 73 65 43 6f 6c 6f 72 28 |or = Par|seColor(|
|00002e70| 54 65 6d 70 29 3b 0d 0a | 09 09 09 62 72 65 61 6b |Temp);..|...break|
|00002e80| 3b 0d 0a 09 09 63 61 73 | 65 20 22 2f 46 4f 4e 54 |;....cas|e "/FONT|
|00002e90| 22 3a 0d 0a 09 09 09 4f | 75 74 70 75 74 20 3d 20 |":.....O|utput = |
|00002ea0| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 54 65 78 |Output $| LeftTex|
|00002eb0| 74 20 24 20 48 54 4d 4c | 3b 0d 0a 09 09 09 43 75 |t $ HTML|;.....Cu|
|00002ec0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 54 65 78 74 43 |rrentSty|le.TextC|
|00002ed0| 6f 6c 6f 72 20 3d 20 54 | 65 78 74 43 6f 6c 6f 72 |olor = T|extColor|
|00002ee0| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00002ef0| 6c 65 2e 42 47 43 6f 6c | 6f 72 20 3d 20 42 47 43 |le.BGCol|or = BGC|
|00002f00| 6f 6c 6f 72 3b 0d 0a 09 | 09 09 62 72 65 61 6b 3b |olor;...|..break;|
|00002f10| 0d 0a 09 09 63 61 73 65 | 20 22 42 22 3a 0d 0a 09 |....case| "B":...|
|00002f20| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00002f30| 74 20 24 20 4c 65 66 74 | 54 65 78 74 20 24 20 48 |t $ Left|Text $ H|
|00002f40| 54 4d 4c 3b 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 |TML;....|.Current|
|00002f50| 53 74 79 6c 65 2e 62 42 | 6f 6c 64 20 3d 20 54 72 |Style.bB|old = Tr|
|00002f60| 75 65 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |ue;.....|break;..|
|00002f70| 09 09 63 61 73 65 20 22 | 2f 42 22 3a 0d 0a 09 09 |..case "|/B":....|
|00002f80| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00002f90| 20 24 20 4c 65 66 74 54 | 65 78 74 20 24 20 48 54 | $ LeftT|ext $ HT|
|00002fa0| 4d 4c 3b 0d 0a 09 09 09 | 43 75 72 72 65 6e 74 53 |ML;.....|CurrentS|
|00002fb0| 74 79 6c 65 2e 62 42 6f | 6c 64 20 3d 20 46 61 6c |tyle.bBo|ld = Fal|
|00002fc0| 73 65 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |se;.....|break;..|
|00002fd0| 09 09 63 61 73 65 20 22 | 55 22 3a 0d 0a 09 09 09 |..case "|U":.....|
|00002fe0| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00002ff0| 24 20 4c 65 66 74 54 65 | 78 74 20 24 20 48 54 4d |$ LeftTe|xt $ HTM|
|00003000| 4c 3b 0d 0a 09 09 09 43 | 75 72 72 65 6e 74 53 74 |L;.....C|urrentSt|
|00003010| 79 6c 65 2e 62 55 6e 64 | 65 72 6c 69 6e 65 20 3d |yle.bUnd|erline =|
|00003020| 20 54 72 75 65 3b 0d 0a | 09 09 09 62 72 65 61 6b | True;..|...break|
|00003030| 3b 0d 0a 09 09 63 61 73 | 65 20 22 2f 55 22 3a 0d |;....cas|e "/U":.|
|00003040| 0a 09 09 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |....Outp|ut = Out|
|00003050| 70 75 74 20 24 20 4c 65 | 66 74 54 65 78 74 20 24 |put $ Le|ftText $|
|00003060| 20 48 54 4d 4c 3b 0d 0a | 09 09 09 43 75 72 72 65 | HTML;..|...Curre|
|00003070| 6e 74 53 74 79 6c 65 2e | 62 55 6e 64 65 72 6c 69 |ntStyle.|bUnderli|
|00003080| 6e 65 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 09 |ne = Fal|se;.....|
|00003090| 62 72 65 61 6b 3b 0d 0a | 09 09 63 61 73 65 20 22 |break;..|..case "|
|000030a0| 41 22 3a 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |A":.....|Output =|
|000030b0| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 | Output |$ LeftTe|
|000030c0| 78 74 20 24 20 48 54 4d | 4c 3b 0d 0a 09 09 09 43 |xt $ HTM|L;.....C|
|000030d0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 4c 69 6e |urrentSt|yle.bLin|
|000030e0| 6b 20 3d 20 54 72 75 65 | 3b 0d 0a 09 09 09 43 75 |k = True|;.....Cu|
|000030f0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 4c 69 6e 6b 44 |rrentSty|le.LinkD|
|00003100| 65 73 74 69 6e 61 74 69 | 6f 6e 20 3d 20 47 65 74 |estinati|on = Get|
|00003110| 4f 70 74 69 6f 6e 28 48 | 54 4d 4c 2c 20 22 48 52 |Option(H|TML, "HR|
|00003120| 45 46 3d 22 29 3b 0d 0a | 09 09 09 62 72 65 61 6b |EF=");..|...break|
|00003130| 3b 0d 0a 09 09 63 61 73 | 65 20 22 2f 41 22 3a 0d |;....cas|e "/A":.|
|00003140| 0a 09 09 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |....Outp|ut = Out|
|00003150| 70 75 74 20 24 20 4c 65 | 66 74 54 65 78 74 20 24 |put $ Le|ftText $|
|00003160| 20 48 54 4d 4c 3b 0d 0a | 09 09 09 43 75 72 72 65 | HTML;..|...Curre|
|00003170| 6e 74 53 74 79 6c 65 2e | 62 4c 69 6e 6b 20 3d 20 |ntStyle.|bLink = |
|00003180| 46 61 6c 73 65 3b 0d 0a | 09 09 09 43 75 72 72 65 |False;..|...Curre|
|00003190| 6e 74 53 74 79 6c 65 2e | 4c 69 6e 6b 44 65 73 74 |ntStyle.|LinkDest|
|000031a0| 69 6e 61 74 69 6f 6e 20 | 3d 20 22 22 3b 0d 0a 09 |ination |= "";...|
|000031b0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 09 63 61 73 65 |..break;|....case|
|000031c0| 20 22 4e 4f 42 52 22 3a | 0d 0a 09 09 09 4f 75 74 | "NOBR":|.....Out|
|000031d0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|000031e0| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|000031f0| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003200| 2e 62 4e 6f 42 52 20 3d | 20 54 72 75 65 3b 0d 0a |.bNoBR =| True;..|
|00003210| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|00003220| 65 20 22 2f 4e 4f 42 52 | 22 3a 0d 0a 09 09 09 4f |e "/NOBR|":.....O|
|00003230| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00003240| 20 4c 65 66 74 54 65 78 | 74 20 24 20 48 54 4d 4c | LeftTex|t $ HTML|
|00003250| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00003260| 6c 65 2e 62 4e 6f 42 52 | 20 3d 20 46 61 6c 73 65 |le.bNoBR| = False|
|00003270| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|00003280| 63 61 73 65 20 22 42 4c | 49 4e 4b 22 3a 0d 0a 09 |case "BL|INK":...|
|00003290| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|000032a0| 74 20 24 20 4c 65 66 74 | 54 65 78 74 20 24 20 48 |t $ Left|Text $ H|
|000032b0| 54 4d 4c 3b 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 |TML;....|.Current|
|000032c0| 53 74 79 6c 65 2e 62 42 | 6c 69 6e 6b 20 3d 20 54 |Style.bB|link = T|
|000032d0| 72 75 65 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |rue;....|.break;.|
|000032e0| 0a 09 09 63 61 73 65 20 | 22 2f 42 4c 49 4e 4b 22 |...case |"/BLINK"|
|000032f0| 3a 0d 0a 09 09 09 4f 75 | 74 70 75 74 20 3d 20 4f |:.....Ou|tput = O|
|00003300| 75 74 70 75 74 20 24 20 | 4c 65 66 74 54 65 78 74 |utput $ |LeftText|
|00003310| 20 24 20 48 54 4d 4c 3b | 0d 0a 09 09 09 43 75 72 | $ HTML;|.....Cur|
|00003320| 72 65 6e 74 53 74 79 6c | 65 2e 62 42 6c 69 6e 6b |rentStyl|e.bBlink|
|00003330| 20 3d 20 46 61 6c 73 65 | 3b 0d 0a 09 09 09 62 72 | = False|;.....br|
|00003340| 65 61 6b 3b 0d 0a 09 09 | 64 65 66 61 75 6c 74 3a |eak;....|default:|
|00003350| 0d 0a 09 09 09 4f 75 74 | 70 75 74 20 3d 20 4f 75 |.....Out|put = Ou|
|00003360| 74 70 75 74 20 24 20 4c | 65 66 74 54 65 78 74 3b |tput $ L|eftText;|
|00003370| 0d 0a 09 09 09 62 72 65 | 61 6b 3b 0d 0a 09 09 7d |.....bre|ak;....}|
|00003380| 0d 0a 09 09 49 6e 70 75 | 74 20 3d 20 52 69 67 68 |....Inpu|t = Righ|
|00003390| 74 54 65 78 74 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 4c |tText;..|.}.....L|
|000033a0| 20 3d 20 53 75 70 65 72 | 2e 41 64 64 54 65 78 74 | = Super|.AddText|
|000033b0| 28 4f 75 74 70 75 74 29 | 3b 0d 0a 09 55 57 69 6e |(Output)|;...UWin|
|000033c0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|000033d0| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 53 |).StartS|tyle = S|
|000033e0| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 09 55 57 69 |tartStyl|e;...UWi|
|000033f0| 6e 64 6f 77 48 54 4d 4c | 54 65 78 74 52 6f 77 28 |ndowHTML|TextRow(|
|00003400| 4c 29 2e 45 6e 64 53 74 | 79 6c 65 20 3d 20 43 75 |L).EndSt|yle = Cu|
|00003410| 72 72 65 6e 74 53 74 79 | 6c 65 3b 0d 0a 0d 0a 09 |rrentSty|le;.....|
|00003420| 72 65 74 75 72 6e 20 4c | 3b 0d 0a 7d 0d 0a 0d 0a |return L|;..}....|
|00003430| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003440| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003450| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003460| 2f 2f 2f 0d 0a 2f 2f 20 | 48 54 4d 4c 20 54 65 78 |///..// |HTML Tex|
|00003470| 74 20 50 72 6f 63 65 73 | 73 69 6e 67 0d 0a 2f 2f |t Proces|sing..//|
|00003480| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003490| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034b0| 2f 0d 0a 0d 0a 2f 2f 20 | 47 65 74 20 74 68 65 20 |/....// |Get the |
|000034c0| 6e 65 78 74 20 48 54 4d | 4c 20 74 61 67 2c 20 74 |next HTM|L tag, t|
|000034d0| 68 65 20 74 65 78 74 20 | 62 65 66 6f 72 65 20 69 |he text |before i|
|000034e0| 74 20 61 6e 64 20 65 76 | 65 72 74 68 69 6e 67 20 |t and ev|erthing |
|000034f0| 61 66 74 65 72 20 69 74 | 2e 0d 0a 66 75 6e 63 74 |after it|...funct|
|00003500| 69 6f 6e 20 50 61 72 73 | 65 48 54 4d 4c 28 73 74 |ion Pars|eHTML(st|
|00003510| 72 69 6e 67 20 49 6e 70 | 75 74 2c 20 6f 75 74 20 |ring Inp|ut, out |
|00003520| 73 74 72 69 6e 67 20 4c | 65 66 74 54 65 78 74 2c |string L|eftText,|
|00003530| 20 6f 75 74 20 73 74 72 | 69 6e 67 20 48 54 4d 4c | out str|ing HTML|
|00003540| 2c 20 6f 75 74 20 73 74 | 72 69 6e 67 20 52 69 67 |, out st|ring Rig|
|00003550| 68 74 54 65 78 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |htText).|.{...loc|
|00003560| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 09 0d 0a 09 69 |al int i|;......i|
|00003570| 20 3d 20 49 6e 53 74 72 | 28 49 6e 70 75 74 2c 20 | = InStr|(Input, |
|00003580| 22 3c 22 29 3b 0d 0a 09 | 69 66 28 69 20 3d 3d 20 |"<");...|if(i == |
|00003590| 2d 31 29 0d 0a 09 7b 0d | 0a 09 09 4c 65 66 74 54 |-1)...{.|...LeftT|
|000035a0| 65 78 74 20 3d 20 49 6e | 70 75 74 3b 0d 0a 09 09 |ext = In|put;....|
|000035b0| 48 54 4d 4c 20 3d 20 22 | 22 3b 0d 0a 09 09 52 69 |HTML = "|";....Ri|
|000035c0| 67 68 74 54 65 78 74 20 | 3d 20 22 22 3b 0d 0a 09 |ghtText |= "";...|
|000035d0| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 0d 0a |.return;|...}....|
|000035e0| 09 4c 65 66 74 54 65 78 | 74 20 3d 20 4c 65 66 74 |.LeftTex|t = Left|
|000035f0| 28 49 6e 70 75 74 2c 20 | 69 29 3b 0d 0a 09 48 54 |(Input, |i);...HT|
|00003600| 4d 4c 20 3d 20 4d 69 64 | 28 49 6e 70 75 74 2c 20 |ML = Mid|(Input, |
|00003610| 69 29 3b 0d 0a 0d 0a 09 | 69 20 3d 20 49 6e 53 74 |i);.....|i = InSt|
|00003620| 72 28 48 54 4d 4c 2c 20 | 22 3e 22 29 3b 0d 0a 09 |r(HTML, |">");...|
|00003630| 69 66 28 69 20 3d 3d 20 | 2d 31 29 0d 0a 09 7b 0d |if(i == |-1)...{.|
|00003640| 0a 09 09 52 69 67 68 74 | 54 65 78 74 20 3d 20 22 |...Right|Text = "|
|00003650| 22 3b 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |";....re|turn;...|
|00003660| 7d 0d 0a 0d 0a 09 52 69 | 67 68 74 54 65 78 74 20 |}.....Ri|ghtText |
|00003670| 3d 20 4d 69 64 28 48 54 | 4d 4c 2c 20 69 2b 31 29 |= Mid(HT|ML, i+1)|
|00003680| 3b 0d 0a 09 48 54 4d 4c | 20 3d 20 4c 65 66 74 28 |;...HTML| = Left(|
|00003690| 48 54 4d 4c 2c 20 69 2b | 31 29 3b 09 0d 0a 7d 0d |HTML, i+|1);...}.|
|000036a0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 66 6c 6f 61 |...funct|ion floa|
|000036b0| 74 20 43 61 6c 63 48 54 | 4d 4c 54 65 78 74 57 69 |t CalcHT|MLTextWi|
|000036c0| 64 74 68 28 43 61 6e 76 | 61 73 20 43 2c 20 73 74 |dth(Canv|as C, st|
|000036d0| 72 69 6e 67 20 54 65 78 | 74 2c 20 6f 75 74 20 48 |ring Tex|t, out H|
|000036e0| 54 4d 4c 53 74 79 6c 65 | 20 43 75 72 72 65 6e 74 |TMLStyle| Current|
|000036f0| 53 74 79 6c 65 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Style)..|{...loca|
|00003700| 6c 20 73 74 72 69 6e 67 | 20 49 6e 70 75 74 2c 20 |l string| Input, |
|00003710| 4c 65 66 74 54 65 78 74 | 2c 20 48 54 4d 4c 2c 20 |LeftText|, HTML, |
|00003720| 52 69 67 68 74 54 65 78 | 74 3b 0d 0a 09 6c 6f 63 |RightTex|t;...loc|
|00003730| 61 6c 20 66 6c 6f 61 74 | 20 57 2c 20 48 2c 20 57 |al float| W, H, W|
|00003740| 69 64 74 68 3b 0d 0a 0d | 0a 09 57 69 64 74 68 20 |idth;...|..Width |
|00003750| 3d 20 30 3b 0d 0a 09 49 | 6e 70 75 74 20 3d 20 54 |= 0;...I|nput = T|
|00003760| 65 78 74 3b 0d 0a 09 77 | 68 69 6c 65 28 49 6e 70 |ext;...w|hile(Inp|
|00003770| 75 74 20 21 3d 20 22 22 | 29 0d 0a 09 7b 0d 0a 09 |ut != ""|)...{...|
|00003780| 09 50 61 72 73 65 48 54 | 4d 4c 28 49 6e 70 75 74 |.ParseHT|ML(Input|
|00003790| 2c 20 4c 65 66 74 54 65 | 78 74 2c 20 48 54 4d 4c |, LeftTe|xt, HTML|
|000037a0| 2c 20 52 69 67 68 74 54 | 65 78 74 29 3b 0d 0a 0d |, RightT|ext);...|
|000037b0| 0a 09 09 53 65 74 43 61 | 6e 76 61 73 53 74 79 6c |...SetCa|nvasStyl|
|000037c0| 65 28 43 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |e(C, Cur|rentStyl|
|000037d0| 65 29 3b 0d 0a 09 09 54 | 65 78 74 41 72 65 61 54 |e);....T|extAreaT|
|000037e0| 65 78 74 53 69 7a 65 28 | 43 2c 20 4c 65 66 74 54 |extSize(|C, LeftT|
|000037f0| 65 78 74 2c 20 57 2c 20 | 48 29 3b 0d 0a 09 09 57 |ext, W, |H);....W|
|00003800| 69 64 74 68 20 2b 3d 20 | 57 3b 0d 0a 09 09 09 09 |idth += |W;......|
|00003810| 09 0d 0a 09 09 50 72 6f | 63 65 73 73 49 6e 6c 69 |.....Pro|cessInli|
|00003820| 6e 65 48 54 4d 4c 28 48 | 54 4d 4c 2c 20 43 75 72 |neHTML(H|TML, Cur|
|00003830| 72 65 6e 74 53 74 79 6c | 65 29 3b 0d 0a 0d 0a 09 |rentStyl|e);.....|
|00003840| 09 49 6e 70 75 74 20 3d | 20 52 69 67 68 74 54 65 |.Input =| RightTe|
|00003850| 78 74 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 72 65 74 75 |xt;...}.|....retu|
|00003860| 72 6e 20 57 69 64 74 68 | 3b 0d 0a 7d 0d 0a 0d 0a |rn Width|;..}....|
|00003870| 2f 2f 20 55 70 64 61 74 | 65 20 43 75 72 72 65 6e |// Updat|e Curren|
|00003880| 74 53 74 79 6c 65 20 62 | 61 73 65 64 20 6f 6e 20 |tStyle b|ased on |
|00003890| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|000038a0| 74 68 65 20 48 54 4d 4c | 20 74 61 67 20 70 72 6f |the HTML| tag pro|
|000038b0| 76 69 64 65 64 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |vided..f|unction |
|000038c0| 50 72 6f 63 65 73 73 49 | 6e 6c 69 6e 65 48 54 4d |ProcessI|nlineHTM|
|000038d0| 4c 28 73 74 72 69 6e 67 | 20 48 54 4d 4c 2c 20 6f |L(string| HTML, o|
|000038e0| 75 74 20 48 54 4d 4c 53 | 74 79 6c 65 20 43 75 72 |ut HTMLS|tyle Cur|
|000038f0| 72 65 6e 74 53 74 79 6c | 65 29 0d 0a 7b 0d 0a 09 |rentStyl|e)..{...|
|00003900| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 20 54 65 6d |local st|ring Tem|
|00003910| 70 3b 0d 0a 0d 0a 09 69 | 66 28 48 54 4d 4c 20 3d |p;.....i|f(HTML =|
|00003920| 3d 20 22 22 29 09 0d 0a | 09 09 72 65 74 75 72 6e |= "")...|..return|
|00003930| 3b 0d 0a 0d 0a 09 73 77 | 69 74 63 68 28 47 65 74 |;.....sw|itch(Get|
|00003940| 54 61 67 28 48 54 4d 4c | 29 29 0d 0a 09 7b 0d 0a |Tag(HTML|))...{..|
|00003950| 09 63 61 73 65 20 22 48 | 31 22 3a 0d 0a 09 09 43 |.case "H|1":....C|
|00003960| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 48 65 61 |urrentSt|yle.bHea|
|00003970| 64 69 6e 67 20 3d 20 54 | 72 75 65 3b 0d 0a 09 09 |ding = T|rue;....|
|00003980| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 22 2f |break;..|.case "/|
|00003990| 48 31 22 3a 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |H1":....|CurrentS|
|000039a0| 74 79 6c 65 2e 62 48 65 | 61 64 69 6e 67 20 3d 20 |tyle.bHe|ading = |
|000039b0| 46 61 6c 73 65 3b 0d 0a | 09 09 62 72 65 61 6b 3b |False;..|..break;|
|000039c0| 09 09 09 0d 0a 09 63 61 | 73 65 20 22 46 4f 4e 54 |......ca|se "FONT|
|000039d0| 22 3a 0d 0a 09 09 54 65 | 6d 70 20 3d 20 47 65 74 |":....Te|mp = Get|
|000039e0| 4f 70 74 69 6f 6e 28 48 | 54 4d 4c 2c 20 22 43 4f |Option(H|TML, "CO|
|000039f0| 4c 4f 52 3d 22 29 3b 0d | 0a 09 09 69 66 28 54 65 |LOR=");.|...if(Te|
|00003a00| 6d 70 20 21 3d 20 22 22 | 29 0d 0a 09 09 09 43 75 |mp != ""|).....Cu|
|00003a10| 72 72 65 6e 74 53 74 79 | 6c 65 2e 54 65 78 74 43 |rrentSty|le.TextC|
|00003a20| 6f 6c 6f 72 20 3d 20 50 | 61 72 73 65 43 6f 6c 6f |olor = P|arseColo|
|00003a30| 72 28 54 65 6d 70 29 3b | 0d 0a 09 09 54 65 6d 70 |r(Temp);|....Temp|
|00003a40| 20 3d 20 47 65 74 4f 70 | 74 69 6f 6e 28 48 54 4d | = GetOp|tion(HTM|
|00003a50| 4c 2c 20 22 42 47 43 4f | 4c 4f 52 3d 22 29 3b 0d |L, "BGCO|LOR=");.|
|00003a60| 0a 09 09 69 66 28 54 65 | 6d 70 20 21 3d 20 22 22 |...if(Te|mp != ""|
|00003a70| 29 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |).....Cu|rrentSty|
|00003a80| 6c 65 2e 42 47 43 6f 6c | 6f 72 20 3d 20 50 61 72 |le.BGCol|or = Par|
|00003a90| 73 65 43 6f 6c 6f 72 28 | 54 65 6d 70 29 3b 0d 0a |seColor(|Temp);..|
|00003aa0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00003ab0| 22 2f 46 4f 4e 54 22 3a | 0d 0a 09 09 43 75 72 72 |"/FONT":|....Curr|
|00003ac0| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|00003ad0| 6f 72 20 3d 20 54 65 78 | 74 43 6f 6c 6f 72 3b 0d |or = Tex|tColor;.|
|00003ae0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003af0| 42 47 43 6f 6c 6f 72 20 | 3d 20 42 47 43 6f 6c 6f |BGColor |= BGColo|
|00003b00| 72 3b 0d 0a 09 09 62 72 | 65 61 6b 3b 0d 0a 09 63 |r;....br|eak;...c|
|00003b10| 61 73 65 20 22 42 22 3a | 0d 0a 09 09 43 75 72 72 |ase "B":|....Curr|
|00003b20| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6f 6c 64 20 3d |entStyle|.bBold =|
|00003b30| 20 54 72 75 65 3b 0d 0a | 09 09 62 72 65 61 6b 3b | True;..|..break;|
|00003b40| 0d 0a 09 63 61 73 65 20 | 22 2f 42 22 3a 0d 0a 09 |...case |"/B":...|
|00003b50| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 42 |.Current|Style.bB|
|00003b60| 6f 6c 64 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 09 |old = Fa|lse;....|
|00003b70| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 22 55 |break;..|.case "U|
|00003b80| 22 3a 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |":....Cu|rrentSty|
|00003b90| 6c 65 2e 62 55 6e 64 65 | 72 6c 69 6e 65 20 3d 20 |le.bUnde|rline = |
|00003ba0| 54 72 75 65 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |True;...|.break;.|
|00003bb0| 0a 09 63 61 73 65 20 22 | 2f 55 22 3a 0d 0a 09 09 |..case "|/U":....|
|00003bc0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 62 55 6e |CurrentS|tyle.bUn|
|00003bd0| 64 65 72 6c 69 6e 65 20 | 3d 20 46 61 6c 73 65 3b |derline |= False;|
|00003be0| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00003bf0| 65 20 22 41 22 3a 0d 0a | 09 09 43 75 72 72 65 6e |e "A":..|..Curren|
|00003c00| 74 53 74 79 6c 65 2e 62 | 4c 69 6e 6b 20 3d 20 54 |tStyle.b|Link = T|
|00003c10| 72 75 65 3b 0d 0a 09 09 | 43 75 72 72 65 6e 74 53 |rue;....|CurrentS|
|00003c20| 74 79 6c 65 2e 4c 69 6e | 6b 44 65 73 74 69 6e 61 |tyle.Lin|kDestina|
|00003c30| 74 69 6f 6e 20 3d 20 47 | 65 74 4f 70 74 69 6f 6e |tion = G|etOption|
|00003c40| 28 48 54 4d 4c 2c 20 22 | 48 52 45 46 3d 22 29 3b |(HTML, "|HREF=");|
|00003c50| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00003c60| 65 20 22 2f 41 22 3a 0d | 0a 09 09 43 75 72 72 65 |e "/A":.|...Curre|
|00003c70| 6e 74 53 74 79 6c 65 2e | 62 4c 69 6e 6b 20 3d 20 |ntStyle.|bLink = |
|00003c80| 46 61 6c 73 65 3b 0d 0a | 09 09 43 75 72 72 65 6e |False;..|..Curren|
|00003c90| 74 53 74 79 6c 65 2e 4c | 69 6e 6b 44 65 73 74 69 |tStyle.L|inkDesti|
|00003ca0| 6e 61 74 69 6f 6e 20 3d | 20 22 22 3b 0d 0a 09 09 |nation =| "";....|
|00003cb0| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 22 4e |break;..|.case "N|
|00003cc0| 4f 42 52 22 3a 0d 0a 09 | 09 43 75 72 72 65 6e 74 |OBR":...|.Current|
|00003cd0| 53 74 79 6c 65 2e 62 4e | 6f 42 52 20 3d 20 54 72 |Style.bN|oBR = Tr|
|00003ce0| 75 65 3b 0d 0a 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |ue;....b|reak;...|
|00003cf0| 63 61 73 65 20 22 2f 4e | 4f 42 52 22 3a 0d 0a 09 |case "/N|OBR":...|
|00003d00| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4e |.Current|Style.bN|
|00003d10| 6f 42 52 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 09 |oBR = Fa|lse;....|
|00003d20| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 22 42 |break;..|.case "B|
|00003d30| 4c 49 4e 4b 22 3a 0d 0a | 09 09 43 75 72 72 65 6e |LINK":..|..Curren|
|00003d40| 74 53 74 79 6c 65 2e 62 | 42 6c 69 6e 6b 20 3d 20 |tStyle.b|Blink = |
|00003d50| 54 72 75 65 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |True;...|.break;.|
|00003d60| 0a 09 63 61 73 65 20 22 | 2f 42 4c 49 4e 4b 22 3a |..case "|/BLINK":|
|00003d70| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003d80| 2e 62 42 6c 69 6e 6b 20 | 3d 20 46 61 6c 73 65 3b |.bBlink |= False;|
|00003d90| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 7d 0d 0a |....brea|k;...}..|
|00003da0| 7d 0d 0a 0d 0a 2f 2f 20 | 75 70 64 61 74 65 20 74 |}....// |update t|
|00003db0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 74 79 6c 65 |he curre|nt style|
|00003dc0| 20 62 61 73 65 64 20 6f | 6e 20 73 6f 6d 65 20 74 | based o|n some t|
|00003dd0| 65 78 74 20 69 6e 70 75 | 74 0d 0a 66 75 6e 63 74 |ext inpu|t..funct|
|00003de0| 69 6f 6e 20 48 54 4d 4c | 55 70 64 61 74 65 53 74 |ion HTML|UpdateSt|
|00003df0| 79 6c 65 28 73 74 72 69 | 6e 67 20 49 6e 70 75 74 |yle(stri|ng Input|
|00003e00| 2c 20 6f 75 74 20 48 54 | 4d 4c 53 74 79 6c 65 20 |, out HT|MLStyle |
|00003e10| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 0d 0a 7b |CurrentS|tyle)..{|
|00003e20| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00003e30| 4c 65 66 74 54 65 78 74 | 2c 20 48 54 4d 4c 2c 20 |LeftText|, HTML, |
|00003e40| 52 69 67 68 74 54 65 78 | 74 3b 20 0d 0a 0d 0a 09 |RightTex|t; .....|
|00003e50| 77 68 69 6c 65 28 49 6e | 70 75 74 20 21 3d 20 22 |while(In|put != "|
|00003e60| 22 29 0d 0a 09 7b 0d 0a | 09 09 50 61 72 73 65 48 |")...{..|..ParseH|
|00003e70| 54 4d 4c 28 49 6e 70 75 | 74 2c 20 4c 65 66 74 54 |TML(Inpu|t, LeftT|
|00003e80| 65 78 74 2c 20 48 54 4d | 4c 2c 20 52 69 67 68 74 |ext, HTM|L, Right|
|00003e90| 54 65 78 74 29 3b 0d 0a | 09 09 50 72 6f 63 65 73 |Text);..|..Proces|
|00003ea0| 73 49 6e 6c 69 6e 65 48 | 54 4d 4c 28 48 54 4d 4c |sInlineH|TML(HTML|
|00003eb0| 2c 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 29 3b |, Curren|tStyle);|
|00003ec0| 0d 0a 09 09 49 6e 70 75 | 74 20 3d 20 52 69 67 68 |....Inpu|t = Righ|
|00003ed0| 74 54 65 78 74 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |tText;..|.}..}...|
|00003ee0| 0a 66 75 6e 63 74 69 6f | 6e 20 73 74 72 69 6e 67 |.functio|n string|
|00003ef0| 20 47 65 74 4f 70 74 69 | 6f 6e 28 73 74 72 69 6e | GetOpti|on(strin|
|00003f00| 67 20 48 54 4d 4c 2c 20 | 73 74 72 69 6e 67 20 4f |g HTML, |string O|
|00003f10| 70 74 69 6f 6e 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ption)..|{...loca|
|00003f20| 6c 20 69 6e 74 20 69 2c | 20 6a 3b 0d 0a 09 6c 6f |l int i,| j;...lo|
|00003f30| 63 61 6c 20 73 74 72 69 | 6e 67 20 73 3b 0d 0a 09 |cal stri|ng s;...|
|00003f40| 0d 0a 09 69 20 3d 20 49 | 6e 53 74 72 28 43 61 70 |...i = I|nStr(Cap|
|00003f50| 73 28 48 54 4d 4c 29 2c | 20 43 61 70 73 28 4f 70 |s(HTML),| Caps(Op|
|00003f60| 74 69 6f 6e 29 29 3b 0d | 0a 0d 0a 09 69 66 28 69 |tion));.|....if(i|
|00003f70| 20 3d 3d 20 31 20 7c 7c | 20 4d 69 64 28 48 54 4d | == 1 ||| Mid(HTM|
|00003f80| 4c 2c 20 69 2d 31 2c 20 | 31 29 20 3d 3d 20 22 20 |L, i-1, |1) == " |
|00003f90| 22 29 20 0d 0a 09 7b 0d | 0a 09 09 73 20 3d 20 4d |") ...{.|...s = M|
|00003fa0| 69 64 28 48 54 4d 4c 2c | 20 69 2b 4c 65 6e 28 4f |id(HTML,| i+Len(O|
|00003fb0| 70 74 69 6f 6e 29 29 3b | 0d 0a 09 09 6a 20 3d 20 |ption));|....j = |
|00003fc0| 46 69 72 73 74 4d 61 74 | 63 68 69 6e 67 28 49 6e |FirstMat|ching(In|
|00003fd0| 53 74 72 28 73 2c 20 22 | 3e 22 29 2c 20 49 6e 53 |Str(s, "|>"), InS|
|00003fe0| 74 72 28 73 2c 20 22 20 | 22 29 29 3b 0d 0a 09 09 |tr(s, " |"));....|
|00003ff0| 73 20 3d 20 4c 65 66 74 | 28 73 2c 20 6a 29 3b 0d |s = Left|(s, j);.|
|00004000| 0a 0d 0a 09 09 69 66 28 | 4c 65 66 74 28 73 2c 20 |.....if(|Left(s, |
|00004010| 31 29 20 3d 3d 20 22 5c | 22 22 29 0d 0a 09 09 09 |1) == "\|"").....|
|00004020| 73 20 3d 20 4d 69 64 28 | 73 2c 20 31 29 3b 0d 0a |s = Mid(|s, 1);..|
|00004030| 0d 0a 09 09 69 66 28 52 | 69 67 68 74 28 73 2c 20 |....if(R|ight(s, |
|00004040| 31 29 20 3d 3d 20 22 5c | 22 22 29 0d 0a 09 09 09 |1) == "\|"").....|
|00004050| 73 20 3d 20 4c 65 66 74 | 28 73 2c 20 4c 65 6e 28 |s = Left|(s, Len(|
|00004060| 73 29 20 2d 20 31 29 3b | 0d 0a 0d 0a 09 09 72 65 |s) - 1);|......re|
|00004070| 74 75 72 6e 20 73 3b 0d | 0a 09 7d 0d 0a 09 72 65 |turn s;.|..}...re|
|00004080| 74 75 72 6e 20 22 22 3b | 0d 0a 7d 0d 0a 0d 0a 66 |turn "";|..}....f|
|00004090| 75 6e 63 74 69 6f 6e 20 | 73 74 72 69 6e 67 20 47 |unction |string G|
|000040a0| 65 74 54 61 67 28 73 74 | 72 69 6e 67 20 48 54 4d |etTag(st|ring HTM|
|000040b0| 4c 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |L)..{...|local in|
|000040c0| 74 20 69 3b 0d 0a 0d 0a | 09 69 66 28 48 54 4d 4c |t i;....|.if(HTML|
|000040d0| 20 3d 3d 20 22 22 29 0d | 0a 09 09 72 65 74 75 72 | == "").|...retur|
|000040e0| 6e 20 22 22 3b 0d 0a 0d | 0a 09 48 54 4d 4c 20 3d |n "";...|..HTML =|
|000040f0| 20 4d 69 64 28 48 54 4d | 4c 2c 20 31 29 3b 20 2f | Mid(HTM|L, 1); /|
|00004100| 2f 20 6c 6f 73 65 20 3c | 0d 0a 0d 0a 09 69 20 3d |/ lose <|.....i =|
|00004110| 20 46 69 72 73 74 4d 61 | 74 63 68 69 6e 67 28 49 | FirstMa|tching(I|
|00004120| 6e 53 74 72 28 48 54 4d | 4c 2c 20 22 3e 22 29 2c |nStr(HTM|L, ">"),|
|00004130| 20 49 6e 53 74 72 28 48 | 54 4d 4c 2c 20 22 20 22 | InStr(H|TML, " "|
|00004140| 29 29 3b 0d 0a 09 69 66 | 28 69 20 3d 3d 20 2d 31 |));...if|(i == -1|
|00004150| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 43 61 70 73 |)....ret|urn Caps|
|00004160| 28 48 54 4d 4c 29 3b 0d | 0a 09 65 6c 73 65 0d 0a |(HTML);.|..else..|
|00004170| 09 09 72 65 74 75 72 6e | 20 43 61 70 73 28 4c 65 |..return| Caps(Le|
|00004180| 66 74 28 48 54 4d 4c 2c | 20 69 29 29 3b 0d 0a 7d |ft(HTML,| i));..}|
|00004190| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 43 6f 6c |....func|tion Col|
|000041a0| 6f 72 20 50 61 72 73 65 | 43 6f 6c 6f 72 28 73 74 |or Parse|Color(st|
|000041b0| 72 69 6e 67 20 53 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ring S).|.{...loc|
|000041c0| 61 6c 20 43 6f 6c 6f 72 | 20 43 3b 0d 0a 0d 0a 09 |al Color| C;.....|
|000041d0| 69 66 28 4c 65 66 74 28 | 53 2c 20 31 29 20 3d 3d |if(Left(|S, 1) ==|
|000041e0| 20 22 23 22 29 0d 0a 09 | 09 53 20 3d 20 4d 69 64 | "#")...|.S = Mid|
|000041f0| 28 53 2c 20 31 29 3b 0d | 0a 0d 0a 09 43 2e 52 20 |(S, 1);.|....C.R |
|00004200| 3d 20 31 36 20 2a 20 47 | 65 74 48 65 78 44 69 67 |= 16 * G|etHexDig|
|00004210| 69 74 28 4d 69 64 28 53 | 2c 20 30 2c 20 31 29 29 |it(Mid(S|, 0, 1))|
|00004220| 20 2b 20 47 65 74 48 65 | 78 44 69 67 69 74 28 4d | + GetHe|xDigit(M|
|00004230| 69 64 28 53 2c 20 31 2c | 20 31 29 29 3b 0d 0a 09 |id(S, 1,| 1));...|
|00004240| 43 2e 47 20 3d 20 31 36 | 20 2a 20 47 65 74 48 65 |C.G = 16| * GetHe|
|00004250| 78 44 69 67 69 74 28 4d | 69 64 28 53 2c 20 32 2c |xDigit(M|id(S, 2,|
|00004260| 20 31 29 29 20 2b 20 47 | 65 74 48 65 78 44 69 67 | 1)) + G|etHexDig|
|00004270| 69 74 28 4d 69 64 28 53 | 2c 20 33 2c 20 31 29 29 |it(Mid(S|, 3, 1))|
|00004280| 3b 0d 0a 09 43 2e 42 20 | 3d 20 31 36 20 2a 20 47 |;...C.B |= 16 * G|
|00004290| 65 74 48 65 78 44 69 67 | 69 74 28 4d 69 64 28 53 |etHexDig|it(Mid(S|
|000042a0| 2c 20 34 2c 20 31 29 29 | 20 2b 20 47 65 74 48 65 |, 4, 1))| + GetHe|
|000042b0| 78 44 69 67 69 74 28 4d | 69 64 28 53 2c 20 35 2c |xDigit(M|id(S, 5,|
|000042c0| 20 31 29 29 3b 0d 0a 0d | 0a 09 72 65 74 75 72 6e | 1));...|..return|
|000042d0| 20 43 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 | C;..}..|..functi|
|000042e0| 6f 6e 20 69 6e 74 20 47 | 65 74 48 65 78 44 69 67 |on int G|etHexDig|
|000042f0| 69 74 28 73 74 72 69 6e | 67 20 44 29 0d 0a 7b 0d |it(strin|g D)..{.|
|00004300| 0a 09 73 77 69 74 63 68 | 28 63 61 70 73 28 44 29 |..switch|(caps(D)|
|00004310| 29 0d 0a 09 7b 0d 0a 09 | 63 61 73 65 20 22 30 22 |)...{...|case "0"|
|00004320| 3a 20 72 65 74 75 72 6e | 20 30 3b 0d 0a 09 63 61 |: return| 0;...ca|
|00004330| 73 65 20 22 31 22 3a 20 | 72 65 74 75 72 6e 20 31 |se "1": |return 1|
|00004340| 3b 0d 0a 09 63 61 73 65 | 20 22 32 22 3a 20 72 65 |;...case| "2": re|
|00004350| 74 75 72 6e 20 32 3b 0d | 0a 09 63 61 73 65 20 22 |turn 2;.|..case "|
|00004360| 33 22 3a 20 72 65 74 75 | 72 6e 20 33 3b 0d 0a 09 |3": retu|rn 3;...|
|00004370| 63 61 73 65 20 22 34 22 | 3a 20 72 65 74 75 72 6e |case "4"|: return|
|00004380| 20 34 3b 0d 0a 09 63 61 | 73 65 20 22 35 22 3a 20 | 4;...ca|se "5": |
|00004390| 72 65 74 75 72 6e 20 35 | 3b 20 0d 0a 09 63 61 73 |return 5|; ...cas|
|000043a0| 65 20 22 36 22 3a 20 72 | 65 74 75 72 6e 20 36 3b |e "6": r|eturn 6;|
|000043b0| 20 0d 0a 09 63 61 73 65 | 20 22 37 22 3a 20 72 65 | ...case| "7": re|
|000043c0| 74 75 72 6e 20 37 3b 20 | 0d 0a 09 63 61 73 65 20 |turn 7; |...case |
|000043d0| 22 38 22 3a 20 72 65 74 | 75 72 6e 20 38 3b 20 0d |"8": ret|urn 8; .|
|000043e0| 0a 09 63 61 73 65 20 22 | 39 22 3a 20 72 65 74 75 |..case "|9": retu|
|000043f0| 72 6e 20 39 3b 20 0d 0a | 09 63 61 73 65 20 22 41 |rn 9; ..|.case "A|
|00004400| 22 3a 20 72 65 74 75 72 | 6e 20 31 30 3b 20 0d 0a |": retur|n 10; ..|
|00004410| 09 63 61 73 65 20 22 42 | 22 3a 20 72 65 74 75 72 |.case "B|": retur|
|00004420| 6e 20 31 31 3b 20 0d 0a | 09 63 61 73 65 20 22 43 |n 11; ..|.case "C|
|00004430| 22 3a 20 72 65 74 75 72 | 6e 20 31 32 3b 20 0d 0a |": retur|n 12; ..|
|00004440| 09 63 61 73 65 20 22 44 | 22 3a 20 72 65 74 75 72 |.case "D|": retur|
|00004450| 6e 20 31 33 3b 20 0d 0a | 09 63 61 73 65 20 22 45 |n 13; ..|.case "E|
|00004460| 22 3a 20 72 65 74 75 72 | 6e 20 31 34 3b 20 0d 0a |": retur|n 14; ..|
|00004470| 09 63 61 73 65 20 22 46 | 22 3a 20 72 65 74 75 72 |.case "F|": retur|
|00004480| 6e 20 31 35 3b 20 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |n 15; ..|.}.....r|
|00004490| 65 74 75 72 6e 20 30 3b | 0d 0a 7d 0d 0a 0d 0a 66 |eturn 0;|..}....f|
|000044a0| 75 6e 63 74 69 6f 6e 20 | 69 6e 74 20 46 69 72 73 |unction |int Firs|
|000044b0| 74 4d 61 74 63 68 69 6e | 67 28 69 6e 74 20 69 2c |tMatchin|g(int i,|
|000044c0| 20 69 6e 74 20 6a 29 0d | 0a 7b 0d 0a 09 69 66 28 | int j).|.{...if(|
|000044d0| 69 20 3d 3d 20 2d 31 29 | 0d 0a 09 09 72 65 74 75 |i == -1)|....retu|
|000044e0| 72 6e 20 6a 3b 0d 0a 0d | 0a 09 69 66 28 6a 20 3d |rn j;...|..if(j =|
|000044f0| 3d 20 2d 31 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |= -1)...|.return |
|00004500| 69 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 72 65 74 |i;...els|e....ret|
|00004510| 75 72 6e 20 4d 69 6e 28 | 69 2c 20 6a 29 3b 0d 0a |urn Min(|i, j);..|
|00004520| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 53 65 |}....fun|ction Se|
|00004530| 74 43 61 6e 76 61 73 53 | 74 79 6c 65 28 43 61 6e |tCanvasS|tyle(Can|
|00004540| 76 61 73 20 43 2c 20 48 | 54 4d 4c 53 74 79 6c 65 |vas C, H|TMLStyle|
|00004550| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 0d 0a | Current|Style)..|
|00004560| 7b 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |{...if(C|urrentSt|
|00004570| 79 6c 65 2e 62 4c 69 6e | 6b 29 0d 0a 09 09 43 2e |yle.bLin|k)....C.|
|00004580| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 4c 69 6e 6b |DrawColo|r = Link|
|00004590| 43 6f 6c 6f 72 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |Color;..|.else...|
|000045a0| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 43 |.C.DrawC|olor = C|
|000045b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 54 65 78 74 |urrentSt|yle.Text|
|000045c0| 43 6f 6c 6f 72 3b 0d 0a | 0d 0a 09 69 66 28 43 75 |Color;..|...if(Cu|
|000045d0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 48 65 61 64 |rrentSty|le.bHead|
|000045e0| 69 6e 67 29 0d 0a 09 09 | 43 2e 46 6f 6e 74 20 3d |ing)....|C.Font =|
|000045f0| 20 52 6f 6f 74 2e 46 6f | 6e 74 73 5b 46 5f 4c 61 | Root.Fo|nts[F_La|
|00004600| 72 67 65 42 6f 6c 64 5d | 3b 0d 0a 09 65 6c 73 65 |rgeBold]|;...else|
|00004610| 0d 0a 09 69 66 28 43 75 | 72 72 65 6e 74 53 74 79 |...if(Cu|rrentSty|
|00004620| 6c 65 2e 62 42 6f 6c 64 | 29 0d 0a 09 09 43 2e 46 |le.bBold|)....C.F|
|00004630| 6f 6e 74 20 3d 20 52 6f | 6f 74 2e 46 6f 6e 74 73 |ont = Ro|ot.Fonts|
|00004640| 5b 46 5f 42 6f 6c 64 5d | 3b 0d 0a 09 65 6c 73 65 |[F_Bold]|;...else|
|00004650| 0d 0a 09 09 43 2e 46 6f | 6e 74 20 3d 20 52 6f 6f |....C.Fo|nt = Roo|
|00004660| 74 2e 46 6f 6e 74 73 5b | 46 5f 4e 6f 72 6d 61 6c |t.Fonts[|F_Normal|
|00004670| 5d 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |];..}...|.functio|
|00004680| 6e 20 73 74 72 69 6e 67 | 20 57 72 69 74 65 53 74 |n string| WriteSt|
|00004690| 79 6c 65 54 65 78 74 28 | 48 54 4d 4c 53 74 79 6c |yleText(|HTMLStyl|
|000046a0| 65 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 2c 20 |e Curren|tStyle, |
|000046b0| 69 6e 74 20 43 68 61 72 | 43 6f 75 6e 74 29 0d 0a |int Char|Count)..|
|000046c0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|000046d0| 20 50 61 64 3b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 | Pad;...|local st|
|000046e0| 72 69 6e 67 20 54 65 6d | 70 3b 0d 0a 09 6c 6f 63 |ring Tem|p;...loc|
|000046f0| 61 6c 20 73 74 72 69 6e | 67 20 4f 75 74 70 75 74 |al strin|g Output|
|00004700| 3b 0d 0a 0d 0a 09 50 61 | 64 20 3d 20 22 30 30 30 |;.....Pa|d = "000|
|00004710| 30 22 3b 0d 0a 0d 0a 09 | 54 65 6d 70 20 3d 20 73 |0";.....|Temp = s|
|00004720| 74 72 69 6e 67 28 43 68 | 61 72 43 6f 75 6e 74 29 |tring(Ch|arCount)|
|00004730| 3b 0d 0a 09 4f 75 74 70 | 75 74 20 3d 20 4c 65 66 |;...Outp|ut = Lef|
|00004740| 74 28 50 61 64 2c 20 34 | 20 2d 20 4c 65 6e 28 54 |t(Pad, 4| - Len(T|
|00004750| 65 6d 70 29 29 20 24 20 | 54 65 6d 70 3b 0d 0a 09 |emp)) $ |Temp;...|
|00004760| 09 0d 0a 09 54 65 6d 70 | 20 3d 20 73 74 72 69 6e |....Temp| = strin|
|00004770| 67 28 4c 65 6e 28 43 75 | 72 72 65 6e 74 53 74 79 |g(Len(Cu|rrentSty|
|00004780| 6c 65 2e 4c 69 6e 6b 44 | 65 73 74 69 6e 61 74 69 |le.LinkD|estinati|
|00004790| 6f 6e 29 29 3b 0d 0a 09 | 4f 75 74 70 75 74 20 3d |on));...|Output =|
|000047a0| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 28 50 | Output |$ Left(P|
|000047b0| 61 64 2c 20 34 20 2d 20 | 4c 65 6e 28 54 65 6d 70 |ad, 4 - |Len(Temp|
|000047c0| 29 29 20 24 20 54 65 6d | 70 20 24 20 43 75 72 72 |)) $ Tem|p $ Curr|
|000047d0| 65 6e 74 53 74 79 6c 65 | 2e 4c 69 6e 6b 44 65 73 |entStyle|.LinkDes|
|000047e0| 74 69 6e 61 74 69 6f 6e | 3b 0d 0a 0d 0a 09 54 65 |tination|;.....Te|
|000047f0| 6d 70 20 3d 20 73 74 72 | 69 6e 67 28 43 75 72 72 |mp = str|ing(Curr|
|00004800| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|00004810| 6f 72 2e 52 29 3b 0d 0a | 09 4f 75 74 70 75 74 20 |or.R);..|.Output |
|00004820| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 28 |= Output| $ Left(|
|00004830| 50 61 64 2c 20 33 20 2d | 20 4c 65 6e 28 54 65 6d |Pad, 3 -| Len(Tem|
|00004840| 70 29 29 20 24 20 54 65 | 6d 70 3b 0d 0a 09 54 65 |p)) $ Te|mp;...Te|
|00004850| 6d 70 20 3d 20 73 74 72 | 69 6e 67 28 43 75 72 72 |mp = str|ing(Curr|
|00004860| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|00004870| 6f 72 2e 47 29 3b 0d 0a | 09 4f 75 74 70 75 74 20 |or.G);..|.Output |
|00004880| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 28 |= Output| $ Left(|
|00004890| 50 61 64 2c 20 33 20 2d | 20 4c 65 6e 28 54 65 6d |Pad, 3 -| Len(Tem|
|000048a0| 70 29 29 20 24 20 54 65 | 6d 70 3b 0d 0a 09 54 65 |p)) $ Te|mp;...Te|
|000048b0| 6d 70 20 3d 20 73 74 72 | 69 6e 67 28 43 75 72 72 |mp = str|ing(Curr|
|000048c0| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|000048d0| 6f 72 2e 42 29 3b 0d 0a | 09 4f 75 74 70 75 74 20 |or.B);..|.Output |
|000048e0| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 28 |= Output| $ Left(|
|000048f0| 50 61 64 2c 20 33 20 2d | 20 4c 65 6e 28 54 65 6d |Pad, 3 -| Len(Tem|
|00004900| 70 29 29 20 24 20 54 65 | 6d 70 3b 0d 0a 0d 0a 09 |p)) $ Te|mp;.....|
|00004910| 54 65 6d 70 20 3d 20 73 | 74 72 69 6e 67 28 43 75 |Temp = s|tring(Cu|
|00004920| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00004930| 6f 72 2e 52 29 3b 0d 0a | 09 4f 75 74 70 75 74 20 |or.R);..|.Output |
|00004940| 3d 20 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 28 |= Output| $ Left(|
|00004950| 50 61 64 2c 20 33 20 2d | 20 4c 65 6e 28 54 65 6d |Pad, 3 -| Len(Tem|
|00004960| 70 29 29 20 24 20 54 65 | 6d 70 3b 0d 0a 09 54 65 |p)) $ Te|mp;...Te|
|00004970| 6d 70 20 3d 20 73 74 72 | 69 6e 67 28 43 75 72 72 |mp = str|ing(Curr|
|00004980| 65 6e 74 53 74 79 6c 65 | 2e 42 47 43 6f 6c 6f 72 |entStyle|.BGColor|
|00004990| 2e 47 29 3b 0d 0a 09 4f | 75 74 70 75 74 20 3d 20 |.G);...O|utput = |
|000049a0| 4f 75 74 70 75 74 20 24 | 20 4c 65 66 74 28 50 61 |Output $| Left(Pa|
|000049b0| 64 2c 20 33 20 2d 20 4c | 65 6e 28 54 65 6d 70 29 |d, 3 - L|en(Temp)|
|000049c0| 29 20 24 20 54 65 6d 70 | 3b 0d 0a 09 54 65 6d 70 |) $ Temp|;...Temp|
|000049d0| 20 3d 20 73 74 72 69 6e | 67 28 43 75 72 72 65 6e | = strin|g(Curren|
|000049e0| 74 53 74 79 6c 65 2e 42 | 47 43 6f 6c 6f 72 2e 42 |tStyle.B|GColor.B|
|000049f0| 29 3b 0d 0a 09 4f 75 74 | 70 75 74 20 3d 20 4f 75 |);...Out|put = Ou|
|00004a00| 74 70 75 74 20 24 20 4c | 65 66 74 28 50 61 64 2c |tput $ L|eft(Pad,|
|00004a10| 20 33 20 2d 20 4c 65 6e | 28 54 65 6d 70 29 29 20 | 3 - Len|(Temp)) |
|00004a20| 24 20 54 65 6d 70 3b 0d | 0a 0d 0a 09 69 66 28 43 |$ Temp;.|....if(C|
|00004a30| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 43 65 6e |urrentSt|yle.bCen|
|00004a40| 74 65 72 29 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |ter)....|Output =|
|00004a50| 20 4f 75 74 70 75 74 20 | 24 20 22 54 22 3b 0d 0a | Output |$ "T";..|
|00004a60| 09 65 6c 73 65 0d 0a 09 | 09 4f 75 74 70 75 74 20 |.else...|.Output |
|00004a70| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 46 22 3b 0d |= Output| $ "F";.|
|00004a80| 0a 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |....if(C|urrentSt|
|00004a90| 79 6c 65 2e 62 4c 69 6e | 6b 29 0d 0a 09 09 4f 75 |yle.bLin|k)....Ou|
|00004aa0| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00004ab0| 22 54 22 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 4f |"T";...e|lse....O|
|00004ac0| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00004ad0| 20 22 46 22 3b 0d 0a 0d | 0a 09 69 66 28 43 75 72 | "F";...|..if(Cur|
|00004ae0| 72 65 6e 74 53 74 79 6c | 65 2e 62 55 6e 64 65 72 |rentStyl|e.bUnder|
|00004af0| 6c 69 6e 65 29 0d 0a 09 | 09 4f 75 74 70 75 74 20 |line)...|.Output |
|00004b00| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 54 22 3b 0d |= Output| $ "T";.|
|00004b10| 0a 09 65 6c 73 65 0d 0a | 09 09 4f 75 74 70 75 74 |..else..|..Output|
|00004b20| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 22 46 22 3b | = Outpu|t $ "F";|
|00004b30| 0d 0a 0d 0a 09 69 66 28 | 43 75 72 72 65 6e 74 53 |.....if(|CurrentS|
|00004b40| 74 79 6c 65 2e 62 4e 6f | 42 52 29 0d 0a 09 09 4f |tyle.bNo|BR)....O|
|00004b50| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00004b60| 20 22 54 22 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 | "T";...|else....|
|00004b70| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004b80| 24 20 22 46 22 3b 0d 0a | 0d 0a 09 69 66 28 43 75 |$ "F";..|...if(Cu|
|00004b90| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 48 65 61 64 |rrentSty|le.bHead|
|00004ba0| 69 6e 67 29 0d 0a 09 09 | 4f 75 74 70 75 74 20 3d |ing)....|Output =|
|00004bb0| 20 4f 75 74 70 75 74 20 | 24 20 22 54 22 3b 0d 0a | Output |$ "T";..|
|00004bc0| 09 65 6c 73 65 0d 0a 09 | 09 4f 75 74 70 75 74 20 |.else...|.Output |
|00004bd0| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 46 22 3b 0d |= Output| $ "F";.|
|00004be0| 0a 0d 0a 09 69 66 28 43 | 75 72 72 65 6e 74 53 74 |....if(C|urrentSt|
|00004bf0| 79 6c 65 2e 62 42 6f 6c | 64 29 0d 0a 09 09 4f 75 |yle.bBol|d)....Ou|
|00004c00| 74 70 75 74 20 3d 20 4f | 75 74 70 75 74 20 24 20 |tput = O|utput $ |
|00004c10| 22 54 22 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 4f |"T";...e|lse....O|
|00004c20| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00004c30| 20 22 46 22 3b 0d 0a 0d | 0a 09 69 66 28 43 75 72 | "F";...|..if(Cur|
|00004c40| 72 65 6e 74 53 74 79 6c | 65 2e 62 42 6c 69 6e 6b |rentStyl|e.bBlink|
|00004c50| 29 0d 0a 09 09 4f 75 74 | 70 75 74 20 3d 20 4f 75 |)....Out|put = Ou|
|00004c60| 74 70 75 74 20 24 20 22 | 54 22 3b 0d 0a 09 65 6c |tput $ "|T";...el|
|00004c70| 73 65 0d 0a 09 09 4f 75 | 74 70 75 74 20 3d 20 4f |se....Ou|tput = O|
|00004c80| 75 74 70 75 74 20 24 20 | 22 46 22 3b 0d 0a 0d 0a |utput $ |"F";....|
|00004c90| 09 72 65 74 75 72 6e 20 | 4f 75 74 70 75 74 3b 0d |.return |Output;.|
|00004ca0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 69 |.}....fu|nction i|
|00004cb0| 6e 74 20 52 65 61 64 53 | 74 79 6c 65 54 65 78 74 |nt ReadS|tyleText|
|00004cc0| 28 73 74 72 69 6e 67 20 | 53 74 79 6c 65 53 74 72 |(string |StyleStr|
|00004cd0| 69 6e 67 2c 20 6f 75 74 | 20 69 6e 74 20 53 74 79 |ing, out| int Sty|
|00004ce0| 6c 65 50 6f 73 2c 20 6f | 75 74 20 48 54 4d 4c 53 |lePos, o|ut HTMLS|
|00004cf0| 74 79 6c 65 20 43 75 72 | 72 65 6e 74 53 74 79 6c |tyle Cur|rentStyl|
|00004d00| 65 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |e)..{...|local st|
|00004d10| 72 69 6e 67 20 54 65 6d | 70 3b 0d 0a 09 6c 6f 63 |ring Tem|p;...loc|
|00004d20| 61 6c 20 69 6e 74 20 43 | 68 61 72 43 6f 75 6e 74 |al int C|harCount|
|00004d30| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |;...loca|l int i;|
|00004d40| 09 0d 0a 0d 0a 09 43 68 | 61 72 43 6f 75 6e 74 20 |......Ch|arCount |
|00004d50| 3d 20 49 6e 74 28 4d 69 | 64 28 53 74 79 6c 65 53 |= Int(Mi|d(StyleS|
|00004d60| 74 72 69 6e 67 2c 20 53 | 74 79 6c 65 50 6f 73 2c |tring, S|tylePos,|
|00004d70| 20 34 29 29 3b 0d 0a 09 | 53 74 79 6c 65 50 6f 73 | 4));...|StylePos|
|00004d80| 20 2b 3d 20 34 3b 0d 0a | 0d 0a 09 69 20 3d 20 49 | += 4;..|...i = I|
|00004d90| 6e 74 28 4d 69 64 28 53 | 74 79 6c 65 53 74 72 69 |nt(Mid(S|tyleStri|
|00004da0| 6e 67 2c 20 53 74 79 6c | 65 50 6f 73 2c 20 34 29 |ng, Styl|ePos, 4)|
|00004db0| 29 3b 0d 0a 09 53 74 79 | 6c 65 50 6f 73 20 2b 3d |);...Sty|lePos +=|
|00004dc0| 20 34 3b 0d 0a 09 09 0d | 0a 09 43 75 72 72 65 6e | 4;.....|..Curren|
|00004dd0| 74 53 74 79 6c 65 2e 4c | 69 6e 6b 44 65 73 74 69 |tStyle.L|inkDesti|
|00004de0| 6e 61 74 69 6f 6e 20 3d | 20 4d 69 64 28 53 74 79 |nation =| Mid(Sty|
|00004df0| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00004e00| 6f 73 2c 20 69 29 3b 0d | 0a 09 53 74 79 6c 65 50 |os, i);.|..StyleP|
|00004e10| 6f 73 20 2b 3d 20 69 3b | 0d 0a 0d 0a 09 43 75 72 |os += i;|.....Cur|
|00004e20| 72 65 6e 74 53 74 79 6c | 65 2e 54 65 78 74 43 6f |rentStyl|e.TextCo|
|00004e30| 6c 6f 72 2e 52 20 3d 20 | 49 6e 74 28 4d 69 64 28 |lor.R = |Int(Mid(|
|00004e40| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|00004e50| 6c 65 50 6f 73 2c 20 33 | 29 29 3b 0d 0a 09 53 74 |lePos, 3|));...St|
|00004e60| 79 6c 65 50 6f 73 20 2b | 3d 20 33 3b 0d 0a 09 43 |ylePos +|= 3;...C|
|00004e70| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 54 65 78 74 |urrentSt|yle.Text|
|00004e80| 43 6f 6c 6f 72 2e 47 20 | 3d 20 49 6e 74 28 4d 69 |Color.G |= Int(Mi|
|00004e90| 64 28 53 74 79 6c 65 53 | 74 72 69 6e 67 2c 20 53 |d(StyleS|tring, S|
|00004ea0| 74 79 6c 65 50 6f 73 2c | 20 33 29 29 3b 0d 0a 09 |tylePos,| 3));...|
|00004eb0| 53 74 79 6c 65 50 6f 73 | 20 2b 3d 20 33 3b 0d 0a |StylePos| += 3;..|
|00004ec0| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 54 65 |.Current|Style.Te|
|00004ed0| 78 74 43 6f 6c 6f 72 2e | 42 20 3d 20 49 6e 74 28 |xtColor.|B = Int(|
|00004ee0| 4d 69 64 28 53 74 79 6c | 65 53 74 72 69 6e 67 2c |Mid(Styl|eString,|
|00004ef0| 20 53 74 79 6c 65 50 6f | 73 2c 20 33 29 29 3b 0d | StylePo|s, 3));.|
|00004f00| 0a 09 53 74 79 6c 65 50 | 6f 73 20 2b 3d 20 33 3b |..StyleP|os += 3;|
|00004f10| 0d 0a 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |.....Cur|rentStyl|
|00004f20| 65 2e 42 47 43 6f 6c 6f | 72 2e 52 20 3d 20 49 6e |e.BGColo|r.R = In|
|00004f30| 74 28 4d 69 64 28 53 74 | 79 6c 65 53 74 72 69 6e |t(Mid(St|yleStrin|
|00004f40| 67 2c 20 53 74 79 6c 65 | 50 6f 73 2c 20 33 29 29 |g, Style|Pos, 3))|
|00004f50| 3b 0d 0a 09 53 74 79 6c | 65 50 6f 73 20 2b 3d 20 |;...Styl|ePos += |
|00004f60| 33 3b 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |3;...Cur|rentStyl|
|00004f70| 65 2e 42 47 43 6f 6c 6f | 72 2e 47 20 3d 20 49 6e |e.BGColo|r.G = In|
|00004f80| 74 28 4d 69 64 28 53 74 | 79 6c 65 53 74 72 69 6e |t(Mid(St|yleStrin|
|00004f90| 67 2c 20 53 74 79 6c 65 | 50 6f 73 2c 20 33 29 29 |g, Style|Pos, 3))|
|00004fa0| 3b 0d 0a 09 53 74 79 6c | 65 50 6f 73 20 2b 3d 20 |;...Styl|ePos += |
|00004fb0| 33 3b 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |3;...Cur|rentStyl|
|00004fc0| 65 2e 42 47 43 6f 6c 6f | 72 2e 42 20 3d 20 49 6e |e.BGColo|r.B = In|
|00004fd0| 74 28 4d 69 64 28 53 74 | 79 6c 65 53 74 72 69 6e |t(Mid(St|yleStrin|
|00004fe0| 67 2c 20 53 74 79 6c 65 | 50 6f 73 2c 20 33 29 29 |g, Style|Pos, 3))|
|00004ff0| 3b 0d 0a 09 53 74 79 6c | 65 50 6f 73 20 2b 3d 20 |;...Styl|ePos += |
|00005000| 33 3b 0d 0a 0d 0a 09 43 | 75 72 72 65 6e 74 53 74 |3;.....C|urrentSt|
|00005010| 79 6c 65 2e 62 43 65 6e | 74 65 72 20 3d 20 4d 69 |yle.bCen|ter = Mi|
|00005020| 64 28 53 74 79 6c 65 53 | 74 72 69 6e 67 2c 20 53 |d(StyleS|tring, S|
|00005030| 74 79 6c 65 50 6f 73 2b | 2b 2c 20 31 29 20 3d 3d |tylePos+|+, 1) ==|
|00005040| 20 22 54 22 3b 0d 0a 09 | 43 75 72 72 65 6e 74 53 | "T";...|CurrentS|
|00005050| 74 79 6c 65 2e 62 4c 69 | 6e 6b 20 3d 20 4d 69 64 |tyle.bLi|nk = Mid|
|00005060| 28 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |(StyleSt|ring, St|
|00005070| 79 6c 65 50 6f 73 2b 2b | 2c 20 31 29 20 3d 3d 20 |ylePos++|, 1) == |
|00005080| 22 54 22 3b 0d 0a 09 43 | 75 72 72 65 6e 74 53 74 |"T";...C|urrentSt|
|00005090| 79 6c 65 2e 62 55 6e 64 | 65 72 6c 69 6e 65 20 3d |yle.bUnd|erline =|
|000050a0| 20 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 | Mid(Sty|leString|
|000050b0| 2c 20 53 74 79 6c 65 50 | 6f 73 2b 2b 2c 20 31 29 |, StyleP|os++, 1)|
|000050c0| 20 3d 3d 20 22 54 22 3b | 0d 0a 09 43 75 72 72 65 | == "T";|...Curre|
|000050d0| 6e 74 53 74 79 6c 65 2e | 62 4e 6f 42 52 20 3d 20 |ntStyle.|bNoBR = |
|000050e0| 4d 69 64 28 53 74 79 6c | 65 53 74 72 69 6e 67 2c |Mid(Styl|eString,|
|000050f0| 20 53 74 79 6c 65 50 6f | 73 2b 2b 2c 20 31 29 20 | StylePo|s++, 1) |
|00005100| 3d 3d 20 22 54 22 3b 0d | 0a 09 43 75 72 72 65 6e |== "T";.|..Curren|
|00005110| 74 53 74 79 6c 65 2e 62 | 48 65 61 64 69 6e 67 20 |tStyle.b|Heading |
|00005120| 3d 20 4d 69 64 28 53 74 | 79 6c 65 53 74 72 69 6e |= Mid(St|yleStrin|
|00005130| 67 2c 20 53 74 79 6c 65 | 50 6f 73 2b 2b 2c 20 31 |g, Style|Pos++, 1|
|00005140| 29 20 3d 3d 20 22 54 22 | 3b 0d 0a 09 43 75 72 72 |) == "T"|;...Curr|
|00005150| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6f 6c 64 20 3d |entStyle|.bBold =|
|00005160| 20 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 | Mid(Sty|leString|
|00005170| 2c 20 53 74 79 6c 65 50 | 6f 73 2b 2b 2c 20 31 29 |, StyleP|os++, 1)|
|00005180| 20 3d 3d 20 22 54 22 3b | 0d 0a 09 43 75 72 72 65 | == "T";|...Curre|
|00005190| 6e 74 53 74 79 6c 65 2e | 62 42 6c 69 6e 6b 20 3d |ntStyle.|bBlink =|
|000051a0| 20 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 | Mid(Sty|leString|
|000051b0| 2c 20 53 74 79 6c 65 50 | 6f 73 2b 2b 2c 20 31 29 |, StyleP|os++, 1)|
|000051c0| 20 3d 3d 20 22 54 22 3b | 0d 0a 0d 0a 09 72 65 74 | == "T";|.....ret|
|000051d0| 75 72 6e 20 43 68 61 72 | 43 6f 75 6e 74 3b 0d 0a |urn Char|Count;..|
|000051e0| 7d 0d 0a 0d 0a 00 | |}..... | |
+--------+-------------------------+-------------------------+--------+--------+