ZealOS/docs/System/DolDoc/DocWidgetWiz.CC.html
TomAwezome dbf8647d59 Fixed non-writable drive throw on F5 and Ctrl-S.
Added top & right borders to RawDr.
Improved spacing in some debug and compiler reporting.
Fixed RawPutChar and EdLite tab width.
Fixed Ui missing '0x' prefix syntax highlighter bug.
Added 32BitPaint demo.
2021-07-14 18:38:02 -04:00

1339 lines
149 KiB
HTML
Executable file

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V0.08">
<style type="text/css">
body {background-color:#000000;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>&quot;DolDoc/Misc&quot;</span><span class=cF0>
<a name="l2"></a>
<a name="l3"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cFB>ctrl_L_footer</span><span class=cF0> =
<a name="l4"></a> </span><span class=cF6>&quot;\n$MU-X+Q,\&quot;Abort\&quot;,LE=DOCM_CANCEL$\n&quot;</span><span class=cF0>
<a name="l5"></a> </span><span class=cF6>&quot;\n\n$LK+PU,\&quot;Click for Help\&quot;,A=\&quot;FI:::/Doc/Widget.DD\&quot;$\n&quot;</span><span class=cF0>;
<a name="l6"></a>
<a name="l7"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpLinkType</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> include_anchor)
<a name="l8"></a>{
<a name="l9"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l10"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc = </span><span class=cF5>DocNew</span><span class=cF0>;
<a name="l11"></a>
<a name="l12"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;Link Type Menu\&quot;$\n&quot;</span><span class=cF0>
<a name="l13"></a> </span><span class=cF6>&quot;\n$LTBLUE$$MU,\&quot;To file\&quot;,LE=LK_FILE$\n&quot;</span><span class=cF0>
<a name="l14"></a> </span><span class=cF6>&quot;$MU,\&quot;To anchor in file\&quot;,LE=LK_FILE_ANCHOR$\n&quot;</span><span class=cF0>
<a name="l15"></a> </span><span class=cF6>&quot;$MU,\&quot;To str in file\&quot;,LE=LK_FILE_FIND$\n&quot;</span><span class=cF0>
<a name="l16"></a> </span><span class=cF6>&quot;$MU,\&quot;To line in file\&quot;,LE=LK_FILE_LINE$\n&quot;</span><span class=cF0>
<a name="l17"></a> </span><span class=cF6>&quot;$MU,\&quot;To man page\&quot;,LE=LK_MAN_PAGE$\n&quot;</span><span class=cF0>
<a name="l18"></a> </span><span class=cF6>&quot;$MU,\&quot;To plain-text file\&quot;,LE=LK_PLAIN$\n&quot;</span><span class=cF0>
<a name="l19"></a> </span><span class=cF6>&quot;$MU,\&quot;To Bible chapter line and verse\&quot;,LE=LK_BIBLE_FIND$\n&quot;</span><span class=cF0>
<a name="l20"></a> </span><span class=cF6>&quot;$MU,\&quot;To str in plain-text file\&quot;,LE=LK_PLAIN_FIND$\n&quot;</span><span class=cF0>
<a name="l21"></a> </span><span class=cF6>&quot;$MU,\&quot;To line in plain-text file\&quot;,LE=LK_PLAIN_LINE$\n&quot;</span><span class=cF0>
<a name="l22"></a> </span><span class=cF6>&quot;$MU,\&quot;To Dictionary Definition\&quot;,LE=LK_DEF$\n&quot;</span><span class=cF0>
<a name="l23"></a> </span><span class=cF6>&quot;$MU,\&quot;To Help Index\&quot;,LE=LK_HELP_INDEX$\n&quot;</span><span class=cF0>
<a name="l24"></a> </span><span class=cF6>&quot;$MU,\&quot;To Addr\&quot;,LE=LK_ADDR$\n&quot;</span><span class=cF0>);
<a name="l25"></a>
<a name="l26"></a> </span><span class=cF1>if</span><span class=cF0> (include_anchor)
<a name="l27"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$MU,\&quot;Place Anchor\&quot;,LE=LK_PLACE_ANCHOR$\n&quot;</span><span class=cF0>);
<a name="l28"></a>
<a name="l29"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l30"></a> i = </span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
<a name="l31"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
<a name="l32"></a>
<a name="l33"></a> </span><span class=cF1>return</span><span class=cF0> i;
<a name="l34"></a>}
<a name="l35"></a>
<a name="l36"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdFileLink</span><span class=cF0>
<a name="l37"></a>{
<a name="l38"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l39"></a> file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l40"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l41"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>];
<a name="l42"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l43"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l44"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l45"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l46"></a> hide;
<a name="l47"></a>};
<a name="l48"></a>
<a name="l49"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdFileAnchorLink</span><span class=cF0>
<a name="l50"></a>{
<a name="l51"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l52"></a> file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l53"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l54"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Anchor Label :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l55"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l56"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l57"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l58"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l59"></a> hide;
<a name="l60"></a>};
<a name="l61"></a>
<a name="l62"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdFileFindLink</span><span class=cF0>
<a name="l63"></a>{
<a name="l64"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l65"></a> file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l66"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l67"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Str :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l68"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>&quot;$DA-TRM,A=\&quot;Occurrence Num:%04d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l69"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l70"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l71"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l72"></a> hide;
<a name="l73"></a>};
<a name="l74"></a>
<a name="l75"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdFileLineLink</span><span class=cF0>
<a name="l76"></a>{
<a name="l77"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l78"></a> file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l79"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l80"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>];
<a name="l81"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>&quot;$DA-TRM,A=\&quot;Line Num :%04d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l82"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l83"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l84"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l85"></a> hide;
<a name="l86"></a>};
<a name="l87"></a>
<a name="l88"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdManPageLink</span><span class=cF0>
<a name="l89"></a>{
<a name="l90"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l91"></a> file[</span><span class=cFE>512</span><span class=cF0>];
<a name="l92"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l93"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Label :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l94"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l95"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l96"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l97"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l98"></a> hide;
<a name="l99"></a>};
<a name="l100"></a>
<a name="l101"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdAddrLink</span><span class=cF0>
<a name="l102"></a>{
<a name="l103"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l104"></a> file[</span><span class=cFE>512</span><span class=cF0>];
<a name="l105"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l106"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Addr Exp :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l107"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>&quot;$DA-TRM,A=\&quot;Bin Size :%04d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l108"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l109"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l110"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l111"></a> hide;
<a name="l112"></a>};
<a name="l113"></a>
<a name="l114"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdPlaceAnchor</span><span class=cF0>
<a name="l115"></a>{
<a name="l116"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l117"></a> file[</span><span class=cFE>512</span><span class=cF0>];
<a name="l118"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l119"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Anchor Label :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l120"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l121"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l122"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up,
<a name="l123"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l124"></a> hide format </span><span class=cF6>&quot;$CB,\&quot;Hide\&quot;$\n&quot;</span><span class=cF0>;
<a name="l125"></a>};
<a name="l126"></a>
<a name="l127"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdBibleLink</span><span class=cF0>
<a name="l128"></a>{
<a name="l129"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l130"></a> file[</span><span class=cFE>512</span><span class=cF0>];
<a name="l131"></a> </span><span class=cF9>I64</span><span class=cF0> book format </span><span class=cF6>&quot;$LS,D=\&quot;ST_BIBLE_BOOKS\&quot;$\n&quot;</span><span class=cF0>;
<a name="l132"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Chapter Verse :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l133"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l134"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l135"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l136"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l137"></a> hide;
<a name="l138"></a>};
<a name="l139"></a>
<a name="l140"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdDefLink</span><span class=cF0>
<a name="l141"></a>{
<a name="l142"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l143"></a> file[</span><span class=cFE>512</span><span class=cF0>];
<a name="l144"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l145"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Word :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l146"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>&quot;$DA-TRM,A=\&quot;Def Num :%4d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l147"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l148"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l149"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l150"></a> hide;
<a name="l151"></a>};
<a name="l152"></a>
<a name="l153"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdProject</span><span class=cF0>
<a name="l154"></a>{
<a name="l155"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l156"></a> file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l157"></a> </span><span class=cF9>I64</span><span class=cF0> book;
<a name="l158"></a> </span><span class=cF1>U8</span><span class=cF0> aux[</span><span class=cFE>512</span><span class=cF0>];
<a name="l159"></a> </span><span class=cF9>I64</span><span class=cF0> num;
<a name="l160"></a> </span><span class=cF1>U8</span><span class=cF0> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l161"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l162"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>,
<a name="l163"></a> hide;
<a name="l164"></a>};
<a name="l165"></a>
<a name="l166"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>GetLink</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> type, </span><span class=cF1>U8</span><span class=cF0> **_tag, </span><span class=cF1>U8</span><span class=cF0> **_link, </span><span class=cF1>Bool</span><span class=cF0> *_pop_up, </span><span class=cF1>Bool</span><span class=cF0> *_quote, </span><span class=cF1>U8</span><span class=cF0> **_html_link)
<a name="l167"></a>{
<a name="l168"></a> </span><span class=cF9>CEdFileLink</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdFileLink</span><span class=cF7>)</span><span class=cF0>);
<a name="l169"></a> </span><span class=cF1>Bool</span><span class=cF0> res = </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l170"></a>
<a name="l171"></a> </span><span class=cF1>if</span><span class=cF0> (type &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l172"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l173"></a> e-&gt;num = </span><span class=cFE>1</span><span class=cF0>;
<a name="l174"></a> </span><span class=cF1>switch</span><span class=cF0> (type)
<a name="l175"></a> {
<a name="l176"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_FILE</span><span class=cF0>:
<a name="l177"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l178"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l179"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l180"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l181"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;file);
<a name="l182"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l183"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l184"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;FI:%s&quot;</span><span class=cF0>, e-&gt;file);
<a name="l185"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l186"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l187"></a>
<a name="l188"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_PLAIN</span><span class=cF0>:
<a name="l189"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l190"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l191"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l192"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l193"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;file);
<a name="l194"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l195"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l196"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;PI:%s&quot;</span><span class=cF0>, e-&gt;file);
<a name="l197"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l198"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l199"></a>
<a name="l200"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_FILE_ANCHOR</span><span class=cF0>:
<a name="l201"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdFileAnchorLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l202"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l203"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l204"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l205"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l206"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l207"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l208"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;FA:%s,%s&quot;</span><span class=cF0>, e-&gt;file, e-&gt;aux);
<a name="l209"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l210"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l211"></a>
<a name="l212"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_FILE_FIND</span><span class=cF0>:
<a name="l213"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdFileFindLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l214"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l215"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l216"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;num == </span><span class=cFE>1</span><span class=cF0>)
<a name="l217"></a> {
<a name="l218"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l219"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l220"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l221"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l222"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;FF:%s,%s&quot;</span><span class=cF0>, e-&gt;file, e-&gt;aux);
<a name="l223"></a> }
<a name="l224"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l225"></a> {
<a name="l226"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l227"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l228"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l229"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l230"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;FF:%s,%s:%d&quot;</span><span class=cF0>, e-&gt;file, e-&gt;aux, e-&gt;num);
<a name="l231"></a> }
<a name="l232"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l233"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l234"></a>
<a name="l235"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_PLAIN_FIND</span><span class=cF0>:
<a name="l236"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdFileFindLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l237"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l238"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l239"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;num == </span><span class=cFE>1</span><span class=cF0>)
<a name="l240"></a> {
<a name="l241"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l242"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l243"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l244"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l245"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;PF:%s,%s&quot;</span><span class=cF0>, e-&gt;file, e-&gt;aux);
<a name="l246"></a> }
<a name="l247"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l248"></a> {
<a name="l249"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l250"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l251"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l252"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l253"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;PF:%s,%s:%d&quot;</span><span class=cF0>, e-&gt;file, e-&gt;aux, e-&gt;num);
<a name="l254"></a> }
<a name="l255"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l256"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l257"></a>
<a name="l258"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_FILE_LINE</span><span class=cF0>:
<a name="l259"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdFileLineLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l260"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l261"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l262"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l263"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;file);
<a name="l264"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l265"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l266"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;FL:%s,%d&quot;</span><span class=cF0>, e-&gt;file, e-&gt;num);
<a name="l267"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l268"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l269"></a>
<a name="l270"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_PLAIN_LINE</span><span class=cF0>:
<a name="l271"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdFileLineLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l272"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l273"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l274"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l275"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;file);
<a name="l276"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l277"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l278"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;PL:%s,%d&quot;</span><span class=cF0>, e-&gt;file, e-&gt;num);
<a name="l279"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l280"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l281"></a>
<a name="l282"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_MAN_PAGE</span><span class=cF0>:
<a name="l283"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdManPageLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l284"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l285"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l286"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l287"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l288"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l289"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l290"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;MN:%s&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l291"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l292"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l293"></a>
<a name="l294"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_PLACE_ANCHOR</span><span class=cF0>:
<a name="l295"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdPlaceAnchor&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l296"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l297"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l298"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l299"></a> {
<a name="l300"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;hide)
<a name="l301"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(</span><span class=cF6>&quot;&quot;</span><span class=cF0>);
<a name="l302"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l303"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l304"></a> }
<a name="l305"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l306"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l307"></a> *_link = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l308"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l309"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l310"></a>
<a name="l311"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_BIBLE_FIND</span><span class=cF0>:
<a name="l312"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdBibleLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l313"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l314"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l315"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l316"></a> *_tag = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%Z,%s&quot;</span><span class=cF0>, e-&gt;book, </span><span class=cF6>&quot;ST_BIBLE_BOOKS&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l317"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l318"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l319"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;BF:%Z,%s&quot;</span><span class=cF0>, e-&gt;book, </span><span class=cF6>&quot;ST_BIBLE_BOOKS&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l320"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l321"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l322"></a>
<a name="l323"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_DEF</span><span class=cF0>:
<a name="l324"></a> e-&gt;num = -</span><span class=cFE>1</span><span class=cF0>;
<a name="l325"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdDefLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l326"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l327"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l328"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l329"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l330"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l331"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l332"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;num &lt; </span><span class=cFE>0</span><span class=cF0>)
<a name="l333"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;DN:%s&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l334"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l335"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;DN:%s,%d&quot;</span><span class=cF0>, e-&gt;aux, e-&gt;num);
<a name="l336"></a>
<a name="l337"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l338"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l339"></a>
<a name="l340"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_HELP_INDEX</span><span class=cF0>:
<a name="l341"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdManPageLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l342"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l343"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l344"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l345"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l346"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l347"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l348"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;HI:%s&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l349"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l350"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l351"></a>
<a name="l352"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_ADDR</span><span class=cF0>:
<a name="l353"></a> e-&gt;num = </span><span class=cF3>DEFAULT_ADDR_LINK_BIN_SIZE</span><span class=cF0>;
<a name="l354"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdAddrLink&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l355"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l356"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l357"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;num == </span><span class=cF3>DEFAULT_ADDR_LINK_BIN_SIZE</span><span class=cF0>)
<a name="l358"></a> {
<a name="l359"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l360"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;aux);
<a name="l361"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l362"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l363"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;AD:%s&quot;</span><span class=cF0>, e-&gt;aux);
<a name="l364"></a> }
<a name="l365"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l366"></a> {
<a name="l367"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l368"></a> *_tag = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%s,%d&quot;</span><span class=cF0>, e-&gt;aux, e-&gt;num);
<a name="l369"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l370"></a> *_tag = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;tag);
<a name="l371"></a> *_link = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;AD:%s,%d&quot;</span><span class=cF0>, e-&gt;aux, e-&gt;num);
<a name="l372"></a> }
<a name="l373"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l374"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l375"></a> }
<a name="l376"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l377"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;html_link)
<a name="l378"></a> *_html_link = </span><span class=cF5>StrNew</span><span class=cF0>(e-&gt;html_link);
<a name="l379"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l380"></a> *_html_link = </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l381"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;pop_up)
<a name="l382"></a> *_pop_up = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l383"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l384"></a> *_pop_up = </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l385"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;quote)
<a name="l386"></a> *_quote = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l387"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l388"></a> *_quote = </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l389"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l390"></a>
<a name="l391"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l392"></a>}
<a name="l393"></a>
<a name="l394"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsLink</span><span class=cF0>()
<a name="l395"></a>{
<a name="l396"></a> </span><span class=cF1>U8</span><span class=cF0> *tag = </span><span class=cF3>NULL</span><span class=cF0>, *link = </span><span class=cF3>NULL</span><span class=cF0>, *st = </span><span class=cF3>NULL</span><span class=cF0>, *html_link = </span><span class=cF3>NULL</span><span class=cF0>, *pop_up_st;
<a name="l397"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up = </span><span class=cF3>FALSE</span><span class=cF0>, quote = </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l398"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpLinkType</span><span class=cF0>(</span><span class=cF3>TRUE</span><span class=cF0>);
<a name="l399"></a>
<a name="l400"></a> </span><span class=cF1>if</span><span class=cF0> (type &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l401"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l402"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GetLink</span><span class=cF7>(</span><span class=cF0>type, &amp;tag, &amp;link, &amp;pop_up, &amp;quote, &amp;html_link</span><span class=cF7>)</span><span class=cF0>)
<a name="l403"></a> {
<a name="l404"></a> </span><span class=cF1>if</span><span class=cF0> (pop_up)
<a name="l405"></a> pop_up_st = </span><span class=cF6>&quot;+PU&quot;</span><span class=cF0>;
<a name="l406"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l407"></a> pop_up_st = </span><span class=cF6>&quot;&quot;</span><span class=cF0>;
<a name="l408"></a> </span><span class=cF1>switch</span><span class=cF0> (type)
<a name="l409"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l410"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>LK_PLACE_ANCHOR</span><span class=cF0>:
<a name="l411"></a> </span><span class=cF1>if</span><span class=cF0> (html_link)
<a name="l412"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$AN,\&quot;%$Q\&quot;,A=\&quot;%$Q\&quot;,HTML=\&quot;%$Q\&quot;$&quot;</span><span class=cF0>, tag, link, html_link);
<a name="l413"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l414"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$AN,\&quot;%$Q\&quot;,A=\&quot;%$Q\&quot;$&quot;</span><span class=cF0>, tag, link);
<a name="l415"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l416"></a>
<a name="l417"></a> </span><span class=cF1>default</span><span class=cF0>:
<a name="l418"></a> </span><span class=cF1>if</span><span class=cF0> (html_link)
<a name="l419"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$LK%s,\&quot;%$Q\&quot;,A=\&quot;%$Q\&quot;,HTML=\&quot;%$Q\&quot;$&quot;</span><span class=cF0>, pop_up_st, tag, link, html_link);
<a name="l420"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l421"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$LK%s,\&quot;%$Q\&quot;,A=\&quot;%$Q\&quot;$&quot;</span><span class=cF0>, pop_up_st, tag, link);
<a name="l422"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l423"></a> }
<a name="l424"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l425"></a> </span><span class=cF1>if</span><span class=cF0> (st)
<a name="l426"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l427"></a> </span><span class=cF1>if</span><span class=cF0> (quote)
<a name="l428"></a> </span><span class=cF6>&quot;%$Q&quot;</span><span class=cF0>, st;
<a name="l429"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l430"></a> </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, st;
<a name="l431"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l432"></a> </span><span class=cF5>Free</span><span class=cF0>(tag);
<a name="l433"></a> </span><span class=cF5>Free</span><span class=cF0>(link);
<a name="l434"></a> </span><span class=cF5>Free</span><span class=cF0>(html_link);
<a name="l435"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l436"></a>}
<a name="l437"></a>
<a name="l438"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpColorType</span><span class=cF0>()
<a name="l439"></a>{
<a name="l440"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l441"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc = </span><span class=cF5>DocNew</span><span class=cF0>;
<a name="l442"></a>
<a name="l443"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;Color Type Menu\&quot;$\n&quot;</span><span class=cF0>
<a name="l444"></a> </span><span class=cF6>&quot;\n$LTBLUE$$MU,\&quot;Foreground\&quot;,LE=DOCT_FOREGROUND$\n&quot;</span><span class=cF0>
<a name="l445"></a> </span><span class=cF6>&quot;$MU,\&quot;Background\&quot;,LE=DOCT_BACKGROUND$\n&quot;</span><span class=cF0>
<a name="l446"></a> </span><span class=cF6>&quot;$MU,\&quot;Default Foreground\&quot;,LE=DOCT_DEFAULT_FOREGROUND$\n&quot;</span><span class=cF0>
<a name="l447"></a> </span><span class=cF6>&quot;$MU,\&quot;Default Background\&quot;,LE=DOCT_DEFAULT_BACKGROUND$\n&quot;</span><span class=cF0>
<a name="l448"></a> </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l449"></a> i = </span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
<a name="l450"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
<a name="l451"></a>
<a name="l452"></a> </span><span class=cF1>return</span><span class=cF0> i;
<a name="l453"></a>}
<a name="l454"></a>
<a name="l455"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpPageSettingType</span><span class=cF0>()
<a name="l456"></a>{
<a name="l457"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l458"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc = </span><span class=cF5>DocNew</span><span class=cF0>;
<a name="l459"></a>
<a name="l460"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;Page Setting Menu\&quot;$\n&quot;</span><span class=cF0>
<a name="l461"></a> </span><span class=cF6>&quot;\n$LTBLUE$$MU,\&quot;Page Length\&quot;,LE=DOCT_PAGE_LEN$\n&quot;</span><span class=cF0>
<a name="l462"></a> </span><span class=cF6>&quot;$MU,\&quot;Page Header\&quot;,LE=DOCT_HEADER$\n&quot;</span><span class=cF0>
<a name="l463"></a> </span><span class=cF6>&quot;$MU,\&quot;Page Footer\&quot;,LE=DOCT_FOOTER$\n&quot;</span><span class=cF0>
<a name="l464"></a> </span><span class=cF6>&quot;$MU,\&quot;Left Margin\&quot;,LE=DOCT_LEFT_MARGIN$\n&quot;</span><span class=cF0>
<a name="l465"></a> </span><span class=cF6>&quot;$MU,\&quot;Right Margin\&quot;,LE=DOCT_RIGHT_MARGIN$\n&quot;</span><span class=cF0>
<a name="l466"></a> </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l467"></a> i = </span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
<a name="l468"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
<a name="l469"></a>
<a name="l470"></a> </span><span class=cF1>return</span><span class=cF0> i;
<a name="l471"></a>}
<a name="l472"></a>
<a name="l473"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsColor</span><span class=cF0>()
<a name="l474"></a>{
<a name="l475"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpColorType</span><span class=cF0>, col = </span><span class=cF3>DOC_DEFAULT</span><span class=cF0>;
<a name="l476"></a>
<a name="l477"></a> </span><span class=cF1>if</span><span class=cF0> (type &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l478"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l479"></a> col = </span><span class=cF5>PopUpColor</span><span class=cF0>(, </span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l480"></a> </span><span class=cF1>if</span><span class=cF0> (col == </span><span class=cF3>DOC_DEFAULT</span><span class=cF0>)
<a name="l481"></a> </span><span class=cF6>&quot;$%Z$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>;
<a name="l482"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (col &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l483"></a> </span><span class=cF6>&quot;$%Z,%d$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, col;
<a name="l484"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l485"></a>}
<a name="l486"></a>
<a name="l487"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdPageSetting1</span><span class=cF0>
<a name="l488"></a>{
<a name="l489"></a> </span><span class=cF1>U8</span><span class=cF0> val[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Setting Val:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l490"></a> </span><span class=cF1>Bool</span><span class=cF0> winrel;
<a name="l491"></a>};
<a name="l492"></a>
<a name="l493"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdPageSetting2</span><span class=cF0>
<a name="l494"></a>{
<a name="l495"></a> </span><span class=cF1>U8</span><span class=cF0> val[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Setting Val:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l496"></a> </span><span class=cF1>Bool</span><span class=cF0> winrel format </span><span class=cF6>&quot;$CB,\&quot;Win Relative\&quot;$\n&quot;</span><span class=cF0>;
<a name="l497"></a>};
<a name="l498"></a>
<a name="l499"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsPageSetting</span><span class=cF0>()
<a name="l500"></a>{
<a name="l501"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpPageSettingType</span><span class=cF0>;
<a name="l502"></a> </span><span class=cF9>CEdPageSetting1</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdPageSetting1</span><span class=cF7>)</span><span class=cF0>);
<a name="l503"></a>
<a name="l504"></a> </span><span class=cF1>if</span><span class=cF0> (type &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l505"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l506"></a> </span><span class=cF1>if</span><span class=cF0> (type == </span><span class=cF3>DOCT_RIGHT_MARGIN</span><span class=cF0> || type == </span><span class=cF3>DOCT_PAGE_LEN</span><span class=cF0>)
<a name="l507"></a> {
<a name="l508"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e(</span><span class=cF9>CEdPageSetting2</span><span class=cF0> *)</span><span class=cF7>)</span><span class=cF0>)
<a name="l509"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l510"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;winrel)
<a name="l511"></a> {
<a name="l512"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;val)
<a name="l513"></a> </span><span class=cF6>&quot;$%Z+WR,%s$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;val;
<a name="l514"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l515"></a> </span><span class=cF6>&quot;$%Z+WR,0$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>;
<a name="l516"></a> }
<a name="l517"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l518"></a> {
<a name="l519"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;val)
<a name="l520"></a> </span><span class=cF6>&quot;$%Z,%s$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;val;
<a name="l521"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l522"></a> </span><span class=cF6>&quot;$%Z$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>;
<a name="l523"></a> }
<a name="l524"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l525"></a> }
<a name="l526"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l527"></a> {
<a name="l528"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e</span><span class=cF7>)</span><span class=cF0>)
<a name="l529"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l530"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;val)
<a name="l531"></a> </span><span class=cF6>&quot;$%Z,%s$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;val;
<a name="l532"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l533"></a> </span><span class=cF6>&quot;$%Z$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>;
<a name="l534"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l535"></a> }
<a name="l536"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l537"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l538"></a>}
<a name="l539"></a>
<a name="l540"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>WIZ_HIGHLIGHT_ON</span><span class=cF0> (</span><span class=cF3>DOCT_ERROR</span><span class=cF0> + </span><span class=cFE>1</span><span class=cF0>)
<a name="l541"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>WIZ_HIGHLIGHT_OFF</span><span class=cF0> (</span><span class=cF3>DOCT_ERROR</span><span class=cF0> + </span><span class=cFE>2</span><span class=cF0>)
<a name="l542"></a>
<a name="l543"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpWidgetType</span><span class=cF0>()
<a name="l544"></a>{
<a name="l545"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l546"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc = </span><span class=cF5>DocNew</span><span class=cF0>;
<a name="l547"></a>
<a name="l548"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;Text Widgets Menu\&quot;$\n&quot;</span><span class=cF0>
<a name="l549"></a> </span><span class=cF6>&quot;\n$LTBLUE$$MU,\&quot;Link\&quot;,LE=DOCT_LINK$\n&quot;</span><span class=cF0>
<a name="l550"></a> </span><span class=cF6>&quot;$MU,\&quot;Text\&quot;,LE=DOCT_TEXT$\n&quot;</span><span class=cF0>
<a name="l551"></a> </span><span class=cF6>&quot;$MU,\&quot;Tree Branch\&quot;,LE=DOCT_TREE$\n&quot;</span><span class=cF0>
<a name="l552"></a> </span><span class=cF6>&quot;$MU,\&quot;Color\&quot;,LE=DOCT_FOREGROUND$\n&quot;</span><span class=cF0>
<a name="l553"></a> </span><span class=cF6>&quot;$MU,\&quot;Page Settings\&quot;,LE=DOCT_PAGE_LEN$\n&quot;</span><span class=cF0>
<a name="l554"></a> </span><span class=cF6>&quot;$MU,\&quot;Cursor Movement\&quot;,LE=DOCT_CURSOR_MOVEMENT$\n&quot;</span><span class=cF0>
<a name="l555"></a> </span><span class=cF6>&quot;$MU,\&quot;Macro\&quot;,LE=DOCT_MACRO$\n&quot;</span><span class=cF0>
<a name="l556"></a> </span><span class=cF6>&quot;$MU,\&quot;Bttn\&quot;,LE=DOCT_BTTN$\n&quot;</span><span class=cF0>
<a name="l557"></a> </span><span class=cF6>&quot;$MU,\&quot;Check Box\&quot;,LE=DOCT_CHECK_BOX$\n&quot;</span><span class=cF0>
<a name="l558"></a> </span><span class=cF6>&quot;$MU,\&quot;List\&quot;,LE=DOCT_LIST$\n&quot;</span><span class=cF0>
<a name="l559"></a> </span><span class=cF6>&quot;$MU,\&quot;Menu Val\&quot;,LE=DOCT_MENU_VAL$\n&quot;</span><span class=cF0>
<a name="l560"></a> </span><span class=cF6>&quot;$MU,\&quot;Data\&quot;,LE=DOCT_DATA$\n&quot;</span><span class=cF0>
<a name="l561"></a> </span><span class=cF6>&quot;$MU,\&quot;Hex Edit\&quot;,LE=DOCT_HEX_ED$\n&quot;</span><span class=cF0>
<a name="l562"></a> </span><span class=cF6>&quot;$MU,\&quot;Syntax Highlight ON\&quot;,LE=WIZ_HIGHLIGHT_ON$\n&quot;</span><span class=cF0>
<a name="l563"></a> </span><span class=cF6>&quot;$MU,\&quot;Syntax Highlight OFF\&quot;,LE=WIZ_HIGHLIGHT_OFF$\n&quot;</span><span class=cF0>
<a name="l564"></a> </span><span class=cF6>&quot;$MU,\&quot;HTML\&quot;,LE=DOCT_HTML_CODE$\n&quot;</span><span class=cF0>
<a name="l565"></a> </span><span class=cF6>&quot;$MU,\&quot;Song\&quot;,LE=DOCT_SONG$\n&quot;</span><span class=cF0>
<a name="l566"></a> </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l567"></a> i = </span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
<a name="l568"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
<a name="l569"></a>
<a name="l570"></a> </span><span class=cF1>return</span><span class=cF0> i;
<a name="l571"></a>}
<a name="l572"></a>
<a name="l573"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdText</span><span class=cF0>
<a name="l574"></a>{
<a name="l575"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l576"></a> </span><span class=cF1>Bool</span><span class=cF0> left_x format </span><span class=cF6>&quot;$CB,\&quot;Left X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l577"></a> center_x format </span><span class=cF6>&quot;$CB,\&quot;Center X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l578"></a> right_x format </span><span class=cF6>&quot;$CB,\&quot;Right X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l579"></a> margin_rel format </span><span class=cF6>&quot;$CB,\&quot;Margin Rel X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l580"></a> blink format </span><span class=cF6>&quot;$CB,\&quot;Blink\&quot;$\n&quot;</span><span class=cF0>,
<a name="l581"></a> invert format </span><span class=cF6>&quot;$CB,\&quot;Invert\&quot;$\n&quot;</span><span class=cF0>,
<a name="l582"></a> underline format </span><span class=cF6>&quot;$CB,\&quot;Underline\&quot;$\n&quot;</span><span class=cF0>,
<a name="l583"></a> tree format </span><span class=cF6>&quot;$CB,\&quot;Tree\&quot;$\n&quot;</span><span class=cF0>,
<a name="l584"></a> collapsed format </span><span class=cF6>&quot;$CB,\&quot;Collapsed\&quot;$\n&quot;</span><span class=cF0>;
<a name="l585"></a> </span><span class=cF1>U8</span><span class=cF0> scroll_x [</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Scroll X Length Expression:%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l586"></a> shift_x [</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;X Offset Expression :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l587"></a> shift_y [</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Y Offset Expression :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l588"></a> define_str[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Define Str :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l589"></a> html_link[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Link :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l590"></a>};
<a name="l591"></a>
<a name="l592"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsText</span><span class=cF0>()
<a name="l593"></a>{
<a name="l594"></a> </span><span class=cF1>U8</span><span class=cF0> *st, buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l595"></a> </span><span class=cF9>CEdText</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdText</span><span class=cF7>)</span><span class=cF0>);
<a name="l596"></a>
<a name="l597"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l598"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l599"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l600"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LX&quot;</span><span class=cF0>);
<a name="l601"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+CX&quot;</span><span class=cF0>);
<a name="l602"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RX&quot;</span><span class=cF0>);
<a name="l603"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+MRX&quot;</span><span class=cF0>);
<a name="l604"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;blink) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+BK&quot;</span><span class=cF0>);
<a name="l605"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;invert) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+IV&quot;</span><span class=cF0>);
<a name="l606"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;underline) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+UL&quot;</span><span class=cF0>);
<a name="l607"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;tree) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+TR&quot;</span><span class=cF0>);
<a name="l608"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;collapsed) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+C&quot;</span><span class=cF0>);
<a name="l609"></a>
<a name="l610"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l611"></a> </span><span class=cF6>&quot;$TX%s,\&quot;%$Q\&quot;&quot;</span><span class=cF0>, buf, st;
<a name="l612"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l613"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;shift_x)
<a name="l614"></a> </span><span class=cF6>&quot;,SX=%s&quot;</span><span class=cF0>, e-&gt;shift_x;
<a name="l615"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;shift_y)
<a name="l616"></a> </span><span class=cF6>&quot;,SY=%s&quot;</span><span class=cF0>, e-&gt;shift_y;
<a name="l617"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;scroll_x)
<a name="l618"></a> </span><span class=cF6>&quot;,SCX=%s&quot;</span><span class=cF0>, e-&gt;scroll_x;
<a name="l619"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;define_str)
<a name="l620"></a> {
<a name="l621"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;define_str);
<a name="l622"></a> </span><span class=cF6>&quot;,D=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, st;
<a name="l623"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l624"></a> }
<a name="l625"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;html_link)
<a name="l626"></a> {
<a name="l627"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;html_link);
<a name="l628"></a> </span><span class=cF6>&quot;,HTML=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, st;
<a name="l629"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l630"></a> }
<a name="l631"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l632"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l633"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l634"></a>}
<a name="l635"></a>
<a name="l636"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdSong</span><span class=cF0>
<a name="l637"></a>{
<a name="l638"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l639"></a> song[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Song :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l640"></a>};
<a name="l641"></a>
<a name="l642"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsSong</span><span class=cF0>()
<a name="l643"></a>{
<a name="l644"></a> </span><span class=cF9>CEdSong</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdSong</span><span class=cF7>)</span><span class=cF0>);
<a name="l645"></a>
<a name="l646"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l647"></a> </span><span class=cF6>&quot;$SO,\&quot;%$Q\&quot;,A=\&quot;%s\&quot;$&quot;</span><span class=cF0>, e-&gt;tag, e-&gt;song;
<a name="l648"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l649"></a>}
<a name="l650"></a>
<a name="l651"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdHtmlCode</span><span class=cF0>
<a name="l652"></a>{
<a name="l653"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Html Code:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l654"></a>};
<a name="l655"></a>
<a name="l656"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsHtml</span><span class=cF0>()
<a name="l657"></a>{
<a name="l658"></a> </span><span class=cF9>CEdHtmlCode</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdHtmlCode</span><span class=cF7>)</span><span class=cF0>);
<a name="l659"></a>
<a name="l660"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l661"></a> </span><span class=cF6>&quot;$HC,\&quot;%$Q\&quot;$&quot;</span><span class=cF0>, e-&gt;tag;
<a name="l662"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l663"></a>}
<a name="l664"></a>
<a name="l665"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdMacroMenu</span><span class=cF0>
<a name="l666"></a>{
<a name="l667"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l668"></a> left_macro[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Left Click Macro :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l669"></a> left_exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Left Click Expression :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l670"></a> </span><span class=cF1>Bool</span><span class=cF0> popup format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l671"></a> left_is_in_str format </span><span class=cF6>&quot;$CB,\&quot;Left is InStr\&quot;$\n&quot;</span><span class=cF0>,
<a name="l672"></a> left_x format </span><span class=cF6>&quot;$CB,\&quot;Left X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l673"></a> center_x format </span><span class=cF6>&quot;$CB,\&quot;Center X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l674"></a> right_x format </span><span class=cF6>&quot;$CB,\&quot;Right X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l675"></a> margin_rel format </span><span class=cF6>&quot;$CB,\&quot;Margin Rel X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l676"></a> blink format </span><span class=cF6>&quot;$CB,\&quot;Blink\&quot;$\n&quot;</span><span class=cF0>,
<a name="l677"></a> invert format </span><span class=cF6>&quot;$CB,\&quot;Invert\&quot;$\n&quot;</span><span class=cF0>,
<a name="l678"></a> underline format </span><span class=cF6>&quot;$CB,\&quot;Underline\&quot;$\n&quot;</span><span class=cF0>,
<a name="l679"></a> escape format </span><span class=cF6>&quot;$CB,\&quot;Escape\&quot;$\n&quot;</span><span class=cF0>;
<a name="l680"></a> </span><span class=cF1>U8</span><span class=cF0> scroll_x[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Scroll X Length Expression:%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l681"></a> shift_x[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;X Offset Expression :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l682"></a> shift_y[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Y Offset Expression :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l683"></a>};
<a name="l684"></a>
<a name="l685"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsMacroMenu</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> is_macro)
<a name="l686"></a>{
<a name="l687"></a> </span><span class=cF1>U8</span><span class=cF0> *st, buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l688"></a> </span><span class=cF9>CEdMacroMenu</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdMacroMenu</span><span class=cF7>)</span><span class=cF0>);
<a name="l689"></a>
<a name="l690"></a> e-&gt;underline = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l691"></a> e-&gt;escape = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l692"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l693"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l694"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l695"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+PU-X&quot;</span><span class=cF0>);
<a name="l696"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LX&quot;</span><span class=cF0>);
<a name="l697"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+CX&quot;</span><span class=cF0>);
<a name="l698"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RX&quot;</span><span class=cF0>);
<a name="l699"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+MRX&quot;</span><span class=cF0>);
<a name="l700"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;blink) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+BK&quot;</span><span class=cF0>);
<a name="l701"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;invert) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+IV&quot;</span><span class=cF0>);
<a name="l702"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;underline) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-UL&quot;</span><span class=cF0>);
<a name="l703"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-X&quot;</span><span class=cF0>);
<a name="l704"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LIS&quot;</span><span class=cF0>);
<a name="l705"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;tag || is_macro)
<a name="l706"></a> {
<a name="l707"></a> </span><span class=cF1>if</span><span class=cF0> (is_macro)
<a name="l708"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l709"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;tag)
<a name="l710"></a> {
<a name="l711"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l712"></a> </span><span class=cF6>&quot;$MA%s,\&quot;%$Q\&quot;&quot;</span><span class=cF0>, buf, st;
<a name="l713"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l714"></a> }
<a name="l715"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l716"></a> </span><span class=cF6>&quot;$MA%s&quot;</span><span class=cF0>, buf;
<a name="l717"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l718"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l719"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l720"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l721"></a> </span><span class=cF6>&quot;$MU%s,\&quot;%$Q\&quot;&quot;</span><span class=cF0>, buf, st;
<a name="l722"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l723"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l724"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_exp)
<a name="l725"></a> </span><span class=cF6>&quot;,LE=%s&quot;</span><span class=cF0>, e-&gt;left_exp;
<a name="l726"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_macro)
<a name="l727"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l728"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;left_macro);
<a name="l729"></a> </span><span class=cF6>&quot;,LM=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, st;
<a name="l730"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l731"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l732"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;shift_x)
<a name="l733"></a> </span><span class=cF6>&quot;,SX=%s&quot;</span><span class=cF0>, e-&gt;shift_x;
<a name="l734"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;shift_y)
<a name="l735"></a> </span><span class=cF6>&quot;,SY=%s&quot;</span><span class=cF0>, e-&gt;shift_y;
<a name="l736"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;scroll_x)
<a name="l737"></a> </span><span class=cF6>&quot;,SCX=%s&quot;</span><span class=cF0>, e-&gt;scroll_x;
<a name="l738"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l739"></a> }
<a name="l740"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l741"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l742"></a>}
<a name="l743"></a>
<a name="l744"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdBttn</span><span class=cF0>
<a name="l745"></a>{
<a name="l746"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l747"></a> </span><span class=cF1>Bool</span><span class=cF0> popup format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l748"></a> left_x format </span><span class=cF6>&quot;$CB,\&quot;Left X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l749"></a> center_x format </span><span class=cF6>&quot;$CB,\&quot;Center X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l750"></a> right_x format </span><span class=cF6>&quot;$CB,\&quot;Right X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l751"></a> margin_rel format </span><span class=cF6>&quot;$CB,\&quot;Margin Rel X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l752"></a> escape format </span><span class=cF6>&quot;$CB,\&quot;Escape\&quot;$\n&quot;</span><span class=cF0>;
<a name="l753"></a> </span><span class=cF1>U8</span><span class=cF0> left_macro[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Left Click Macro:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l754"></a> </span><span class=cF1>Bool</span><span class=cF0> left_is_in_str format </span><span class=cF6>&quot;$CB,\&quot;Left is InStr\&quot;$\n&quot;</span><span class=cF0>;
<a name="l755"></a> </span><span class=cF1>U8</span><span class=cF0> left_exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Left Click Expression:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l756"></a> </span><span class=cF1>Bool</span><span class=cF0> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>;
<a name="l757"></a>};
<a name="l758"></a>
<a name="l759"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsBttn</span><span class=cF0>()
<a name="l760"></a>{
<a name="l761"></a> </span><span class=cF1>U8</span><span class=cF0> *st, buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l762"></a> </span><span class=cF9>CEdBttn</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdBttn</span><span class=cF7>)</span><span class=cF0>);
<a name="l763"></a>
<a name="l764"></a> e-&gt;escape = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l765"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l766"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l767"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l768"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+PU-X&quot;</span><span class=cF0>);
<a name="l769"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LX&quot;</span><span class=cF0>);
<a name="l770"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+CX&quot;</span><span class=cF0>);
<a name="l771"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RX&quot;</span><span class=cF0>);
<a name="l772"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+MRX&quot;</span><span class=cF0>);
<a name="l773"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-X&quot;</span><span class=cF0>);
<a name="l774"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LIS&quot;</span><span class=cF0>);
<a name="l775"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;tag)
<a name="l776"></a> {
<a name="l777"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;quote)
<a name="l778"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l779"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l780"></a> </span><span class=cF6>&quot;$$BT%s,\\\&quot;%$Q\\\&quot;&quot;</span><span class=cF0>, buf, st;
<a name="l781"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l782"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_exp)
<a name="l783"></a> </span><span class=cF6>&quot;,LE=%s&quot;</span><span class=cF0>, e-&gt;left_exp;
<a name="l784"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_macro)
<a name="l785"></a> {
<a name="l786"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;left_macro);
<a name="l787"></a> </span><span class=cF6>&quot;,LM=\\\&quot;%$Q\\\&quot;&quot;</span><span class=cF0>, st;
<a name="l788"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l789"></a> }
<a name="l790"></a> </span><span class=cF6>&quot;$$&quot;</span><span class=cF0>;
<a name="l791"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l792"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l793"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l794"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l795"></a> </span><span class=cF6>&quot;$BT%s,\&quot;%$Q\&quot;&quot;</span><span class=cF0>, buf, st;
<a name="l796"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l797"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_exp)
<a name="l798"></a> </span><span class=cF6>&quot;,LE=%s&quot;</span><span class=cF0>, e-&gt;left_exp;
<a name="l799"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_macro)
<a name="l800"></a> {
<a name="l801"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;left_macro);
<a name="l802"></a> </span><span class=cF6>&quot;,LM=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, st;
<a name="l803"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l804"></a> }
<a name="l805"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l806"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l807"></a> }
<a name="l808"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l809"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l810"></a>}
<a name="l811"></a>
<a name="l812"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdCursorMovement</span><span class=cF0>
<a name="l813"></a>{
<a name="l814"></a> </span><span class=cF1>U8</span><span class=cF0> left_exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;X Expression (LE):%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l815"></a> right_exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Y Expression (RE):%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l816"></a> </span><span class=cF1>Bool</span><span class=cF0> left_x format </span><span class=cF6>&quot;$CB,\&quot;Left X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l817"></a> center_x format </span><span class=cF6>&quot;$CB,\&quot;Center X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l818"></a> right_x format </span><span class=cF6>&quot;$CB,\&quot;Right X \&quot;$\n&quot;</span><span class=cF0>,
<a name="l819"></a> margin_rel format </span><span class=cF6>&quot;$CB,\&quot;Margin Rel X\&quot;$\n&quot;</span><span class=cF0>,
<a name="l820"></a> top_y format </span><span class=cF6>&quot;$CB,\&quot;Top Y \&quot;$\n&quot;</span><span class=cF0>,
<a name="l821"></a> center_y format </span><span class=cF6>&quot;$CB,\&quot;Center Y \&quot;$\n&quot;</span><span class=cF0>,
<a name="l822"></a> bottom_y format </span><span class=cF6>&quot;$CB,\&quot;Bottom Y \&quot;$\n&quot;</span><span class=cF0>,
<a name="l823"></a> page_rel format </span><span class=cF6>&quot;$CB,\&quot;Page Rel Y\&quot;$\n&quot;</span><span class=cF0>,
<a name="l824"></a> quote format </span><span class=cF6>&quot;$CB,\&quot;Quote\&quot;$\n&quot;</span><span class=cF0>;
<a name="l825"></a>};
<a name="l826"></a>
<a name="l827"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsCursorMovement</span><span class=cF0>()
<a name="l828"></a>{
<a name="l829"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l830"></a> </span><span class=cF9>CEdCursorMovement</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdCursorMovement</span><span class=cF7>)</span><span class=cF0>);
<a name="l831"></a>
<a name="l832"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l833"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l834"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l835"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;left_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LX&quot;</span><span class=cF0>);
<a name="l836"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+CX&quot;</span><span class=cF0>);
<a name="l837"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;right_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RX&quot;</span><span class=cF0>);
<a name="l838"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+MRX&quot;</span><span class=cF0>);
<a name="l839"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;top_y) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+TY&quot;</span><span class=cF0>);
<a name="l840"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;center_y) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+CY&quot;</span><span class=cF0>);
<a name="l841"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;bottom_y) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+BY&quot;</span><span class=cF0>);
<a name="l842"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;page_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+PRY&quot;</span><span class=cF0>);
<a name="l843"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;left_exp) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-LE&quot;</span><span class=cF0>);
<a name="l844"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;right_exp) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-RE&quot;</span><span class=cF0>);
<a name="l845"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;quote)
<a name="l846"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l847"></a> </span><span class=cF6>&quot;$CM%s&quot;</span><span class=cF0>, buf;
<a name="l848"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;left_exp)
<a name="l849"></a> </span><span class=cF6>&quot;,LE=%s&quot;</span><span class=cF0>, e-&gt;left_exp;
<a name="l850"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;right_exp)
<a name="l851"></a> </span><span class=cF6>&quot;,RE=%s&quot;</span><span class=cF0>, e-&gt;right_exp;
<a name="l852"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l853"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;quote)
<a name="l854"></a> </span><span class=cF6>&quot;$&quot;</span><span class=cF0>;
<a name="l855"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l856"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l857"></a>}
<a name="l858"></a>
<a name="l859"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdDataNum</span><span class=cF0>
<a name="l860"></a>{
<a name="l861"></a> </span><span class=cF1>U8</span><span class=cF0> format_str[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Format Str:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l862"></a> </span><span class=cF9>I64</span><span class=cF0> len;
<a name="l863"></a> </span><span class=cF1>Bool</span><span class=cF0> term format </span><span class=cF6>&quot;$CB,\&quot;Form Field Terminator\&quot;$\n&quot;</span><span class=cF0>,
<a name="l864"></a> remalloc,
<a name="l865"></a> refresh format </span><span class=cF6>&quot;$CB,\&quot;Refresh Data\&quot;$\n&quot;</span><span class=cF0>,
<a name="l866"></a> update format </span><span class=cF6>&quot;$CB,\&quot;Update Data\&quot;$\n&quot;</span><span class=cF0>;
<a name="l867"></a>};
<a name="l868"></a>
<a name="l869"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdDataStr</span><span class=cF0>
<a name="l870"></a>{
<a name="l871"></a> </span><span class=cF1>U8</span><span class=cF0> format_str[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Format Str:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l872"></a> </span><span class=cF9>I64</span><span class=cF0> len format </span><span class=cF6>&quot;$DA,A=\&quot;Length:%d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l873"></a> </span><span class=cF1>Bool</span><span class=cF0> term format </span><span class=cF6>&quot;$CB,\&quot;Zero Terminator\&quot;$\n&quot;</span><span class=cF0>,
<a name="l874"></a> remalloc format </span><span class=cF6>&quot;$CB,\&quot;Remalloc for Unlimited Length\&quot;$\n&quot;</span><span class=cF0>,
<a name="l875"></a> refresh format </span><span class=cF6>&quot;$CB,\&quot;Refresh Data\&quot;$\n&quot;</span><span class=cF0>,
<a name="l876"></a> update format </span><span class=cF6>&quot;$CB,\&quot;Update Data\&quot;$\n&quot;</span><span class=cF0>;
<a name="l877"></a>};
<a name="l878"></a>
<a name="l879"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsData</span><span class=cF0>()
<a name="l880"></a>{
<a name="l881"></a> </span><span class=cF9>I64</span><span class=cF0> i, type = </span><span class=cF3>RT_I64</span><span class=cF0>;
<a name="l882"></a> </span><span class=cF1>U8</span><span class=cF0> *st, buf[</span><span class=cFE>512</span><span class=cF0>], raw_type[</span><span class=cFE>16</span><span class=cF0>];
<a name="l883"></a> </span><span class=cF9>CEdDataNum</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdDataNum</span><span class=cF7>)</span><span class=cF0>);
<a name="l884"></a>
<a name="l885"></a> e-&gt;term = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l886"></a> e-&gt;len = </span><span class=cF3>DOCE_LEN_DEFAULT</span><span class=cF0>;
<a name="l887"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>i = </span><span class=cF5>PopUpPickDefineSub</span><span class=cF0>(</span><span class=cF6>&quot;ST_NATURAL_TYPES&quot;</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0> &gt;= </span><span class=cFE>0</span><span class=cF0>)
<a name="l888"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l889"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l890"></a> i += </span><span class=cF3>RT_I8</span><span class=cF0>;
<a name="l891"></a> </span><span class=cF1>if</span><span class=cF0> (i == </span><span class=cF3>RT_F32</span><span class=cF0>)
<a name="l892"></a> i = </span><span class=cF3>RT_F64</span><span class=cF0>;
<a name="l893"></a> </span><span class=cF1>if</span><span class=cF0> (i == </span><span class=cF3>RT_UF32</span><span class=cF0>)
<a name="l894"></a> {</span><span class=cF2>//U8 *</span><span class=cF0>
<a name="l895"></a> i = </span><span class=cF5>DocForm</span><span class=cF0>(e</span><span class=cF7>(</span><span class=cF9>CEdDataStr</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l896"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;remalloc)
<a name="l897"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l898"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+M&quot;</span><span class=cF0>);
<a name="l899"></a> e-&gt;term = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l900"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l901"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l902"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-P&quot;</span><span class=cF0>);
<a name="l903"></a> }
<a name="l904"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l905"></a> {
<a name="l906"></a> type = i;
<a name="l907"></a> i = </span><span class=cF5>DocForm</span><span class=cF0>(e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF0>);
<a name="l908"></a> }
<a name="l909"></a> </span><span class=cF1>if</span><span class=cF0> (i)
<a name="l910"></a> {
<a name="l911"></a> </span><span class=cF1>if</span><span class=cF0> (type == </span><span class=cF3>RT_I64</span><span class=cF0>)
<a name="l912"></a> *raw_type = </span><span class=cFE>0</span><span class=cF0>;
<a name="l913"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l914"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(raw_type, </span><span class=cF6>&quot;,RT=%Z&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_RAW_TYPES&quot;</span><span class=cF0>);
<a name="l915"></a>
<a name="l916"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;term) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-TRM&quot;</span><span class=cF0>);
<a name="l917"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RD&quot;</span><span class=cF0>);
<a name="l918"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;update) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+UD&quot;</span><span class=cF0>);
<a name="l919"></a>
<a name="l920"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;format_str);
<a name="l921"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;remalloc)
<a name="l922"></a> </span><span class=cF6>&quot;$$DA%s,A=\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, st;
<a name="l923"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (e-&gt;len == </span><span class=cF3>DOCE_LEN_DEFAULT</span><span class=cF0>)
<a name="l924"></a> </span><span class=cF6>&quot;$$DA%s%s,A=\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, raw_type, st;
<a name="l925"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l926"></a> </span><span class=cF6>&quot;$$DA%s,LEN=%d%s,A=\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, e-&gt;len, raw_type, st;
<a name="l927"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l928"></a> }
<a name="l929"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l930"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l931"></a>}
<a name="l932"></a>
<a name="l933"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdCheckBox</span><span class=cF0>
<a name="l934"></a>{
<a name="l935"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l936"></a> </span><span class=cF1>Bool</span><span class=cF0> refresh format </span><span class=cF6>&quot;$CB,\&quot;Refresh Data\&quot;$\n&quot;</span><span class=cF0>;
<a name="l937"></a> </span><span class=cF9>I64</span><span class=cF0> type format </span><span class=cF6>&quot;$LS,D=\&quot;ST_INT_SIZE_TYPES\&quot;$\n&quot;</span><span class=cF0>;
<a name="l938"></a>};
<a name="l939"></a>
<a name="l940"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsCheckBox</span><span class=cF0>()
<a name="l941"></a>{
<a name="l942"></a> </span><span class=cF1>U8</span><span class=cF0> *st, buf[</span><span class=cFE>512</span><span class=cF0>], raw_type[</span><span class=cFE>16</span><span class=cF0>];
<a name="l943"></a> </span><span class=cF9>CEdCheckBox</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdCheckBox</span><span class=cF7>)</span><span class=cF0>);
<a name="l944"></a>
<a name="l945"></a> e-&gt;type = </span><span class=cF3>RT_I8</span><span class=cF0> - </span><span class=cF3>RT_I8</span><span class=cF0>;
<a name="l946"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l947"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l948"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l949"></a> e-&gt;type += </span><span class=cF3>RT_I8</span><span class=cF0>;
<a name="l950"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;type == </span><span class=cF3>RT_I8</span><span class=cF0>)
<a name="l951"></a> *raw_type = </span><span class=cFE>0</span><span class=cF0>;
<a name="l952"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l953"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(raw_type, </span><span class=cF6>&quot;,RT=%Z&quot;</span><span class=cF0>, e-&gt;type, </span><span class=cF6>&quot;ST_RAW_TYPES&quot;</span><span class=cF0>);
<a name="l954"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;refresh)
<a name="l955"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RD&quot;</span><span class=cF0>);
<a name="l956"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l957"></a> </span><span class=cF6>&quot;$$CB%s%s,\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, raw_type, st;
<a name="l958"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l959"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l960"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l961"></a>}
<a name="l962"></a>
<a name="l963"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdList</span><span class=cF0>
<a name="l964"></a>{
<a name="l965"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Default Sel :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l966"></a> define_str[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Define Str :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l967"></a> </span><span class=cF1>Bool</span><span class=cF0> refresh format </span><span class=cF6>&quot;$CB,\&quot;Refresh Data\&quot;$\n&quot;</span><span class=cF0>;
<a name="l968"></a> </span><span class=cF9>I64</span><span class=cF0> type format </span><span class=cF6>&quot;$LS,D=\&quot;ST_INT_SIZE_TYPES\&quot;$\n&quot;</span><span class=cF0>;
<a name="l969"></a>};
<a name="l970"></a>
<a name="l971"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsList</span><span class=cF0>()
<a name="l972"></a>{
<a name="l973"></a> </span><span class=cF1>U8</span><span class=cF0> *st1, *st2, buf[</span><span class=cFE>512</span><span class=cF0>], raw_type[</span><span class=cFE>16</span><span class=cF0>];
<a name="l974"></a> </span><span class=cF9>CEdList</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdList</span><span class=cF7>)</span><span class=cF0>);
<a name="l975"></a>
<a name="l976"></a> e-&gt;type = </span><span class=cF3>RT_I64</span><span class=cF0> - </span><span class=cF3>RT_I8</span><span class=cF0>;
<a name="l977"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l978"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l979"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l980"></a> e-&gt;type += </span><span class=cF3>RT_I8</span><span class=cF0>;
<a name="l981"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;type == </span><span class=cF3>RT_I64</span><span class=cF0>)
<a name="l982"></a> *raw_type = </span><span class=cFE>0</span><span class=cF0>;
<a name="l983"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l984"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(raw_type, </span><span class=cF6>&quot;,RT=%Z&quot;</span><span class=cF0>, e-&gt;type, </span><span class=cF6>&quot;ST_RAW_TYPES&quot;</span><span class=cF0>);
<a name="l985"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;refresh)
<a name="l986"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RD&quot;</span><span class=cF0>);
<a name="l987"></a> </span><span class=cF1>if</span><span class=cF0> (!*e-&gt;tag)
<a name="l988"></a> st1 = </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l989"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l990"></a> st1 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l991"></a> st2 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;define_str);
<a name="l992"></a> </span><span class=cF1>if</span><span class=cF0> (st1)
<a name="l993"></a> </span><span class=cF6>&quot;$$LS%s%s,\\\&quot;%$Q\\\&quot;,D=\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, raw_type, st1, st2;
<a name="l994"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l995"></a> </span><span class=cF6>&quot;$$LS%s%s,D=\\\&quot;%$Q\\\&quot;$$&quot;</span><span class=cF0>, buf, raw_type, st2;
<a name="l996"></a> </span><span class=cF5>Free</span><span class=cF0>(st1);
<a name="l997"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
<a name="l998"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l999"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l1000"></a>}
<a name="l1001"></a>
<a name="l1002"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdHexEd</span><span class=cF0>
<a name="l1003"></a>{
<a name="l1004"></a> </span><span class=cF9>I64</span><span class=cF0> count format </span><span class=cF6>&quot;$DA,A=\&quot;Count:%d\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1005"></a> cols format </span><span class=cF6>&quot;$DA,A=\&quot;Columns:%d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1006"></a> </span><span class=cF1>Bool</span><span class=cF0> zero format </span><span class=cF6>&quot;$CB,\&quot;Zero Based\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1007"></a> refresh format </span><span class=cF6>&quot;$CB,\&quot;Refresh Data\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1008"></a>};
<a name="l1009"></a>
<a name="l1010"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsHexEd</span><span class=cF0>()
<a name="l1011"></a>{
<a name="l1012"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l1013"></a> </span><span class=cF9>CEdHexEd</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdHexEd</span><span class=cF7>)</span><span class=cF0>);
<a name="l1014"></a>
<a name="l1015"></a> e-&gt;count = </span><span class=cFE>128</span><span class=cF0>;
<a name="l1016"></a> e-&gt;cols = </span><span class=cFE>4</span><span class=cF0>;
<a name="l1017"></a> e-&gt;zero = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l1018"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l1019"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1020"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l1021"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;zero) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-Z&quot;</span><span class=cF0>);
<a name="l1022"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+RD&quot;</span><span class=cF0>);
<a name="l1023"></a> </span><span class=cF6>&quot;$$HX%s,%d,%d$$&quot;</span><span class=cF0>, buf, e-&gt;count, e-&gt;cols;
<a name="l1024"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1025"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l1026"></a>}
<a name="l1027"></a>
<a name="l1028"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdBin</span><span class=cF0>
<a name="l1029"></a>{
<a name="l1030"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1031"></a> </span><span class=cF9>I64</span><span class=cF0> bin_num format </span><span class=cF6>&quot;$DA,A=\&quot;Bin Num:%d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1032"></a> </span><span class=cF1>U8</span><span class=cF0> bin_ptr_link_file[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1033"></a> </span><span class=cF9>I64</span><span class=cF0> bin_ptr_link_bin_num format </span><span class=cF6>&quot;$DA,A=\&quot;File Bin Num:%d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1034"></a> </span><span class=cF1>U8</span><span class=cF0> bin_ptr_link_tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;File Bin Tag:%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1035"></a>};
<a name="l1036"></a>
<a name="l1037"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsBin</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> bin_num,</span><span class=cF9>I64</span><span class=cF0> type)
<a name="l1038"></a>{
<a name="l1039"></a> </span><span class=cF9>CEdBin</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdBin</span><span class=cF7>)</span><span class=cF0>);
<a name="l1040"></a>
<a name="l1041"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(e-&gt;tag, </span><span class=cF6>&quot;&lt;%d&gt;&quot;</span><span class=cF0>, bin_num);
<a name="l1042"></a> e-&gt;bin_num = bin_num;
<a name="l1043"></a> e-&gt;bin_ptr_link_bin_num = </span><span class=cFE>1</span><span class=cF0>;
<a name="l1044"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,
<a name="l1045"></a> </span><span class=cF6>&quot;Note: Normally, you enter no file,\n&quot;</span><span class=cF0>
<a name="l1046"></a> </span><span class=cF6>&quot;just a bin num. If You enter a\n&quot;</span><span class=cF0>
<a name="l1047"></a> </span><span class=cF6>&quot;file, enter a file bin num or a file\n&quot;</span><span class=cF0>
<a name="l1048"></a> </span><span class=cF6>&quot;bin tag.\n\n&quot;</span><span class=cF0>, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l1049"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1050"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;bin_ptr_link_file)
<a name="l1051"></a> {
<a name="l1052"></a> </span><span class=cF1>if</span><span class=cF0> (*e-&gt;bin_ptr_link_tag)
<a name="l1053"></a> </span><span class=cF6>&quot;$%Z,\&quot;%$Q\&quot;,BI=%d,BP=\&quot;%s,%s\&quot;$&quot;</span><span class=cF0>,
<a name="l1054"></a> type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;tag, e-&gt;bin_num, e-&gt;bin_ptr_link_file, e-&gt;bin_ptr_link_tag;
<a name="l1055"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1056"></a> </span><span class=cF6>&quot;$%Z,\&quot;%$Q\&quot;,BI=%d,BP=\&quot;%s,%d\&quot;$&quot;</span><span class=cF0>,
<a name="l1057"></a> type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;tag, e-&gt;bin_num, e-&gt;bin_ptr_link_file, e-&gt;bin_ptr_link_bin_num;
<a name="l1058"></a> }
<a name="l1059"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1060"></a> {
<a name="l1061"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocBinFindNum</span><span class=cF7>(</span><span class=cF5>DocPut</span><span class=cF0>, e-&gt;bin_num</span><span class=cF7>)</span><span class=cF0>)
<a name="l1062"></a> </span><span class=cF6>&quot;$%Z,\&quot;%$Q\&quot;,BI=%d$&quot;</span><span class=cF0>, type, </span><span class=cF6>&quot;ST_DOC_CMDS&quot;</span><span class=cF0>, e-&gt;tag, e-&gt;bin_num;
<a name="l1063"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1064"></a> </span><span class=cF5>PopUpOk</span><span class=cF0>(</span><span class=cF6>&quot;Invalid Binary Num&quot;</span><span class=cF0>);
<a name="l1065"></a> }
<a name="l1066"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1067"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l1068"></a>}
<a name="l1069"></a>
<a name="l1070"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdTree</span><span class=cF0>
<a name="l1071"></a>{
<a name="l1072"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1073"></a> </span><span class=cF9>I64</span><span class=cF0> indent format </span><span class=cF6>&quot;$DA,A=\&quot;Indention:%d\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1074"></a> </span><span class=cF1>Bool</span><span class=cF0> collapsed format </span><span class=cF6>&quot;$CB,\&quot;Collapsed\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1075"></a>};
<a name="l1076"></a>
<a name="l1077"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsTree</span><span class=cF0>()
<a name="l1078"></a>{
<a name="l1079"></a> </span><span class=cF1>U8</span><span class=cF0> *st1, *st2, buf[</span><span class=cFE>512</span><span class=cF0>];
<a name="l1080"></a> </span><span class=cF9>CEdTree</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdTree</span><span class=cF7>)</span><span class=cF0>);
<a name="l1081"></a>
<a name="l1082"></a> e-&gt;collapsed = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l1083"></a> e-&gt;indent = </span><span class=cFE>2</span><span class=cF0>;
<a name="l1084"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l1085"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1086"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l1087"></a> </span><span class=cF1>if</span><span class=cF0> (!e-&gt;collapsed)
<a name="l1088"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;-C&quot;</span><span class=cF0>);
<a name="l1089"></a> st1 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;tag);
<a name="l1090"></a> st2 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$TR%s,\&quot;%$Q\&quot;$\n$ID,%d$*\n$ID,%d$&quot;</span><span class=cF0>, buf, st1, e-&gt;indent, -e-&gt;indent);
<a name="l1091"></a> </span><span class=cF5>DocPrintAtomic</span><span class=cF0>(</span><span class=cF5>DocPut</span><span class=cF0>, </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, st2);
<a name="l1092"></a> </span><span class=cF5>Free</span><span class=cF0>(st1);
<a name="l1093"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
<a name="l1094"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1095"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l1096"></a>}
<a name="l1097"></a>
<a name="l1098"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>EdInsWidgetWiz</span><span class=cF0>()
<a name="l1099"></a>{
<a name="l1100"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpWidgetType</span><span class=cF0>;
<a name="l1101"></a> </span><span class=cF1>switch</span><span class=cF0> (type)
<a name="l1102"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1103"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_FOREGROUND</span><span class=cF0>:
<a name="l1104"></a> </span><span class=cF5>EdInsColor</span><span class=cF0>;
<a name="l1105"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1106"></a>
<a name="l1107"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_PAGE_LEN</span><span class=cF0>:
<a name="l1108"></a> </span><span class=cF5>EdInsPageSetting</span><span class=cF0>;
<a name="l1109"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1110"></a>
<a name="l1111"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_LINK</span><span class=cF0>:
<a name="l1112"></a> </span><span class=cF5>EdInsLink</span><span class=cF0>;
<a name="l1113"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1114"></a>
<a name="l1115"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_TEXT</span><span class=cF0>:
<a name="l1116"></a> </span><span class=cF5>EdInsText</span><span class=cF0>;
<a name="l1117"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1118"></a>
<a name="l1119"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_TREE</span><span class=cF0>:
<a name="l1120"></a> </span><span class=cF5>EdInsTree</span><span class=cF0>;
<a name="l1121"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1122"></a>
<a name="l1123"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_MACRO</span><span class=cF0>:
<a name="l1124"></a> </span><span class=cF5>EdInsMacroMenu</span><span class=cF0>(</span><span class=cF3>TRUE</span><span class=cF0>);
<a name="l1125"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1126"></a>
<a name="l1127"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>:
<a name="l1128"></a> </span><span class=cF5>EdInsMacroMenu</span><span class=cF0>(</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l1129"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1130"></a>
<a name="l1131"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_CURSOR_MOVEMENT</span><span class=cF0>:
<a name="l1132"></a> </span><span class=cF5>EdInsCursorMovement</span><span class=cF0>;
<a name="l1133"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1134"></a>
<a name="l1135"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_BTTN</span><span class=cF0>:
<a name="l1136"></a> </span><span class=cF5>EdInsBttn</span><span class=cF0>;
<a name="l1137"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1138"></a>
<a name="l1139"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_DATA</span><span class=cF0>:
<a name="l1140"></a> </span><span class=cF5>EdInsData</span><span class=cF0>;
<a name="l1141"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1142"></a>
<a name="l1143"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF0>:
<a name="l1144"></a> </span><span class=cF5>EdInsCheckBox</span><span class=cF0>;
<a name="l1145"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1146"></a>
<a name="l1147"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_LIST</span><span class=cF0>:
<a name="l1148"></a> </span><span class=cF5>EdInsList</span><span class=cF0>;
<a name="l1149"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1150"></a>
<a name="l1151"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_HEX_ED</span><span class=cF0>:
<a name="l1152"></a> </span><span class=cF5>EdInsHexEd</span><span class=cF0>;
<a name="l1153"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1154"></a>
<a name="l1155"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_SONG</span><span class=cF0>:
<a name="l1156"></a> </span><span class=cF5>EdInsSong</span><span class=cF0>;
<a name="l1157"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1158"></a>
<a name="l1159"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>WIZ_HIGHLIGHT_ON</span><span class=cF0>:
<a name="l1160"></a> </span><span class=cF6>&quot;$HL,1$&quot;</span><span class=cF0>;
<a name="l1161"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1162"></a>
<a name="l1163"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>WIZ_HIGHLIGHT_OFF</span><span class=cF0>:
<a name="l1164"></a> </span><span class=cF6>&quot;$HL,0$&quot;</span><span class=cF0>;
<a name="l1165"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1166"></a>
<a name="l1167"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>DOCT_HTML_CODE</span><span class=cF0>:
<a name="l1168"></a> </span><span class=cF5>EdInsHtml</span><span class=cF0>;
<a name="l1169"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1170"></a>}
<a name="l1171"></a>
<a name="l1172"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>
<a name="l1173"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE_PTR</span><span class=cF0> </span><span class=cFE>1</span><span class=cF0>
<a name="l1174"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_DUP_SPRITE</span><span class=cF0> </span><span class=cFE>2</span><span class=cF0>
<a name="l1175"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE_SIZE</span><span class=cF0> </span><span class=cFE>3</span><span class=cF0>
<a name="l1176"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE_MACRO</span><span class=cF0> </span><span class=cFE>4</span><span class=cF0>
<a name="l1177"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE_MENU</span><span class=cF0> </span><span class=cFE>5</span><span class=cF0>
<a name="l1178"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>EST_SPRITE_LINK</span><span class=cF0> </span><span class=cFE>6</span><span class=cF0>
<a name="l1179"></a>
<a name="l1180"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpSpriteType</span><span class=cF0>()
<a name="l1181"></a>{
<a name="l1182"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l1183"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc = </span><span class=cF5>DocNew</span><span class=cF0>;
<a name="l1184"></a>
<a name="l1185"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc, </span><span class=cF6>&quot;$PURPLE$$TX+CX,\&quot;Graphic Sprite Resource Menu\&quot;$\n&quot;</span><span class=cF0>
<a name="l1186"></a> </span><span class=cF6>&quot;$LK+PU+CX,\&quot;Click for Help\&quot;,A=\&quot;FI:::/Doc/Resource.DD\&quot;$\n\n&quot;</span><span class=cF0>
<a name="l1187"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Make Sprite\&quot;,LE=EST_SPRITE$$FG$\t &quot;</span><span class=cF0>
<a name="l1188"></a> </span><span class=cF6>&quot;Start by making a sprite.\n&quot;</span><span class=cF0>
<a name="l1189"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Ptr to Sprite\&quot;,LE=EST_SPRITE_PTR$$FG$\t &quot;</span><span class=cF0>
<a name="l1190"></a> </span><span class=cF6>&quot;Insert pointer into src code.\n&quot;</span><span class=cF0>
<a name="l1191"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Duplicate Sprite\&quot;,LE=EST_DUP_SPRITE$$FG$ &quot;</span><span class=cF0>
<a name="l1192"></a> </span><span class=cF6>&quot;Make dup image for in a doc.\n&quot;</span><span class=cF0>
<a name="l1193"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Sprite Size\&quot;,LE=EST_SPRITE_SIZE$$FG$\t &quot;</span><span class=cF0>
<a name="l1194"></a> </span><span class=cF6>&quot;Insert size of a sprite into src code.\n&quot;</span><span class=cF0>
<a name="l1195"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Sprite Macro\&quot;,LE=EST_SPRITE_MACRO$$FG$\t &quot;</span><span class=cF0>
<a name="l1196"></a> </span><span class=cF6>&quot;Create icon with auto-text payload.\n&quot;</span><span class=cF0>
<a name="l1197"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Sprite Menu Item\&quot;,LE=EST_SPRITE_MENU$$FG$ &quot;</span><span class=cF0>
<a name="l1198"></a> </span><span class=cF6>&quot;Create icon with numeric payload.\n&quot;</span><span class=cF0>
<a name="l1199"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Sprite Link\&quot;,LE=EST_SPRITE_LINK$$FG$\t &quot;</span><span class=cF0>
<a name="l1200"></a> </span><span class=cF6>&quot;Create icon with link payload.\n\n&quot;</span><span class=cF0>
<a name="l1201"></a> </span><span class=cF6>&quot;$LTBLUE$$MU,\&quot;Abort\&quot;,LE=DOCM_CANCEL$\n\n&quot;</span><span class=cF0>);
<a name="l1202"></a> i = </span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
<a name="l1203"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
<a name="l1204"></a>
<a name="l1205"></a> </span><span class=cF1>return</span><span class=cF0> i;
<a name="l1206"></a>}
<a name="l1207"></a>
<a name="l1208"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdMacroSprite</span><span class=cF0>
<a name="l1209"></a>{
<a name="l1210"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1211"></a> exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Macro :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1212"></a> </span><span class=cF1>Bool</span><span class=cF0> escape format </span><span class=cF6>&quot;$CB,\&quot;Escape\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1213"></a> popup format </span><span class=cF6>&quot;$CB,\&quot;PopUp\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1214"></a> is_in_str format </span><span class=cF6>&quot;$CB,\&quot;InStr\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1215"></a>};
<a name="l1216"></a>
<a name="l1217"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CEdMenuSprite</span><span class=cF0>
<a name="l1218"></a>{
<a name="l1219"></a> </span><span class=cF1>U8</span><span class=cF0> tag[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Tag Text :%s\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1220"></a> exp[</span><span class=cFE>512</span><span class=cF0>] format </span><span class=cF6>&quot;$DA-P,A=\&quot;Expression :%s\&quot;$\n&quot;</span><span class=cF0>;
<a name="l1221"></a> </span><span class=cF1>Bool</span><span class=cF0> escape format </span><span class=cF6>&quot;$CB,\&quot;Escape\&quot;$\n&quot;</span><span class=cF0>,
<a name="l1222"></a> popup,
<a name="l1223"></a> is_in_str;
<a name="l1224"></a>};
<a name="l1225"></a>
<a name="l1226"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>EdSpriteLink</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> *_pop_up, </span><span class=cF1>U8</span><span class=cF0> **_html_link)
<a name="l1227"></a>{
<a name="l1228"></a> </span><span class=cF1>U8</span><span class=cF0> *res = </span><span class=cF3>NULL</span><span class=cF0>, *tag = </span><span class=cF3>NULL</span><span class=cF0>, *link = </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l1229"></a> </span><span class=cF1>Bool</span><span class=cF0> quote = </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l1230"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpLinkType</span><span class=cF0>(</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l1231"></a>
<a name="l1232"></a> *_html_link = </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l1233"></a> </span><span class=cF1>if</span><span class=cF0> (type &gt;= </span><span class=cFE>0</span><span class=cF0> &amp;&amp; </span><span class=cF5>GetLink</span><span class=cF7>(</span><span class=cF0>type, &amp;tag, &amp;link, _pop_up, &amp;quote, _html_link</span><span class=cF7>)</span><span class=cF0>)
<a name="l1234"></a> res = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;%$Q\&quot;,A=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, tag, link);
<a name="l1235"></a> </span><span class=cF5>Free</span><span class=cF0>(tag);
<a name="l1236"></a> </span><span class=cF5>Free</span><span class=cF0>(link);
<a name="l1237"></a>
<a name="l1238"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l1239"></a>}
<a name="l1240"></a>
<a name="l1241"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>EdSprite</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> bin_num)
<a name="l1242"></a>{
<a name="l1243"></a> </span><span class=cF9>I64</span><span class=cF0> type = </span><span class=cF5>PopUpSpriteType</span><span class=cF0>;
<a name="l1244"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up;
<a name="l1245"></a> </span><span class=cF1>U8</span><span class=cF0> *st, *st1 = </span><span class=cF3>NULL</span><span class=cF0>, *st2 = </span><span class=cF3>NULL</span><span class=cF0>, buf[</span><span class=cFE>1024</span><span class=cF0>], *html_link = </span><span class=cF3>NULL</span><span class=cF0>;
<a name="l1246"></a> </span><span class=cF9>CEdMacroSprite</span><span class=cF0> *e = </span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CEdMacroSprite</span><span class=cF7>)</span><span class=cF0>);
<a name="l1247"></a>
<a name="l1248"></a> *buf = </span><span class=cFE>0</span><span class=cF0>;
<a name="l1249"></a> </span><span class=cF1>switch</span><span class=cF0> (type)
<a name="l1250"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1251"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE</span><span class=cF0>:
<a name="l1252"></a> st1 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;&lt;%d&gt;\&quot;&quot;</span><span class=cF0>, bin_num);
<a name="l1253"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1254"></a>
<a name="l1255"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE_MACRO</span><span class=cF0>:
<a name="l1256"></a> e-&gt;escape = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l1257"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e,,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l1258"></a> {
<a name="l1259"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+UL&quot;</span><span class=cF0>);
<a name="l1260"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+LIS&quot;</span><span class=cF0>);
<a name="l1261"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+PU&quot;</span><span class=cF0>);
<a name="l1262"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+X&quot;</span><span class=cF0>);
<a name="l1263"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%q&quot;</span><span class=cF0>, e-&gt;exp);
<a name="l1264"></a> st1 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;%$Q\&quot;,LM=\&quot;%$Q\&quot;&quot;</span><span class=cF0>, e-&gt;tag, st);
<a name="l1265"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l1266"></a> }
<a name="l1267"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1268"></a>
<a name="l1269"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE_MENU</span><span class=cF0>:
<a name="l1270"></a> e-&gt;escape = </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l1271"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>e, </span><span class=cF6>&quot;CEdMenuSprite&quot;</span><span class=cF0>,,, </span><span class=cFB>ctrl_L_footer</span><span class=cF7>)</span><span class=cF0>)
<a name="l1272"></a> {
<a name="l1273"></a> </span><span class=cF1>if</span><span class=cF0> (e-&gt;escape)
<a name="l1274"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+X&quot;</span><span class=cF0>);
<a name="l1275"></a> st1 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;%$Q\&quot;,LE=%s&quot;</span><span class=cF0>, e-&gt;tag, e-&gt;exp);
<a name="l1276"></a> }
<a name="l1277"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1278"></a>
<a name="l1279"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE_LINK</span><span class=cF0>:
<a name="l1280"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+L&quot;</span><span class=cF0>);
<a name="l1281"></a> st1 = </span><span class=cF5>EdSpriteLink</span><span class=cF0>(&amp;pop_up, &amp;html_link);
<a name="l1282"></a> </span><span class=cF1>if</span><span class=cF0> (pop_up)
<a name="l1283"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(buf, </span><span class=cF6>&quot;+PU&quot;</span><span class=cF0>);
<a name="l1284"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1285"></a>
<a name="l1286"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE_PTR</span><span class=cF0>:
<a name="l1287"></a> </span><span class=cF5>EdInsBin</span><span class=cF0>(--bin_num, </span><span class=cF3>DOCT_INS_BIN</span><span class=cF0>);
<a name="l1288"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1289"></a>
<a name="l1290"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_SPRITE_SIZE</span><span class=cF0>:
<a name="l1291"></a> </span><span class=cF5>EdInsBin</span><span class=cF0>(--bin_num, </span><span class=cF3>DOCT_INS_BIN_SIZE</span><span class=cF0>);
<a name="l1292"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1293"></a>
<a name="l1294"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>EST_DUP_SPRITE</span><span class=cF0>:
<a name="l1295"></a> </span><span class=cF5>EdInsBin</span><span class=cF0>(--bin_num, </span><span class=cF3>DOCT_SPRITE</span><span class=cF0>);
<a name="l1296"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l1297"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1298"></a> </span><span class=cF1>if</span><span class=cF0> (st1)
<a name="l1299"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l1300"></a> </span><span class=cF1>if</span><span class=cF0> (html_link)
<a name="l1301"></a> st2 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$SP%s,%s,HTML=\&quot;%$Q\&quot;,BI=%d$&quot;</span><span class=cF0>, buf, st1, html_link, bin_num);
<a name="l1302"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l1303"></a> st2 = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;$SP%s,%s,BI=%d$&quot;</span><span class=cF0>, buf, st1, bin_num);
<a name="l1304"></a> </span><span class=cF5>Free</span><span class=cF0>(st1);
<a name="l1305"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l1306"></a> </span><span class=cF5>Free</span><span class=cF0>(e);
<a name="l1307"></a> </span><span class=cF5>Free</span><span class=cF0>(html_link);
<a name="l1308"></a>
<a name="l1309"></a> </span><span class=cF1>return</span><span class=cF0> st2;
<a name="l1310"></a>}
</span></pre></body>
</html>