1195 lines
133 KiB
HTML
Executable File
1195 lines
133 KiB
HTML
Executable File
<!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>"DolDoc/Misc"</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>"\n$MU-X+Q,\"Abort\",LE=DOCM_CANCEL$\n"</span><span class=cF0>
|
|
<a name="l5"></a> </span><span class=cF6>"\n\n$LK+PU,\"Click for Help\",A=\"FI:::/Doc/Widget.DD\"$\n"</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>"$PURPLE$$TX+CX,\"Link Type Menu\"$\n"</span><span class=cF0>
|
|
<a name="l12"></a> </span><span class=cF6>"\n$LTBLUE$$MU,\"To file\",LE=LK_FILE$\n"</span><span class=cF0>
|
|
<a name="l13"></a> </span><span class=cF6>"$MU,\"To anchor in file\",LE=LK_FILE_ANCHOR$\n"</span><span class=cF0>
|
|
<a name="l14"></a> </span><span class=cF6>"$MU,\"To str in file\",LE=LK_FILE_FIND$\n"</span><span class=cF0>
|
|
<a name="l15"></a> </span><span class=cF6>"$MU,\"To line in file\",LE=LK_FILE_LINE$\n"</span><span class=cF0>
|
|
<a name="l16"></a> </span><span class=cF6>"$MU,\"To man page\",LE=LK_MAN_PAGE$\n"</span><span class=cF0>
|
|
<a name="l17"></a> </span><span class=cF6>"$MU,\"To plain-text file\",LE=LK_PLAIN$\n"</span><span class=cF0>
|
|
<a name="l18"></a> </span><span class=cF6>"$MU,\"To str in plain-text file\",LE=LK_PLAIN_FIND$\n"</span><span class=cF0>
|
|
<a name="l19"></a> </span><span class=cF6>"$MU,\"To line in plain-text file\",LE=LK_PLAIN_LINE$\n"</span><span class=cF0>
|
|
<a name="l20"></a> </span><span class=cF6>"$MU,\"To Bible chapter line and verse\",LE=LK_BIBLE_FIND$\n"</span><span class=cF0>
|
|
<a name="l21"></a> </span><span class=cF6>"$MU,\"To Dictionary Definition\",LE=LK_DEF$\n"</span><span class=cF0>
|
|
<a name="l22"></a> </span><span class=cF6>"$MU,\"To Help Index\",LE=LK_HELP_INDEX$\n"</span><span class=cF0>
|
|
<a name="l23"></a> </span><span class=cF6>"$MU,\"To Addr\",LE=LK_ADDR$\n"</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>"$MU,\"Place Anchor\",LE=LK_PLACE_ANCHOR$\n"</span><span class=cF0>);
|
|
<a name="l26"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l35"></a> file[512] format </span><span class=cF6>"$DA-P,A=\"File :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l40"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l41"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l48"></a> file[512] format </span><span class=cF6>"$DA-P,A=\"File :%s\"$\n"</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>"$DA-P,A=\"Anchor Label :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l53"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l54"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l61"></a> file[512] format </span><span class=cF6>"$DA-P,A=\"File :%s\"$\n"</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>"$DA-P,A=\"Str :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l64"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>"$DA-TRM,A=\"Occurrence Num:%04d\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l66"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l67"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l74"></a> file[512] format </span><span class=cF6>"$DA-P,A=\"File :%s\"$\n"</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>"$DA-TRM,A=\"Line Num :%04d\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l79"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l80"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</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>"$DA-P,A=\"Label :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l92"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l93"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</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>"$DA-P,A=\"Addr Exp :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l103"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>"$DA-TRM,A=\"Bin Size :%04d\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l105"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l106"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</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>"$DA-P,A=\"Anchor Label :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</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>"$CB,\"Quote\"$\n"</span><span class=cF0>,
|
|
<a name="l120"></a> hide format </span><span class=cF6>"$CB,\"Hide\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</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>"$LS,D=\"ST_BIBLE_BOOKS\"$\n"</span><span class=cF0>;
|
|
<a name="l128"></a> </span><span class=cF1>U8</span><span class=cF0> aux[512] format </span><span class=cF6>"$DA-P,A=\"Chapter Verse :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l132"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l133"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</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>"$DA-P,A=\"Word :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l143"></a> </span><span class=cF9>I64</span><span class=cF0> num format </span><span class=cF6>"$DA-TRM,A=\"Def Num :%4d\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l145"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l146"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l153"></a> file[512] format </span><span class=cF6>"$DA-P,A=\"File :%s\"$\n"</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>"$DA-P,A=\"Html Link :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l158"></a> </span><span class=cF1>Bool</span><span class=cF0> pop_up format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l159"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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>=0) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l169"></a> e->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->tag)
|
|
<a name="l175"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l178"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FI:%s"</span><span class=cF0>,e->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->tag)
|
|
<a name="l185"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l188"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"PI:%s"</span><span class=cF0>,e->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>"CEdFileAnchorLink"</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->tag)
|
|
<a name="l195"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l198"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FA:%s,%s"</span><span class=cF0>,e->file,e->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>"CEdFileFindLink"</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->num==1) {
|
|
<a name="l205"></a> </span><span class=cF1>if</span><span class=cF0> (!*e->tag)
|
|
<a name="l206"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l209"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FF:%s,%s"</span><span class=cF0>,e->file,e->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->tag)
|
|
<a name="l212"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l215"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FF:%s,%s:%d"</span><span class=cF0>,e->file,e->aux,e->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>"CEdFileFindLink"</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->num==1) {
|
|
<a name="l223"></a> </span><span class=cF1>if</span><span class=cF0> (!*e->tag)
|
|
<a name="l224"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l227"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"PF:%s,%s"</span><span class=cF0>,e->file,e->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->tag)
|
|
<a name="l230"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l233"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"PF:%s,%s:%d"</span><span class=cF0>,e->file,e->aux,e->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>"CEdFileLineLink"</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->tag)
|
|
<a name="l241"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l244"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FL:%s,%d"</span><span class=cF0>,e->file,e->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>"CEdFileLineLink"</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->tag)
|
|
<a name="l251"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l254"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"PL:%s,%d"</span><span class=cF0>,e->file,e->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>"CEdManPageLink"</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->tag)
|
|
<a name="l261"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l264"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"MN:%s"</span><span class=cF0>,e->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>"CEdPlaceAnchor"</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->tag) {
|
|
<a name="l271"></a> </span><span class=cF1>if</span><span class=cF0> (e->hide)
|
|
<a name="l272"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(</span><span class=cF6>""</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->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->tag);
|
|
<a name="l277"></a> *_link=</span><span class=cF5>StrNew</span><span class=cF0>(e->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>"CEdBibleLink"</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->tag)
|
|
<a name="l284"></a> *_tag=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%Z,%s"</span><span class=cF0>,e->book,</span><span class=cF6>"ST_BIBLE_BOOKS"</span><span class=cF0>,e->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->tag);
|
|
<a name="l287"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"BF:%Z,%s"</span><span class=cF0>,e->book,</span><span class=cF6>"ST_BIBLE_BOOKS"</span><span class=cF0>,e->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->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>"CEdDefLink"</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->tag)
|
|
<a name="l295"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l298"></a> </span><span class=cF1>if</span><span class=cF0> (e->num<0)
|
|
<a name="l299"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"DN:%s"</span><span class=cF0>,e->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>"DN:%s,%d"</span><span class=cF0>,e->aux,e->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>"CEdManPageLink"</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->tag)
|
|
<a name="l309"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l312"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"HI:%s"</span><span class=cF0>,e->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->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>"CEdAddrLink"</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->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->tag)
|
|
<a name="l321"></a> *_tag=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->tag);
|
|
<a name="l324"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"AD:%s"</span><span class=cF0>,e->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->tag)
|
|
<a name="l327"></a> *_tag=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%s,%d"</span><span class=cF0>,e->aux,e->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->tag);
|
|
<a name="l330"></a> *_link=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"AD:%s,%d"</span><span class=cF0>,e->aux,e->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->html_link)
|
|
<a name="l337"></a> *_html_link=</span><span class=cF5>StrNew</span><span class=cF0>(e->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->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->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>=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,&tag,&link,&pop_up,&quote,&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>"+PU"</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>""</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>"$AN,\"%$Q\",A=\"%$Q\",HTML=\"%$Q\"$"</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>"$AN,\"%$Q\",A=\"%$Q\"$"</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>"$LK%s,\"%$Q\",A=\"%$Q\",HTML=\"%$Q\"$"</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>"$LK%s,\"%$Q\",A=\"%$Q\"$"</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>"%$Q"</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>"%s"</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>"$PURPLE$$TX+CX,\"Color Type Menu\"$\n"</span><span class=cF0>
|
|
<a name="l397"></a> </span><span class=cF6>"\n$LTBLUE$$MU,\"Foreground\",LE=DOCT_FOREGROUND$\n"</span><span class=cF0>
|
|
<a name="l398"></a> </span><span class=cF6>"$MU,\"Background\",LE=DOCT_BACKGROUND$\n"</span><span class=cF0>
|
|
<a name="l399"></a> </span><span class=cF6>"$MU,\"Default Foreground\",LE=DOCT_DFT_FOREGROUND$\n"</span><span class=cF0>
|
|
<a name="l400"></a> </span><span class=cF6>"$MU,\"Default Background\",LE=DOCT_DFT_BACKGROUND$\n"</span><span class=cF0>
|
|
<a name="l401"></a> </span><span class=cF6>"%s"</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>"$PURPLE$$TX+CX,\"Page Setting Menu\"$\n"</span><span class=cF0>
|
|
<a name="l412"></a> </span><span class=cF6>"\n$LTBLUE$$MU,\"Page Length\",LE=DOCT_PAGE_LEN$\n"</span><span class=cF0>
|
|
<a name="l413"></a> </span><span class=cF6>"$MU,\"Page Header\",LE=DOCT_HEADER$\n"</span><span class=cF0>
|
|
<a name="l414"></a> </span><span class=cF6>"$MU,\"Page Footer\",LE=DOCT_FOOTER$\n"</span><span class=cF0>
|
|
<a name="l415"></a> </span><span class=cF6>"$MU,\"Left Margin\",LE=DOCT_LEFT_MARGIN$\n"</span><span class=cF0>
|
|
<a name="l416"></a> </span><span class=cF6>"$MU,\"Right Margin\",LE=DOCT_RIGHT_MARGIN$\n"</span><span class=cF0>
|
|
<a name="l417"></a> </span><span class=cF6>"%s"</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>=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>"$%Z$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</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>=0)
|
|
<a name="l431"></a> </span><span class=cF6>"$%Z,%d$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</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>"$DA-P,A=\"Setting Val:%s\"$\n"</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>"$DA-P,A=\"Setting Val:%s\"$\n"</span><span class=cF0>;
|
|
<a name="l444"></a> </span><span class=cF1>Bool</span><span class=cF0> winrel format </span><span class=cF6>"$CB,\"Win Relative\"$\n"</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>=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->winrel) {
|
|
<a name="l455"></a> </span><span class=cF1>if</span><span class=cF0> (*e->val)
|
|
<a name="l456"></a> </span><span class=cF6>"$%Z+WR,%s$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->val;
|
|
<a name="l457"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l458"></a> </span><span class=cF6>"$%Z+WR,0$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</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->val)
|
|
<a name="l461"></a> </span><span class=cF6>"$%Z,%s$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->val;
|
|
<a name="l462"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l463"></a> </span><span class=cF6>"$%Z$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</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->val)
|
|
<a name="l469"></a> </span><span class=cF6>"$%Z,%s$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->val;
|
|
<a name="l470"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l471"></a> </span><span class=cF6>"$%Z$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</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>"$PURPLE$$TX+CX,\"Text Widgets Menu\"$\n"</span><span class=cF0>
|
|
<a name="l486"></a> </span><span class=cF6>"\n$LTBLUE$$MU,\"Link\",LE=DOCT_LINK$\n"</span><span class=cF0>
|
|
<a name="l487"></a> </span><span class=cF6>"$MU,\"Text\",LE=DOCT_TEXT$\n"</span><span class=cF0>
|
|
<a name="l488"></a> </span><span class=cF6>"$MU,\"Tree Branch\",LE=DOCT_TREE$\n"</span><span class=cF0>
|
|
<a name="l489"></a> </span><span class=cF6>"$MU,\"Color\",LE=DOCT_FOREGROUND$\n"</span><span class=cF0>
|
|
<a name="l490"></a> </span><span class=cF6>"$MU,\"Page Settings\",LE=DOCT_PAGE_LEN$\n"</span><span class=cF0>
|
|
<a name="l491"></a> </span><span class=cF6>"$MU,\"Cursor Movement\",LE=DOCT_CURSOR_MOVEMENT$\n"</span><span class=cF0>
|
|
<a name="l492"></a> </span><span class=cF6>"$MU,\"Macro\",LE=DOCT_MACRO$\n"</span><span class=cF0>
|
|
<a name="l493"></a> </span><span class=cF6>"$MU,\"Bttn\",LE=DOCT_BTTN$\n"</span><span class=cF0>
|
|
<a name="l494"></a> </span><span class=cF6>"$MU,\"Check Box\",LE=DOCT_CHECK_BOX$\n"</span><span class=cF0>
|
|
<a name="l495"></a> </span><span class=cF6>"$MU,\"List\",LE=DOCT_LST$\n"</span><span class=cF0>
|
|
<a name="l496"></a> </span><span class=cF6>"$MU,\"Menu Val\",LE=DOCT_MENU_VAL$\n"</span><span class=cF0>
|
|
<a name="l497"></a> </span><span class=cF6>"$MU,\"Data\",LE=DOCT_DATA$\n"</span><span class=cF0>
|
|
<a name="l498"></a> </span><span class=cF6>"$MU,\"Hex Edit\",LE=DOCT_HEX_ED$\n"</span><span class=cF0>
|
|
<a name="l499"></a> </span><span class=cF6>"$MU,\"Syntax Highlight ON\",LE=WIZ_HIGHLIGHT_ON$\n"</span><span class=cF0>
|
|
<a name="l500"></a> </span><span class=cF6>"$MU,\"Syntax Highlight OFF\",LE=WIZ_HIGHLIGHT_OFF$\n"</span><span class=cF0>
|
|
<a name="l501"></a> </span><span class=cF6>"$MU,\"HTML\",LE=DOCT_HTML_CODE$\n"</span><span class=cF0>
|
|
<a name="l502"></a> </span><span class=cF6>"$MU,\"Song\",LE=DOCT_SONG$\n"</span><span class=cF0>
|
|
<a name="l503"></a> </span><span class=cF6>"%s"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l512"></a> </span><span class=cF1>Bool</span><span class=cF0> left_x format </span><span class=cF6>"$CB,\"Left X\"$\n"</span><span class=cF0>,
|
|
<a name="l513"></a> center_x format </span><span class=cF6>"$CB,\"Center X\"$\n"</span><span class=cF0>,
|
|
<a name="l514"></a> right_x format </span><span class=cF6>"$CB,\"Right X\"$\n"</span><span class=cF0>,
|
|
<a name="l515"></a> margin_rel format </span><span class=cF6>"$CB,\"Margin Rel X\"$\n"</span><span class=cF0>,
|
|
<a name="l516"></a> blink format </span><span class=cF6>"$CB,\"Blink\"$\n"</span><span class=cF0>,
|
|
<a name="l517"></a> invert format </span><span class=cF6>"$CB,\"Invert\"$\n"</span><span class=cF0>,
|
|
<a name="l518"></a> underline format </span><span class=cF6>"$CB,\"Underline\"$\n"</span><span class=cF0>,
|
|
<a name="l519"></a> tree format </span><span class=cF6>"$CB,\"Tree\"$\n"</span><span class=cF0>,
|
|
<a name="l520"></a> collapsed format </span><span class=cF6>"$CB,\"Collapsed\"$\n"</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>"$DA-P,A=\"Scroll X Length Expression:%s\"$\n"</span><span class=cF0>,
|
|
<a name="l522"></a> shift_x [512] format </span><span class=cF6>"$DA-P,A=\"X Offset Expression :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l523"></a> shift_y [512] format </span><span class=cF6>"$DA-P,A=\"Y Offset Expression :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l524"></a> define_str[512] format </span><span class=cF6>"$DA-P,A=\"Define Str :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l525"></a> html_link[512] format </span><span class=cF6>"$DA-P,A=\"Html Link :%s\"$\n"</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->left_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LX"</span><span class=cF0>);
|
|
<a name="l535"></a> </span><span class=cF1>if</span><span class=cF0> (e->center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+CX"</span><span class=cF0>);
|
|
<a name="l536"></a> </span><span class=cF1>if</span><span class=cF0> (e->right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RX"</span><span class=cF0>);
|
|
<a name="l537"></a> </span><span class=cF1>if</span><span class=cF0> (e->margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+MRX"</span><span class=cF0>);
|
|
<a name="l538"></a> </span><span class=cF1>if</span><span class=cF0> (e->blink) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+BK"</span><span class=cF0>);
|
|
<a name="l539"></a> </span><span class=cF1>if</span><span class=cF0> (e->invert) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+IV"</span><span class=cF0>);
|
|
<a name="l540"></a> </span><span class=cF1>if</span><span class=cF0> (e->underline) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+UL"</span><span class=cF0>);
|
|
<a name="l541"></a> </span><span class=cF1>if</span><span class=cF0> (e->tree) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+TR"</span><span class=cF0>);
|
|
<a name="l542"></a> </span><span class=cF1>if</span><span class=cF0> (e->collapsed) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+C"</span><span class=cF0>);
|
|
<a name="l543"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l544"></a> </span><span class=cF6>"$TX%s,\"%$Q\""</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->shift_x)
|
|
<a name="l547"></a> </span><span class=cF6>",SX=%s"</span><span class=cF0>,e->shift_x;
|
|
<a name="l548"></a> </span><span class=cF1>if</span><span class=cF0> (*e->shift_y)
|
|
<a name="l549"></a> </span><span class=cF6>",SY=%s"</span><span class=cF0>,e->shift_y;
|
|
<a name="l550"></a> </span><span class=cF1>if</span><span class=cF0> (*e->scroll_x)
|
|
<a name="l551"></a> </span><span class=cF6>",SCX=%s"</span><span class=cF0>,e->scroll_x;
|
|
<a name="l552"></a> </span><span class=cF1>if</span><span class=cF0> (*e->define_str) {
|
|
<a name="l553"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->define_str);
|
|
<a name="l554"></a> </span><span class=cF6>",D=\"%$Q\""</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->html_link) {
|
|
<a name="l558"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->html_link);
|
|
<a name="l559"></a> </span><span class=cF6>",HTML=\"%$Q\""</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>"$"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l570"></a> song[512] format </span><span class=cF6>"$DA-P,A=\"Song :%s\"$\n"</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>"$SO,\"%$Q\",A=\"%s\"$"</span><span class=cF0>,e->tag,e->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>"$DA-P,A=\"Html Code:%s\"$\n"</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>"$HC,\"%$Q\"$"</span><span class=cF0>,e->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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l597"></a> left_macro[512] format </span><span class=cF6>"$DA-P,A=\"Left Click Macro :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l598"></a> left_exp[512] format </span><span class=cF6>"$DA-P,A=\"Left Click Expression :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l599"></a> </span><span class=cF1>Bool</span><span class=cF0> popup format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l600"></a> left_is_in_str format </span><span class=cF6>"$CB,\"Left is InStr\"$\n"</span><span class=cF0>,
|
|
<a name="l601"></a> left_x format </span><span class=cF6>"$CB,\"Left X \"$\n"</span><span class=cF0>,
|
|
<a name="l602"></a> center_x format </span><span class=cF6>"$CB,\"Center X \"$\n"</span><span class=cF0>,
|
|
<a name="l603"></a> right_x format </span><span class=cF6>"$CB,\"Right X \"$\n"</span><span class=cF0>,
|
|
<a name="l604"></a> margin_rel format </span><span class=cF6>"$CB,\"Margin Rel X\"$\n"</span><span class=cF0>,
|
|
<a name="l605"></a> blink format </span><span class=cF6>"$CB,\"Blink\"$\n"</span><span class=cF0>,
|
|
<a name="l606"></a> invert format </span><span class=cF6>"$CB,\"Invert\"$\n"</span><span class=cF0>,
|
|
<a name="l607"></a> underline format </span><span class=cF6>"$CB,\"Underline\"$\n"</span><span class=cF0>,
|
|
<a name="l608"></a> escape format </span><span class=cF6>"$CB,\"Escape\"$\n"</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>"$DA-P,A=\"Scroll X Length Expression:%s\"$\n"</span><span class=cF0>,
|
|
<a name="l610"></a> shift_x[512] format </span><span class=cF6>"$DA-P,A=\"X Offset Expression :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l611"></a> shift_y[512] format </span><span class=cF6>"$DA-P,A=\"Y Offset Expression :%s\"$\n"</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->underline=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l619"></a> e->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->popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+PU-X"</span><span class=cF0>);
|
|
<a name="l623"></a> </span><span class=cF1>if</span><span class=cF0> (e->left_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LX"</span><span class=cF0>);
|
|
<a name="l624"></a> </span><span class=cF1>if</span><span class=cF0> (e->center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+CX"</span><span class=cF0>);
|
|
<a name="l625"></a> </span><span class=cF1>if</span><span class=cF0> (e->right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RX"</span><span class=cF0>);
|
|
<a name="l626"></a> </span><span class=cF1>if</span><span class=cF0> (e->margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+MRX"</span><span class=cF0>);
|
|
<a name="l627"></a> </span><span class=cF1>if</span><span class=cF0> (e->blink) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+BK"</span><span class=cF0>);
|
|
<a name="l628"></a> </span><span class=cF1>if</span><span class=cF0> (e->invert) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+IV"</span><span class=cF0>);
|
|
<a name="l629"></a> </span><span class=cF1>if</span><span class=cF0> (!e->underline) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-UL"</span><span class=cF0>);
|
|
<a name="l630"></a> </span><span class=cF1>if</span><span class=cF0> (!e->escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-X"</span><span class=cF0>);
|
|
<a name="l631"></a> </span><span class=cF1>if</span><span class=cF0> (e->left_is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LIS"</span><span class=cF0>);
|
|
<a name="l632"></a> </span><span class=cF1>if</span><span class=cF0> (*e->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->tag) {
|
|
<a name="l635"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l636"></a> </span><span class=cF6>"$MA%s,\"%$Q\""</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>"$MA%s"</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>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l642"></a> </span><span class=cF6>"$MU%s,\"%$Q\""</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->left_exp)
|
|
<a name="l646"></a> </span><span class=cF6>",LE=%s"</span><span class=cF0>,e->left_exp;
|
|
<a name="l647"></a> </span><span class=cF1>if</span><span class=cF0> (*e->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>"%q"</span><span class=cF0>,e->left_macro);
|
|
<a name="l649"></a> </span><span class=cF6>",LM=\"%$Q\""</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->shift_x)
|
|
<a name="l653"></a> </span><span class=cF6>",SX=%s"</span><span class=cF0>,e->shift_x;
|
|
<a name="l654"></a> </span><span class=cF1>if</span><span class=cF0> (*e->shift_y)
|
|
<a name="l655"></a> </span><span class=cF6>",SY=%s"</span><span class=cF0>,e->shift_y;
|
|
<a name="l656"></a> </span><span class=cF1>if</span><span class=cF0> (*e->scroll_x)
|
|
<a name="l657"></a> </span><span class=cF6>",SCX=%s"</span><span class=cF0>,e->scroll_x;
|
|
<a name="l658"></a> </span><span class=cF6>"$"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l667"></a> </span><span class=cF1>Bool</span><span class=cF0> popup format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l668"></a> left_x format </span><span class=cF6>"$CB,\"Left X \"$\n"</span><span class=cF0>,
|
|
<a name="l669"></a> center_x format </span><span class=cF6>"$CB,\"Center X \"$\n"</span><span class=cF0>,
|
|
<a name="l670"></a> right_x format </span><span class=cF6>"$CB,\"Right X \"$\n"</span><span class=cF0>,
|
|
<a name="l671"></a> margin_rel format </span><span class=cF6>"$CB,\"Margin Rel X\"$\n"</span><span class=cF0>,
|
|
<a name="l672"></a> escape format </span><span class=cF6>"$CB,\"Escape\"$\n"</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>"$DA-P,A=\"Left Click Macro:%s\"$\n"</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>"$CB,\"Left is InStr\"$\n"</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>"$DA-P,A=\"Left Click Expression:%s\"$\n"</span><span class=cF0>;
|
|
<a name="l676"></a> </span><span class=cF1>Bool</span><span class=cF0> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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->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->popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+PU-X"</span><span class=cF0>);
|
|
<a name="l687"></a> </span><span class=cF1>if</span><span class=cF0> (e->left_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LX"</span><span class=cF0>);
|
|
<a name="l688"></a> </span><span class=cF1>if</span><span class=cF0> (e->center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+CX"</span><span class=cF0>);
|
|
<a name="l689"></a> </span><span class=cF1>if</span><span class=cF0> (e->right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RX"</span><span class=cF0>);
|
|
<a name="l690"></a> </span><span class=cF1>if</span><span class=cF0> (e->margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+MRX"</span><span class=cF0>);
|
|
<a name="l691"></a> </span><span class=cF1>if</span><span class=cF0> (!e->escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-X"</span><span class=cF0>);
|
|
<a name="l692"></a> </span><span class=cF1>if</span><span class=cF0> (e->left_is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LIS"</span><span class=cF0>);
|
|
<a name="l693"></a> </span><span class=cF1>if</span><span class=cF0> (*e->tag) {
|
|
<a name="l694"></a> </span><span class=cF1>if</span><span class=cF0> (e->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>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l696"></a> </span><span class=cF6>"$$BT%s,\\\"%$Q\\\""</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->left_exp)
|
|
<a name="l699"></a> </span><span class=cF6>",LE=%s"</span><span class=cF0>,e->left_exp;
|
|
<a name="l700"></a> </span><span class=cF1>if</span><span class=cF0> (*e->left_macro) {
|
|
<a name="l701"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->left_macro);
|
|
<a name="l702"></a> </span><span class=cF6>",LM=\\\"%$Q\\\""</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>"$$"</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>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l708"></a> </span><span class=cF6>"$BT%s,\"%$Q\""</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->left_exp)
|
|
<a name="l711"></a> </span><span class=cF6>",LE=%s"</span><span class=cF0>,e->left_exp;
|
|
<a name="l712"></a> </span><span class=cF1>if</span><span class=cF0> (*e->left_macro) {
|
|
<a name="l713"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->left_macro);
|
|
<a name="l714"></a> </span><span class=cF6>",LM=\"%$Q\""</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>"$"</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>"$DA-P,A=\"X Expression (LE):%s\"$\n"</span><span class=cF0>,
|
|
<a name="l727"></a> right_exp[512] format </span><span class=cF6>"$DA-P,A=\"Y Expression (RE):%s\"$\n"</span><span class=cF0>;
|
|
<a name="l728"></a> </span><span class=cF1>Bool</span><span class=cF0> left_x format </span><span class=cF6>"$CB,\"Left X \"$\n"</span><span class=cF0>,
|
|
<a name="l729"></a> center_x format </span><span class=cF6>"$CB,\"Center X \"$\n"</span><span class=cF0>,
|
|
<a name="l730"></a> right_x format </span><span class=cF6>"$CB,\"Right X \"$\n"</span><span class=cF0>,
|
|
<a name="l731"></a> margin_rel format </span><span class=cF6>"$CB,\"Margin Rel X\"$\n"</span><span class=cF0>,
|
|
<a name="l732"></a> top_y format </span><span class=cF6>"$CB,\"Top Y \"$\n"</span><span class=cF0>,
|
|
<a name="l733"></a> center_y format </span><span class=cF6>"$CB,\"Center Y \"$\n"</span><span class=cF0>,
|
|
<a name="l734"></a> bottom_y format </span><span class=cF6>"$CB,\"Bottom Y \"$\n"</span><span class=cF0>,
|
|
<a name="l735"></a> page_rel format </span><span class=cF6>"$CB,\"Page Rel Y\"$\n"</span><span class=cF0>,
|
|
<a name="l736"></a> quote format </span><span class=cF6>"$CB,\"Quote\"$\n"</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->left_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LX"</span><span class=cF0>);
|
|
<a name="l746"></a> </span><span class=cF1>if</span><span class=cF0> (e->center_x) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+CX"</span><span class=cF0>);
|
|
<a name="l747"></a> </span><span class=cF1>if</span><span class=cF0> (e->right_x ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RX"</span><span class=cF0>);
|
|
<a name="l748"></a> </span><span class=cF1>if</span><span class=cF0> (e->margin_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+MRX"</span><span class=cF0>);
|
|
<a name="l749"></a> </span><span class=cF1>if</span><span class=cF0> (e->top_y ) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+TY"</span><span class=cF0>);
|
|
<a name="l750"></a> </span><span class=cF1>if</span><span class=cF0> (e->center_y) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+CY"</span><span class=cF0>);
|
|
<a name="l751"></a> </span><span class=cF1>if</span><span class=cF0> (e->bottom_y) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+BY"</span><span class=cF0>);
|
|
<a name="l752"></a> </span><span class=cF1>if</span><span class=cF0> (e->page_rel) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+PRY"</span><span class=cF0>);
|
|
<a name="l753"></a> </span><span class=cF1>if</span><span class=cF0> (!*e->left_exp) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-LE"</span><span class=cF0>);
|
|
<a name="l754"></a> </span><span class=cF1>if</span><span class=cF0> (!*e->right_exp) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-RE"</span><span class=cF0>);
|
|
<a name="l755"></a> </span><span class=cF1>if</span><span class=cF0> (e->quote)
|
|
<a name="l756"></a> </span><span class=cF6>"$"</span><span class=cF0>;
|
|
<a name="l757"></a> </span><span class=cF6>"$CM%s"</span><span class=cF0>,buf;
|
|
<a name="l758"></a> </span><span class=cF1>if</span><span class=cF0> (*e->left_exp)
|
|
<a name="l759"></a> </span><span class=cF6>",LE=%s"</span><span class=cF0>,e->left_exp;
|
|
<a name="l760"></a> </span><span class=cF1>if</span><span class=cF0> (*e->right_exp)
|
|
<a name="l761"></a> </span><span class=cF6>",RE=%s"</span><span class=cF0>,e->right_exp;
|
|
<a name="l762"></a> </span><span class=cF6>"$"</span><span class=cF0>;
|
|
<a name="l763"></a> </span><span class=cF1>if</span><span class=cF0> (e->quote)
|
|
<a name="l764"></a> </span><span class=cF6>"$"</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>"$DA-P,A=\"Format Str:%s\"$\n"</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>"$CB,\"Form Field Terminator\"$\n"</span><span class=cF0>,
|
|
<a name="l774"></a> remalloc,
|
|
<a name="l775"></a> refresh format </span><span class=cF6>"$CB,\"Refresh Data\"$\n"</span><span class=cF0>,
|
|
<a name="l776"></a> update format </span><span class=cF6>"$CB,\"Update Data\"$\n"</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>"$DA-P,A=\"Format Str:%s\"$\n"</span><span class=cF0>;
|
|
<a name="l782"></a> </span><span class=cF9>I64</span><span class=cF0> len format </span><span class=cF6>"$DA,A=\"Length:%d\"$\n"</span><span class=cF0>;
|
|
<a name="l783"></a> </span><span class=cF1>Bool</span><span class=cF0> term format </span><span class=cF6>"$CB,\"Zero Terminator\"$\n"</span><span class=cF0>,
|
|
<a name="l784"></a> remalloc format </span><span class=cF6>"$CB,\"Remalloc for Unlimited Length\"$\n"</span><span class=cF0>,
|
|
<a name="l785"></a> refresh format </span><span class=cF6>"$CB,\"Refresh Data\"$\n"</span><span class=cF0>,
|
|
<a name="l786"></a> update format </span><span class=cF6>"$CB,\"Update Data\"$\n"</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->term=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l795"></a> e->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>"ST_NATURAL_TYPES"</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>>=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->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>"+M"</span><span class=cF0>);
|
|
<a name="l805"></a> e->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>"-P"</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>",RT=%Z"</span><span class=cF0>,type,</span><span class=cF6>"ST_RAW_TYPES"</span><span class=cF0>);
|
|
<a name="l817"></a>
|
|
<a name="l818"></a> </span><span class=cF1>if</span><span class=cF0> (!e->term) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-TRM"</span><span class=cF0>);
|
|
<a name="l819"></a> </span><span class=cF1>if</span><span class=cF0> (e->refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RD"</span><span class=cF0>);
|
|
<a name="l820"></a> </span><span class=cF1>if</span><span class=cF0> (e->update) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+UD"</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>"%q"</span><span class=cF0>,e->fmt_str);
|
|
<a name="l823"></a> </span><span class=cF1>if</span><span class=cF0> (e->remalloc)
|
|
<a name="l824"></a> </span><span class=cF6>"$$DA%s,A=\\\"%$Q\\\"$$"</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->len==</span><span class=cF3>DOCE_LEN_DFT</span><span class=cF0>)
|
|
<a name="l826"></a> </span><span class=cF6>"$$DA%s%s,A=\\\"%$Q\\\"$$"</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>"$$DA%s,LEN=%d%s,A=\\\"%$Q\\\"$$"</span><span class=cF0>,buf,e->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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l838"></a> </span><span class=cF1>Bool</span><span class=cF0> refresh format </span><span class=cF6>"$CB,\"Refresh Data\"$\n"</span><span class=cF0>;
|
|
<a name="l839"></a> </span><span class=cF9>I64</span><span class=cF0> type format </span><span class=cF6>"$LS,D=\"ST_INT_SIZE_TYPES\"$\n"</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->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->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->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>",RT=%Z"</span><span class=cF0>,e->type,</span><span class=cF6>"ST_RAW_TYPES"</span><span class=cF0>);
|
|
<a name="l854"></a> </span><span class=cF1>if</span><span class=cF0> (e->refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RD"</span><span class=cF0>);
|
|
<a name="l855"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l856"></a> </span><span class=cF6>"$$CB%s%s,\\\"%$Q\\\"$$"</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>"$DA-P,A=\"Dft Sel :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l865"></a> define_str[512] format </span><span class=cF6>"$DA-P,A=\"Define Str :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l866"></a> </span><span class=cF1>Bool</span><span class=cF0> refresh format </span><span class=cF6>"$CB,\"Refresh Data\"$\n"</span><span class=cF0>;
|
|
<a name="l867"></a> </span><span class=cF9>I64</span><span class=cF0> type format </span><span class=cF6>"$LS,D=\"ST_INT_SIZE_TYPES\"$\n"</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->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->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->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>",RT=%Z"</span><span class=cF0>,e->type,</span><span class=cF6>"ST_RAW_TYPES"</span><span class=cF0>);
|
|
<a name="l882"></a> </span><span class=cF1>if</span><span class=cF0> (e->refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RD"</span><span class=cF0>);
|
|
<a name="l883"></a> </span><span class=cF1>if</span><span class=cF0> (!*e->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>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l887"></a> st2=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->define_str);
|
|
<a name="l888"></a> </span><span class=cF1>if</span><span class=cF0> (st1)
|
|
<a name="l889"></a> </span><span class=cF6>"$$LS%s%s,\\\"%$Q\\\",D=\\\"%$Q\\\"$$"</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>"$$LS%s%s,D=\\\"%$Q\\\"$$"</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>"$DA,A=\"Count:%d\"$\n"</span><span class=cF0>,
|
|
<a name="l901"></a> cols format </span><span class=cF6>"$DA,A=\"Columns:%d\"$\n"</span><span class=cF0>;
|
|
<a name="l902"></a> </span><span class=cF1>Bool</span><span class=cF0> zero format </span><span class=cF6>"$CB,\"Zero Based\"$\n"</span><span class=cF0>,
|
|
<a name="l903"></a> refresh format </span><span class=cF6>"$CB,\"Refresh Data\"$\n"</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->cnt=128;
|
|
<a name="l911"></a> e->cols=4;
|
|
<a name="l912"></a> e->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->zero) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-Z"</span><span class=cF0>);
|
|
<a name="l916"></a> </span><span class=cF1>if</span><span class=cF0> (e->refresh) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+RD"</span><span class=cF0>);
|
|
<a name="l917"></a> </span><span class=cF6>"$$HX%s,%d,%d$$"</span><span class=cF0>,buf,e->cnt,e->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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l925"></a> </span><span class=cF9>I64</span><span class=cF0> bin_num format </span><span class=cF6>"$DA,A=\"Bin Num:%d\"$\n"</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>"$DA-P,A=\"File:%s\"$\n"</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>"$DA,A=\"File Bin Num:%d\"$\n"</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>"$DA-P,A=\"File Bin Tag:%s\"$\n"</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->tag,</span><span class=cF6>"<%d>"</span><span class=cF0>,bin_num);
|
|
<a name="l935"></a> e->bin_num=bin_num;
|
|
<a name="l936"></a> e->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>"Note: Normally, you enter no file,\n"</span><span class=cF0>
|
|
<a name="l939"></a> </span><span class=cF6>"just a bin num. If You enter a\n"</span><span class=cF0>
|
|
<a name="l940"></a> </span><span class=cF6>"file, enter a file bin num or a file\n"</span><span class=cF0>
|
|
<a name="l941"></a> </span><span class=cF6>"bin tag.\n\n"</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->bin_ptr_link_file) {
|
|
<a name="l943"></a> </span><span class=cF1>if</span><span class=cF0> (*e->bin_ptr_link_tag)
|
|
<a name="l944"></a> </span><span class=cF6>"$%Z,\"%$Q\",BI=%d,BP=\"%s,%s\"$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->tag,e->bin_num,
|
|
<a name="l945"></a> e->bin_ptr_link_file,e->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>"$%Z,\"%$Q\",BI=%d,BP=\"%s,%d\"$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->tag,e->bin_num,
|
|
<a name="l948"></a> e->bin_ptr_link_file,e->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->bin_num</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l951"></a> </span><span class=cF6>"$%Z,\"%$Q\",BI=%d$"</span><span class=cF0>,type,</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,e->tag,e->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>"Invalid Binary Num"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l962"></a> </span><span class=cF9>I64</span><span class=cF0> indent format </span><span class=cF6>"$DA,A=\"Indention:%d\"$\n"</span><span class=cF0>;
|
|
<a name="l963"></a> </span><span class=cF1>Bool</span><span class=cF0> collapsed format </span><span class=cF6>"$CB,\"Collapsed\"$\n"</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->collapsed=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l971"></a> e->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->collapsed) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"-C"</span><span class=cF0>);
|
|
<a name="l975"></a> st1=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->tag);
|
|
<a name="l976"></a> st2=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"$TR%s,\"%$Q\"$\n$ID,%d$*\n$ID,%d$"</span><span class=cF0>,
|
|
<a name="l977"></a> buf,st1,e->indent,-e->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>"%s"</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>"$HL,1$"</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>"$HL,0$"</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>"$PURPLE$$TX+CX,\"Graphic Sprite Resource Menu\"$\n"</span><span class=cF0>
|
|
<a name="l1055"></a> </span><span class=cF6>"$LK+PU+CX,\"Click for Help\",A=\"FI:::/Doc/Resource.DD.Z\"$\n\n"</span><span class=cF0>
|
|
<a name="l1056"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Make Sprite\",LE=EST_SPRITE$$FG$\t "</span><span class=cF0>
|
|
<a name="l1057"></a> </span><span class=cF6>"Start by making a sprite.\n"</span><span class=cF0>
|
|
<a name="l1058"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Ptr to Sprite\",LE=EST_SPRITE_PTR$$FG$\t "</span><span class=cF0>
|
|
<a name="l1059"></a> </span><span class=cF6>"Insert pointer into src code.\n"</span><span class=cF0>
|
|
<a name="l1060"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Duplicate Sprite\",LE=EST_DUP_SPRITE$$FG$ "</span><span class=cF0>
|
|
<a name="l1061"></a> </span><span class=cF6>"Make dup image for in a doc.\n"</span><span class=cF0>
|
|
<a name="l1062"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Sprite Size\",LE=EST_SPRITE_SIZE$$FG$\t "</span><span class=cF0>
|
|
<a name="l1063"></a> </span><span class=cF6>"Insert size of a sprite into src code.\n"</span><span class=cF0>
|
|
<a name="l1064"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Sprite Macro\",LE=EST_SPRITE_MACRO$$FG$\t "</span><span class=cF0>
|
|
<a name="l1065"></a> </span><span class=cF6>"Create icon with auto-text payload.\n"</span><span class=cF0>
|
|
<a name="l1066"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Sprite Menu Item\",LE=EST_SPRITE_MENU$$FG$ "</span><span class=cF0>
|
|
<a name="l1067"></a> </span><span class=cF6>"Create icon with numeric payload.\n"</span><span class=cF0>
|
|
<a name="l1068"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Sprite Link\",LE=EST_SPRITE_LINK$$FG$\t "</span><span class=cF0>
|
|
<a name="l1069"></a> </span><span class=cF6>"Create icon with link payload.\n\n"</span><span class=cF0>
|
|
<a name="l1070"></a> </span><span class=cF6>"$LTBLUE$$MU,\"Abort\",LE=DOCM_CANCEL$\n\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l1079"></a> exp[512] format </span><span class=cF6>"$DA-P,A=\"Macro :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l1080"></a> </span><span class=cF1>Bool</span><span class=cF0> escape format </span><span class=cF6>"$CB,\"Escape\"$\n"</span><span class=cF0>,
|
|
<a name="l1081"></a> popup format </span><span class=cF6>"$CB,\"PopUp\"$\n"</span><span class=cF0>,
|
|
<a name="l1082"></a> is_in_str format </span><span class=cF6>"$CB,\"InStr\"$\n"</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>"$DA-P,A=\"Tag Text :%s\"$\n"</span><span class=cF0>,
|
|
<a name="l1088"></a> exp[512] format </span><span class=cF6>"$DA-P,A=\"Expression :%s\"$\n"</span><span class=cF0>;
|
|
<a name="l1089"></a> </span><span class=cF1>Bool</span><span class=cF0> escape format </span><span class=cF6>"$CB,\"Escape\"$\n"</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>=0 && </span><span class=cF5>GetLink</span><span class=cF7>(</span><span class=cF0>type,&tag,&link,_pop_up,&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>"\"%$Q\",A=\"%$Q\""</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>"\"<%d>\""</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->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>"+UL"</span><span class=cF0>);
|
|
<a name="l1122"></a> </span><span class=cF1>if</span><span class=cF0> (e->is_in_str) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+LIS"</span><span class=cF0>);
|
|
<a name="l1123"></a> </span><span class=cF1>if</span><span class=cF0> (e->popup) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+PU"</span><span class=cF0>);
|
|
<a name="l1124"></a> </span><span class=cF1>if</span><span class=cF0> (e->escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+X"</span><span class=cF0>);
|
|
<a name="l1125"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%q"</span><span class=cF0>,e->exp);
|
|
<a name="l1126"></a> st1=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"\"%$Q\",LM=\"%$Q\""</span><span class=cF0>,e->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->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>"CEdMenuSprite"</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->escape) </span><span class=cF5>CatPrint</span><span class=cF0>(buf,</span><span class=cF6>"+X"</span><span class=cF0>);
|
|
<a name="l1134"></a> st1=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"\"%$Q\",LE=%s"</span><span class=cF0>,e->tag,e->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>"+L"</span><span class=cF0>);
|
|
<a name="l1139"></a> st1=</span><span class=cF5>EdSpriteLink</span><span class=cF0>(&pop_up,&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>"+PU"</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>"$SP%s,%s,HTML=\"%$Q\",BI=%d$"</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>"$SP%s,%s,BI=%d$"</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>
|