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