templeos-info/public/Wb/Adam/DolDoc/DocWidgetWiz.HC.HTML

1195 lines
133 KiB
Plaintext
Raw Normal View History

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