245 lines
27 KiB
HTML
Executable File
245 lines
27 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="generator" content="TempleOS V5.03">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="/style/templeos.css">
|
|
<script src="/script/templeos.js"></script>
|
|
<style type="text/css">
|
|
.cF0{color:#000000;background-color:#ffffff;}
|
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
|
.cF8{color:#555555;background-color:#ffffff;}
|
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre id="content">
|
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Task;StdOut/Task"</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CDoc</span><span class=cF0> *</span><span class=cF5>DocBorderNew</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *pdoc)
|
|
<a name="l3"></a>{</span><span class=cF2>//Make new std border doc.</span><span class=cF0>
|
|
<a name="l4"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e;
|
|
<a name="l5"></a> </span><span class=cF9>CDoc</span><span class=cF0> *bdoc;
|
|
<a name="l6"></a>
|
|
<a name="l7"></a> bdoc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l8"></a> bdoc->flags|=</span><span class=cF3>DOCF_BORDER_DOC</span><span class=cF0>;
|
|
<a name="l9"></a> </span><span class=cF1>if</span><span class=cF0> (pdoc) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l10"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$CM+H+BY+RX+NC,-7,1$"</span><span class=cF0>);
|
|
<a name="l11"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+H+BD+TC,\" \"$"</span><span class=cF0>);
|
|
<a name="l12"></a> doc_e->user_data=pdoc;
|
|
<a name="l13"></a> doc_e->tag_cb=&</span><span class=cF5>EdFilterCB</span><span class=cF0>;
|
|
<a name="l14"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+H+BD+TC,\" \"$"</span><span class=cF0>);
|
|
<a name="l15"></a> doc_e->user_data=pdoc;
|
|
<a name="l16"></a> doc_e->tag_cb=&</span><span class=cF5>EdOverStrikeCB</span><span class=cF0>;
|
|
<a name="l17"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+H+BD+TC,\" \"$"</span><span class=cF0>);
|
|
<a name="l18"></a> doc_e->user_data=pdoc;
|
|
<a name="l19"></a> doc_e->tag_cb=&</span><span class=cF5>EdDollarCB</span><span class=cF0>;
|
|
<a name="l20"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$CM+H+BY+RX+NC,-18,1$"</span><span class=cF0>);
|
|
<a name="l21"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+BD+TC,\" \"$"</span><span class=cF0>);
|
|
<a name="l22"></a> doc_e->user_data=pdoc;
|
|
<a name="l23"></a> doc_e->tag_cb=&</span><span class=cF5>EdMoreCB</span><span class=cF0>;
|
|
<a name="l24"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+H+BD+TC,\" \"$"</span><span class=cF0>);
|
|
<a name="l25"></a> doc_e->user_data=pdoc;
|
|
<a name="l26"></a> doc_e->tag_cb=&</span><span class=cF5>EdDollarTypeCB</span><span class=cF0>;
|
|
<a name="l27"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l28"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$CM+H+TY+NC,0,-1$"</span><span class=cF0>);
|
|
<a name="l29"></a> doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$DA+H-TRM-P+BD+RD+CX+IV,LEN=STR_LEN-1,"</span><span class=cF0>
|
|
<a name="l30"></a> </span><span class=cF6>"A=\"%%s...\",SCX=15$"</span><span class=cF0>);
|
|
<a name="l31"></a> doc_e->data=&</span><span class=cF5>Fs</span><span class=cF0>->task_title;
|
|
<a name="l32"></a> </span><span class=cF5>DocDataFmt</span><span class=cF0>(bdoc,doc_e);
|
|
<a name="l33"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$CM+H+NC,1,0$$TX+H+BD+IV,\"%X\"$"</span><span class=cF0>,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l34"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$TX+H+RX+BD,\"[X]\"$"</span><span class=cF0>);
|
|
<a name="l35"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(bdoc,</span><span class=cF6>"$BK,1$$TX+H+LX+BD,\"MENU\"$$BK,0$"</span><span class=cF0>);
|
|
<a name="l36"></a> </span><span class=cF1>return</span><span class=cF0> bdoc;
|
|
<a name="l37"></a>}
|
|
<a name="l38"></a>
|
|
<a name="l39"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocTermNew</span><span class=cF0>()
|
|
<a name="l40"></a>{</span><span class=cF2>//Make into term win task with Put/Display/Border docs.</span><span class=cF0>
|
|
<a name="l41"></a> </span><span class=cF9>CDoc</span><span class=cF0> *pdoc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l42"></a> pdoc->right_click_link=&</span><span class=cF5>TermRightClickLink</span><span class=cF0>;
|
|
<a name="l43"></a> pdoc->max_entries=4096;
|
|
<a name="l44"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_src=</span><span class=cF3>BDS_CUR_DRV</span><span class=cF0>;
|
|
<a name="l45"></a> pdoc->desc=</span><span class=cF6>'Term'</span><span class=cF0>;
|
|
<a name="l46"></a> </span><span class=cF5>Fs</span><span class=cF0>->put_doc=</span><span class=cF5>Fs</span><span class=cF0>->display_doc=pdoc;
|
|
<a name="l47"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_doc=</span><span class=cF5>DocBorderNew</span><span class=cF0>(pdoc);
|
|
<a name="l48"></a> </span><span class=cF5>Fs</span><span class=cF0>->cur_menu=</span><span class=cF5>MenuFile</span><span class=cF0>(</span><span class=cF6>"::/Doc/EdPullDown.DD"</span><span class=cF0>);
|
|
<a name="l49"></a> </span><span class=cF5>WinScrollsInit</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l50"></a> </span><span class=cF5>Raw</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
|
<a name="l51"></a>}
|
|
<a name="l52"></a>
|
|
<a name="l53"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc"</span><span class=cF0>
|
|
<a name="l54"></a>
|
|
<a name="l55"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_INCLUDE</span><span class=cF0> 0
|
|
<a name="l56"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_AINCLUDE</span><span class=cF0> 1
|
|
<a name="l57"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_COPY</span><span class=cF0> 2
|
|
<a name="l58"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_MOVE</span><span class=cF0> 3
|
|
<a name="l59"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_DELETE</span><span class=cF0> 4
|
|
<a name="l60"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_TYPE</span><span class=cF0> 5
|
|
<a name="l61"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_ED</span><span class=cF0> 6
|
|
<a name="l62"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_MOUNT</span><span class=cF0> 7
|
|
<a name="l63"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_PLAIN</span><span class=cF0> 8
|
|
<a name="l64"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>RIGHT_INFILE</span><span class=cF0> 9
|
|
<a name="l65"></a>
|
|
<a name="l66"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpTermRight</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header)
|
|
<a name="l67"></a>{
|
|
<a name="l68"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l69"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l70"></a> </span><span class=cF1>if</span><span class=cF0> (header) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l71"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n\n"</span><span class=cF0>
|
|
<a name="l72"></a> </span><span class=cF6>"TXT=%s\nDD =%s\nJIT=%s\nGR =%s"</span><span class=cF0>
|
|
<a name="l73"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"Include JIT\",LE=RIGHT_INCLUDE$"</span><span class=cF0>
|
|
<a name="l74"></a> </span><span class=cF6>"$CM+LX,25,0$$BT,\"Adam Include JIT\",LE=RIGHT_AINCLUDE$"</span><span class=cF0>
|
|
<a name="l75"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"Copy \",LE=RIGHT_COPY$"</span><span class=cF0>
|
|
<a name="l76"></a> </span><span class=cF6>"$CM+LX,25,0$$BT,\"Move or Rename \",LE=RIGHT_MOVE$"</span><span class=cF0>
|
|
<a name="l77"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"Delete \",LE=RIGHT_DELETE$"</span><span class=cF0>
|
|
<a name="l78"></a> </span><span class=cF6>"$CM+LX,25,0$$BT,\"Type TXT;GR\",LE=RIGHT_TYPE$"</span><span class=cF0>
|
|
<a name="l79"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"DolDoc Edit DD\",LE=RIGHT_ED$"</span><span class=cF0>
|
|
<a name="l80"></a> </span><span class=cF6>"$CM+LX,25,0$$BT,\"Mount ISO.C\",LE=RIGHT_MOUNT$"</span><span class=cF0>
|
|
<a name="l81"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"Plain Text Edit TXT\",LE=RIGHT_PLAIN$"</span><span class=cF0>
|
|
<a name="l82"></a> </span><span class=cF6>"$CM+LX,25,0$$BT,\"Infile IN\",LE=RIGHT_INFILE$"</span><span class=cF0>
|
|
<a name="l83"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"Cancel \",LE=DOCM_CANCEL$\n"</span><span class=cF0>,
|
|
<a name="l84"></a> </span><span class=cF3>FILEMASK_TXT</span><span class=cF0>,</span><span class=cF3>FILEMASK_DD</span><span class=cF0>,</span><span class=cF3>FILEMASK_JIT</span><span class=cF0>,</span><span class=cF3>FILEMASK_GR</span><span class=cF0>);
|
|
<a name="l85"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l86"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l87"></a> </span><span class=cF1>return</span><span class=cF0> i;
|
|
<a name="l88"></a>}
|
|
<a name="l89"></a>
|
|
<a name="l90"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>EdLeftClickLink</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e)
|
|
<a name="l91"></a>{</span><span class=cF2>//Called with doc locked, exit unlocked</span><span class=cF0>
|
|
<a name="l92"></a> </span><span class=cF1>Bool</span><span class=cF0> res;
|
|
<a name="l93"></a> </span><span class=cF1>U8</span><span class=cF0> *st;
|
|
<a name="l94"></a> </span><span class=cF1>if</span><span class=cF0> (st=</span><span class=cF5>DocEntryLink</span><span class=cF7>(</span><span class=cF0>doc,doc_e</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l95"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
|
<a name="l96"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_POPUP</span><span class=cF0>)
|
|
<a name="l97"></a> res=</span><span class=cF5>PopUpEd</span><span class=cF0>(st);
|
|
<a name="l98"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l99"></a> res=</span><span class=cF5>Ed</span><span class=cF0>(st);
|
|
<a name="l100"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l101"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l102"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l103"></a>}
|
|
<a name="l104"></a>
|
|
<a name="l105"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>TermRightClickLink</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e)
|
|
<a name="l106"></a>{</span><span class=cF2>//Called with doc locked, exit unlocked</span><span class=cF0>
|
|
<a name="l107"></a> </span><span class=cF1>Bool</span><span class=cF0> send_new_line=</span><span class=cF3>FALSE</span><span class=cF0>,res=</span><span class=cF3>FALSE</span><span class=cF0>;
|
|
<a name="l108"></a> </span><span class=cF1>U8</span><span class=cF0> *st,*st2;
|
|
<a name="l109"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l110"></a> </span><span class=cF9>CEdFileName</span><span class=cF0> fn;
|
|
<a name="l111"></a> </span><span class=cF1>if</span><span class=cF0> (st2=</span><span class=cF5>DocEntryLink</span><span class=cF7>(</span><span class=cF0>doc,doc_e</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l112"></a> </span><span class=cF1>if</span><span class=cF0> (st=</span><span class=cF5>DocLinkFile</span><span class=cF7>(</span><span class=cF0>st2</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l113"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
|
<a name="l114"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>i=</span><span class=cF5>PopUpTermRight</span><span class=cF0>(st)</span><span class=cF7>)</span><span class=cF0>>=0) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l115"></a> </span><span class=cF5>DocBottom</span><span class=cF0>(doc);
|
|
<a name="l116"></a> </span><span class=cF1>switch</span><span class=cF0> (i) {
|
|
<a name="l117"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_INCLUDE</span><span class=cF0>:
|
|
<a name="l118"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileExtDot</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>st,</span><span class=cF3>FILEMASK_JIT</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l119"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .HC File\n\n"</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l120"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l121"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l122"></a> }
|
|
<a name="l123"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l124"></a> </span><span class=cF6>"#include \"%s\";\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l125"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
|
<a name="l126"></a> </span><span class=cF5>ExeFile</span><span class=cF0>(st,</span><span class=cF3>CCF_CMD_LINE</span><span class=cF0>);
|
|
<a name="l127"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l128"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l129"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_AINCLUDE</span><span class=cF0>:
|
|
<a name="l130"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileExtDot</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>st,</span><span class=cF3>FILEMASK_JIT</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l131"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .HC File\n\n"</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l132"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l133"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l134"></a> }
|
|
<a name="l135"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l136"></a> </span><span class=cF6>"Adam(\"#include \\\"%s\\\"\" );\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l137"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
|
<a name="l138"></a> </span><span class=cF5>AdamFile</span><span class=cF0>(st,</span><span class=cF3>FALSE</span><span class=cF0>);
|
|
<a name="l139"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l140"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l141"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_COPY</span><span class=cF0>:
|
|
<a name="l142"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(fn.name,st);
|
|
<a name="l143"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l144"></a> res=</span><span class=cF5>ToBool</span><span class=cF0>(</span><span class=cF5>Copy</span><span class=cF7>(</span><span class=cF0>st,fn.name</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l145"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l146"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l147"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l148"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_MOVE</span><span class=cF0>:
|
|
<a name="l149"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(fn.name,st);
|
|
<a name="l150"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l151"></a> res=</span><span class=cF5>Move</span><span class=cF0>(st,fn.name);
|
|
<a name="l152"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l153"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l154"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l155"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_DELETE</span><span class=cF0>:
|
|
<a name="l156"></a> res=</span><span class=cF5>ToBool</span><span class=cF0>(</span><span class=cF5>Del</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l157"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l158"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_TYPE</span><span class=cF0>:
|
|
<a name="l159"></a> res=</span><span class=cF5>Type</span><span class=cF0>(st);
|
|
<a name="l160"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l161"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_ED</span><span class=cF0>:
|
|
<a name="l162"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileExtDot</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>st,</span><span class=cF3>FILEMASK_DD</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l163"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not DolDoc File\n\n"</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l164"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l165"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l166"></a> }
|
|
<a name="l167"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l168"></a> </span><span class=cF6>"Ed(\"%s\");\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l169"></a> res=</span><span class=cF5>Ed</span><span class=cF0>(st);
|
|
<a name="l170"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l171"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_MOUNT</span><span class=cF0>:
|
|
<a name="l172"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileExtDot</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>st,</span><span class=cF6>"*.ISO.C"</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l173"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .ISO.C File\n\n"</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l174"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l175"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l176"></a> }
|
|
<a name="l177"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l178"></a> </span><span class=cF6>"MountFile(\"%s\");\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l179"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
|
<a name="l180"></a> </span><span class=cF5>MountFile</span><span class=cF0>(st);
|
|
<a name="l181"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l182"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l183"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_PLAIN</span><span class=cF0>:
|
|
<a name="l184"></a> </span><span class=cF6>"Plain(\"%s\");\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l185"></a> res=</span><span class=cF5>Plain</span><span class=cF0>(st);
|
|
<a name="l186"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l187"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RIGHT_INFILE</span><span class=cF0>:
|
|
<a name="l188"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>FileExtDot</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0> && !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>st,</span><span class=cF6>"*.IN*"</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l189"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .IN File\n\n"</span><span class=cF7>)</span><span class=cF0>) {
|
|
<a name="l190"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l191"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l192"></a> }
|
|
<a name="l193"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l194"></a> </span><span class=cF6>"InFile(\"%s\");\n$PT$$FG$$BG$"</span><span class=cF0>,st;
|
|
<a name="l195"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
|
<a name="l196"></a> </span><span class=cF5>InFile</span><span class=cF0>(st);
|
|
<a name="l197"></a> res=</span><span class=cF3>TRUE</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=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l201"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l202"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l203"></a> } </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l204"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l205"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
|
|
<a name="l206"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l207"></a> send_new_line=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l208"></a> </span><span class=cF5>DocBottom</span><span class=cF0>(doc);
|
|
<a name="l209"></a> </span><span class=cF6>"$PT$$FG$$BG$"</span><span class=cF0>;
|
|
<a name="l210"></a> </span><span class=cF1>if</span><span class=cF0> (send_new_line)
|
|
<a name="l211"></a> </span><span class=cF6>'\n'</span><span class=cF0>;
|
|
<a name="l212"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l213"></a>}
|
|
</span></pre></body>
|
|
</html>
|