376 lines
42 KiB
Plaintext
376 lines
42 KiB
Plaintext
|
<!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/Form"</span><span class=cF0>
|
||
|
<a name="l2"></a>
|
||
|
<a name="l3"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocFormFwd</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF1>Bool</span><span class=cF0> giveup=</span><span class=cF3>FALSE</span><span class=cF0>)
|
||
|
<a name="l4"></a>{
|
||
|
<a name="l5"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->cur_entry,*doc_e2=doc_e;
|
||
|
<a name="l6"></a> </span><span class=cF1>if</span><span class=cF0> (doc->flags & </span><span class=cF3>DOCF_FORM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l7"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e==doc) </span><span class=cF1>goto</span><span class=cF0> ff_recover;
|
||
|
<a name="l8"></a> </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.type_flags_form,doc_e->type_u8</span><span class=cF7>)</span><span class=cF0> &&
|
||
|
<a name="l9"></a> !</span><span class=cF7>(</span><span class=cF0>doc_e->de_flags&</span><span class=cF3>DOCEF_LINK</span><span class=cF7>)</span><span class=cF0> ||
|
||
|
<a name="l10"></a> doc_e->de_flags&</span><span class=cF3>DOCEF_SKIP_IN_FORM</span><span class=cF0>) {
|
||
|
<a name="l11"></a> doc_e=doc_e->next;
|
||
|
<a name="l12"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e==doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l13"></a>ff_recover:
|
||
|
<a name="l14"></a> doc->cur_col=0;
|
||
|
<a name="l15"></a> </span><span class=cF1>if</span><span class=cF0> (!giveup) {
|
||
|
<a name="l16"></a> doc->cur_entry=doc_e->last;
|
||
|
<a name="l17"></a> </span><span class=cF5>DocFormBwd</span><span class=cF0>(doc,</span><span class=cF3>TRUE</span><span class=cF0>);
|
||
|
<a name="l18"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l19"></a> doc->cur_entry=doc;
|
||
|
<a name="l20"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l21"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l22"></a> }
|
||
|
<a name="l23"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l24"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_INDENT</span><span class=cF0>)
|
||
|
<a name="l25"></a> doc_e=doc_e->next;
|
||
|
<a name="l26"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e!=doc_e2) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l27"></a> doc->cur_col=doc_e->min_col;
|
||
|
<a name="l28"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l29"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l30"></a>}
|
||
|
<a name="l31"></a>
|
||
|
<a name="l32"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocFormBwd</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF1>Bool</span><span class=cF0> giveup=</span><span class=cF3>FALSE</span><span class=cF0>)
|
||
|
<a name="l33"></a>{
|
||
|
<a name="l34"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->cur_entry,*doc_e2=doc_e;
|
||
|
<a name="l35"></a> </span><span class=cF1>if</span><span class=cF0> (doc->flags & </span><span class=cF3>DOCF_FORM</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l36"></a> </span><span class=cF1>while</span><span class=cF0> (!</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.type_flags_form,doc_e->type_u8</span><span class=cF7>)</span><span class=cF0> &&
|
||
|
<a name="l37"></a> !</span><span class=cF7>(</span><span class=cF0>doc_e->de_flags&</span><span class=cF3>DOCEF_LINK</span><span class=cF7>)</span><span class=cF0> ||
|
||
|
<a name="l38"></a> doc_e->de_flags&</span><span class=cF3>DOCEF_SKIP_IN_FORM</span><span class=cF0>) {
|
||
|
<a name="l39"></a> doc_e=doc_e->last;
|
||
|
<a name="l40"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e==doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l41"></a> doc->cur_col=0;
|
||
|
<a name="l42"></a> </span><span class=cF1>if</span><span class=cF0> (!giveup) {
|
||
|
<a name="l43"></a> doc->cur_entry=doc_e->next;
|
||
|
<a name="l44"></a> </span><span class=cF5>DocFormFwd</span><span class=cF0>(doc,</span><span class=cF3>TRUE</span><span class=cF0>);
|
||
|
<a name="l45"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l46"></a> doc->cur_entry=doc;
|
||
|
<a name="l47"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l48"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l49"></a> }
|
||
|
<a name="l50"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l51"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_INDENT</span><span class=cF0>)
|
||
|
<a name="l52"></a> doc_e=doc_e->next;
|
||
|
<a name="l53"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e!=doc_e2) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l54"></a> doc->cur_col=doc_e->min_col;
|
||
|
<a name="l55"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l56"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l57"></a>}
|
||
|
<a name="l58"></a>
|
||
|
<a name="l59"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocDataFmt</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,</span><span class=cF9>I64</span><span class=cF0> d=</span><span class=cF3>DOCM_CANCEL</span><span class=cF0>)
|
||
|
<a name="l60"></a>{
|
||
|
<a name="l61"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
||
|
<a name="l62"></a> </span><span class=cF1>U8</span><span class=cF0> *ptr,*ptr2;
|
||
|
<a name="l63"></a> </span><span class=cF9>CHashDefineStr</span><span class=cF0> *tmph;
|
||
|
<a name="l64"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_DATA</span><span class=cF0> && doc_e->de_flags&</span><span class=cF3>DOCEF_AUX_STR</span><span class=cF0> ||
|
||
|
<a name="l65"></a> doc_e->type_u8==</span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF0> || doc_e->de_flags & </span><span class=cF3>DOCEF_LST</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l66"></a> </span><span class=cF1>if</span><span class=cF0> (d==</span><span class=cF3>DOCM_CANCEL</span><span class=cF0>) {
|
||
|
<a name="l67"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags&</span><span class=cF3>DOCEF_DEREF_DATA</span><span class=cF0> &&
|
||
|
<a name="l68"></a> !</span><span class=cF7>(</span><span class=cF0>doc_e->de_flags&</span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l69"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>ptr=doc_e->data</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l70"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l71"></a> ptr=&doc_e->data;
|
||
|
<a name="l72"></a> </span><span class=cF1>switch</span><span class=cF0> (doc_e->raw_type) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l73"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I0</span><span class=cF0>:
|
||
|
<a name="l74"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U0</span><span class=cF0>: d=0; </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l75"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I8</span><span class=cF0>: d=*ptr(</span><span class=cF1>I8</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l76"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U8</span><span class=cF0>: d=*ptr(</span><span class=cF1>U8</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l77"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I16</span><span class=cF0>: d=*ptr(</span><span class=cF9>I16</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l78"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U16</span><span class=cF0>: d=*ptr(</span><span class=cF9>U16</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l79"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I32</span><span class=cF0>: d=*ptr(</span><span class=cF9>I32</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l80"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U32</span><span class=cF0>: d=*ptr(</span><span class=cF9>U32</span><span class=cF0> *); </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l81"></a> </span><span class=cF1>default</span><span class=cF0>: d=*ptr(</span><span class=cF9>I64</span><span class=cF0> *);
|
||
|
<a name="l82"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l83"></a> }
|
||
|
<a name="l84"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_DATA</span><span class=cF0>) {
|
||
|
<a name="l85"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l86"></a> ptr=</span><span class=cF5>MStrPrint</span><span class=cF0>(doc_e->aux_str,d,doc_e->my_fmt_data);
|
||
|
<a name="l87"></a> i=</span><span class=cF5>StrLen</span><span class=cF0>(ptr);
|
||
|
<a name="l88"></a> </span><span class=cF1>if</span><span class=cF0> (!doc_e->data) {
|
||
|
<a name="l89"></a> doc_e->data=</span><span class=cF5>CAlloc</span><span class=cF0>(2,doc->mem_task);
|
||
|
<a name="l90"></a> doc_e->len=</span><span class=cF5>MSize</span><span class=cF0>(doc_e->data)-2;
|
||
|
<a name="l91"></a> }
|
||
|
<a name="l92"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->len+doc_e->min_col>i)
|
||
|
<a name="l93"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(doc_e->tag,ptr,i+1);
|
||
|
<a name="l94"></a> </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l95"></a> ptr2=</span><span class=cF5>MAlloc</span><span class=cF0>(i+8,doc->mem_task);
|
||
|
<a name="l96"></a> doc_e->len=</span><span class=cF5>MSize</span><span class=cF0>(ptr2)-doc_e->min_col-2; </span><span class=cF2>//See </span><a href="/Wb/Adam/DolDoc/DocPlain.HC.HTML#l352"><span class=cF4>DataTagWidth</span></a><span class=cF0>
|
||
|
<a name="l97"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(ptr2,ptr,i+1);
|
||
|
<a name="l98"></a> </span><span class=cF5>Free</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l99"></a> doc_e->tag=ptr2;
|
||
|
<a name="l100"></a> }
|
||
|
<a name="l101"></a> </span><span class=cF5>Free</span><span class=cF0>(ptr);
|
||
|
<a name="l102"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l103"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(doc_e->tag,doc_e->aux_str,d,doc_e->my_fmt_data);
|
||
|
<a name="l104"></a> i=</span><span class=cF5>StrLen</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l105"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l106"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_HAS_TERMINATOR</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l107"></a> doc_e->tag[i++]=</span><span class=cF6>'_'</span><span class=cF0>;
|
||
|
<a name="l108"></a> doc_e->tag[i]=0;
|
||
|
<a name="l109"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l110"></a> doc_e->max_col=i;
|
||
|
<a name="l111"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_LST</span><span class=cF0>) {
|
||
|
<a name="l112"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_DEFINE</span><span class=cF0> && </span><span class=cF7>(</span><span class=cF0>tmph=</span><span class=cF5>HashFind</span><span class=cF0>(doc_e->define_str,
|
||
|
<a name="l113"></a> doc->win_task->hash_table,</span><span class=cF3>HTT_DEFINE_STR</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0> && 0<=d<tmph->cnt) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l114"></a> ptr=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"[%s]"</span><span class=cF0>,tmph->sub_idx[d]);
|
||
|
<a name="l115"></a> </span><span class=cF5>Free</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l116"></a> doc_e->tag=</span><span class=cF5>StrNew</span><span class=cF0>(ptr,doc->mem_task);
|
||
|
<a name="l117"></a> </span><span class=cF5>Free</span><span class=cF0>(ptr);
|
||
|
<a name="l118"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l119"></a> </span><span class=cF5>Free</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l120"></a> doc_e->tag=</span><span class=cF5>StrNew</span><span class=cF0>(</span><span class=cF6>"[]"</span><span class=cF0>,doc->mem_task);
|
||
|
<a name="l121"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l122"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l123"></a> </span><span class=cF1>if</span><span class=cF0> (d)
|
||
|
<a name="l124"></a> doc_e->de_flags|=</span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF0>;
|
||
|
<a name="l125"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l126"></a> doc_e->de_flags&=~</span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF0>;
|
||
|
<a name="l127"></a> }
|
||
|
<a name="l128"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l129"></a>}
|
||
|
<a name="l130"></a>
|
||
|
<a name="l131"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocDataScan</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="l132"></a>{
|
||
|
<a name="l133"></a> </span><span class=cF9>I64</span><span class=cF0> i,d;
|
||
|
<a name="l134"></a> </span><span class=cF1>U8</span><span class=cF0> *ptr,*ptr1,*ptr2;
|
||
|
<a name="l135"></a> </span><span class=cF9>CHashDefineStr</span><span class=cF0> *tmph;
|
||
|
<a name="l136"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_DATA</span><span class=cF0> && doc_e->de_flags&</span><span class=cF3>DOCEF_AUX_STR</span><span class=cF0> ||
|
||
|
<a name="l137"></a> doc_e->type_u8==</span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF0> || doc_e->de_flags & </span><span class=cF3>DOCEF_LST</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l138"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags&</span><span class=cF3>DOCEF_DEREF_DATA</span><span class=cF0> &&
|
||
|
<a name="l139"></a> !</span><span class=cF7>(</span><span class=cF0>doc_e->de_flags&</span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l140"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>ptr=doc_e->data</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l141"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l142"></a> ptr=&doc_e->data;
|
||
|
<a name="l143"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_DATA</span><span class=cF0>) {
|
||
|
<a name="l144"></a> i=</span><span class=cF5>StrLen</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l145"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_HAS_TERMINATOR</span><span class=cF0>)
|
||
|
<a name="l146"></a> doc_e->tag[--i]=0;
|
||
|
<a name="l147"></a> </span><span class=cF1>if</span><span class=cF0> (i>doc_e->len+doc_e->min_col)
|
||
|
<a name="l148"></a> doc_e->tag[doc_e->len+doc_e->min_col]=0;
|
||
|
<a name="l149"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF3>RT_I8</span><span class=cF0><=doc_e->raw_type<=</span><span class=cF3>RT_U32</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l150"></a> </span><span class=cF5>StrScan</span><span class=cF0>(doc_e->tag,doc_e->aux_str,&d,doc_e->my_fmt_data);
|
||
|
<a name="l151"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_HAS_TERMINATOR</span><span class=cF0>)
|
||
|
<a name="l152"></a> doc_e->tag[i]=</span><span class=cF6>'_'</span><span class=cF0>;
|
||
|
<a name="l153"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF3>RT_I64</span><span class=cF0><=doc_e->raw_type<=</span><span class=cF3>RT_UF64</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l154"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF0>) {
|
||
|
<a name="l155"></a> ptr=</span><span class=cF5>MAlloc</span><span class=cF0>(i-doc_e->min_col+8,doc->mem_task);
|
||
|
<a name="l156"></a> </span><span class=cF5>MemCpy</span><span class=cF0>(ptr,doc_e->tag+doc_e->min_col,i-doc_e->min_col+1);
|
||
|
<a name="l157"></a> </span><span class=cF5>Free</span><span class=cF0>(doc_e->data);
|
||
|
<a name="l158"></a> doc_e->data=ptr;
|
||
|
<a name="l159"></a> doc_e->len=</span><span class=cF5>MSize</span><span class=cF0>(ptr)-1;
|
||
|
<a name="l160"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l161"></a> </span><span class=cF5>StrScan</span><span class=cF0>(doc_e->tag,doc_e->aux_str,ptr,doc_e->my_fmt_data);
|
||
|
<a name="l162"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_HAS_TERMINATOR</span><span class=cF0>)
|
||
|
<a name="l163"></a> doc_e->tag[i]=</span><span class=cF6>'_'</span><span class=cF0>;
|
||
|
<a name="l164"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||
|
<a name="l165"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l166"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_LST</span><span class=cF0>) {
|
||
|
<a name="l167"></a> d=0;
|
||
|
<a name="l168"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->tag && doc_e->de_flags & </span><span class=cF3>DOCEF_DEFINE</span><span class=cF0> &&
|
||
|
<a name="l169"></a> </span><span class=cF7>(</span><span class=cF0>tmph=</span><span class=cF5>HashFind</span><span class=cF0>(doc_e->define_str,
|
||
|
<a name="l170"></a> doc->win_task->hash_table,</span><span class=cF3>HTT_DEFINE_STR</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l171"></a> ptr1=ptr2=</span><span class=cF5>StrNew</span><span class=cF0>(doc_e->tag);
|
||
|
<a name="l172"></a> </span><span class=cF1>if</span><span class=cF0> (*ptr2==</span><span class=cF6>'['</span><span class=cF0>) {
|
||
|
<a name="l173"></a> ptr2++;
|
||
|
<a name="l174"></a> i=</span><span class=cF5>StrLen</span><span class=cF0>(ptr2);
|
||
|
<a name="l175"></a> </span><span class=cF1>if</span><span class=cF0> (ptr2[i-1]==</span><span class=cF6>']'</span><span class=cF0>)
|
||
|
<a name="l176"></a> ptr2[i-1]=0;
|
||
|
<a name="l177"></a> }
|
||
|
<a name="l178"></a> d=</span><span class=cF5>LstMatch</span><span class=cF0>(ptr2,tmph->data);
|
||
|
<a name="l179"></a> </span><span class=cF5>Free</span><span class=cF0>(ptr1);
|
||
|
<a name="l180"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l181"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l182"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags & </span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF0>)
|
||
|
<a name="l183"></a> d=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l184"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l185"></a> d=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l186"></a> }
|
||
|
<a name="l187"></a> </span><span class=cF1>switch</span><span class=cF0> (doc_e->raw_type) {
|
||
|
<a name="l188"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I8</span><span class=cF0>:
|
||
|
<a name="l189"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U8</span><span class=cF0>:
|
||
|
<a name="l190"></a> *ptr(</span><span class=cF1>U8</span><span class=cF0> *)=d;
|
||
|
<a name="l191"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I0</span><span class=cF0>:
|
||
|
<a name="l192"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U0</span><span class=cF0>:
|
||
|
<a name="l193"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l194"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I16</span><span class=cF0>:
|
||
|
<a name="l195"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U16</span><span class=cF0>:
|
||
|
<a name="l196"></a> *ptr(</span><span class=cF9>U16</span><span class=cF0> *)=d;
|
||
|
<a name="l197"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l198"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_I32</span><span class=cF0>:
|
||
|
<a name="l199"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>RT_U32</span><span class=cF0>:
|
||
|
<a name="l200"></a> *ptr(</span><span class=cF9>U32</span><span class=cF0> *)=d;
|
||
|
<a name="l201"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l202"></a> </span><span class=cF1>default</span><span class=cF0>:
|
||
|
<a name="l203"></a> *ptr(</span><span class=cF9>I64</span><span class=cF0> *)=d;
|
||
|
<a name="l204"></a> }
|
||
|
<a name="l205"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l206"></a>}
|
||
|
<a name="l207"></a>
|
||
|
<a name="l208"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Input;StdIn/DolDoc"</span><span class=cF0>
|
||
|
<a name="l209"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>DocForm</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *_d,</span><span class=cF1>U8</span><span class=cF0> *class_name=</span><span class=cF1>lastclass</span><span class=cF0>,
|
||
|
<a name="l210"></a> </span><span class=cF9>I64</span><span class=cF0> dof_flags=0,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
||
|
<a name="l211"></a>{</span><span class=cF2>//User input. Supply a class name that has format definitions.</span><span class=cF0>
|
||
|
<a name="l212"></a></span><span class=cF2>//See </span><a href="/Wb/Demo/DolDoc/Form.HC.HTML#l1"><span class=cF4>::/Demo/DolDoc/Form.HC</span></a><span class=cF2> and </span><a href="/Wb/Demo/LastClass.HC.HTML#l1"><span class=cF4>::/Demo/LastClass.HC</span></a><span class=cF2>.</span><span class=cF0>
|
||
|
<a name="l213"></a> </span><span class=cF9>CMemberLst</span><span class=cF0> *ml;
|
||
|
<a name="l214"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e;
|
||
|
<a name="l215"></a> </span><span class=cF1>U8</span><span class=cF0> *format;
|
||
|
<a name="l216"></a> </span><span class=cF9>CHashClass</span><span class=cF0> *tmpc,*tmpc2;
|
||
|
<a name="l217"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc;
|
||
|
<a name="l218"></a> </span><span class=cF1>Bool</span><span class=cF0> res=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l219"></a> </span><span class=cF9>I64</span><span class=cF0> old_border_src=</span><span class=cF5>Fs</span><span class=cF0>->border_src,has_action;
|
||
|
<a name="l220"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>tmpc=</span><span class=cF5>HashFind</span><span class=cF0>(class_name,</span><span class=cF5>Fs</span><span class=cF0>->hash_table,</span><span class=cF3>HTT_CLASS</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l221"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l222"></a> doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
||
|
<a name="l223"></a> doc->desc=</span><span class=cF6>'Form'</span><span class=cF0>;
|
||
|
<a name="l224"></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="l225"></a> doc->flags|=</span><span class=cF3>DOCF_OVERSTRIKE</span><span class=cF0>|</span><span class=cF3>DOCF_FORM</span><span class=cF0>;
|
||
|
<a name="l226"></a> </span><span class=cF1>if</span><span class=cF0> (dof_flags&</span><span class=cF3>DOF_SIZE_MIN</span><span class=cF0>)
|
||
|
<a name="l227"></a> doc->flags|=</span><span class=cF3>DOCF_SIZE_MIN</span><span class=cF0>;
|
||
|
<a name="l228"></a> ml=tmpc->member_lst_and_root;
|
||
|
<a name="l229"></a> </span><span class=cF1>while</span><span class=cF0> (ml) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l230"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>format=</span><span class=cF5>MemberMetaData</span><span class=cF0>(</span><span class=cF6>"format"</span><span class=cF0>,ml)</span><span class=cF7>)</span><span class=cF0> &&
|
||
|
<a name="l231"></a> </span><span class=cF7>(</span><span class=cF0>doc_e=</span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,format)</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l232"></a> tmpc2=ml->member_class;
|
||
|
<a name="l233"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>doc_e->type_u8==</span><span class=cF3>DOCT_DATA</span><span class=cF0> || doc_e->type_u8==</span><span class=cF3>DOCT_LST</span><span class=cF0> ||
|
||
|
<a name="l234"></a> doc_e->type_u8==</span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF7>)</span><span class=cF0> && !tmpc2->ptr_stars_cnt) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l235"></a> tmpc2=</span><span class=cF5>OptClassFwd</span><span class=cF0>(tmpc2);
|
||
|
<a name="l236"></a> tmpc2-=tmpc2->ptr_stars_cnt;
|
||
|
<a name="l237"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc2->type & </span><span class=cF3>HTT_INTERNAL_TYPE</span><span class=cF0>) {
|
||
|
<a name="l238"></a> </span><span class=cF1>if</span><span class=cF0> (ml->dim.next) </span><span class=cF7>{</span><span class=cF0> </span><span class=cF2>//Array</span><span class=cF0>
|
||
|
<a name="l239"></a> </span><span class=cF1>if</span><span class=cF0> (tmpc2->raw_type==</span><span class=cF3>RT_U8</span><span class=cF0> &&
|
||
|
<a name="l240"></a> </span><span class=cF5>LBtr</span><span class=cF7>(</span><span class=cF0>&doc_e->de_flags,&</span><span class=cF3>DOCEf_DFT_LEN</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l241"></a> doc_e->len=ml->dim.total_cnt;
|
||
|
<a name="l242"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags&</span><span class=cF3>DOCEF_HAS_TERMINATOR</span><span class=cF0>)
|
||
|
<a name="l243"></a> doc_e->len--;
|
||
|
<a name="l244"></a> </span><span class=cF5>Free</span><span class=cF0>(doc_e->tag); </span><span class=cF2>//See </span><a href="/Wb/Adam/DolDoc/DocPlain.HC.HTML#l352"><span class=cF4>DataTagWidth</span></a><span class=cF0>
|
||
|
<a name="l245"></a> doc_e->tag=</span><span class=cF5>MAlloc</span><span class=cF0>(doc_e->len+doc_e->min_col+2,
|
||
|
<a name="l246"></a> doc->mem_task); </span><span class=cF2>//+2 because "_\0"</span><span class=cF0>
|
||
|
<a name="l247"></a> }
|
||
|
<a name="l248"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>LBtr</span><span class=cF7>(</span><span class=cF0>&doc_e->de_flags,</span><span class=cF3>DOCEf_DFT_RAW_TYPE</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l249"></a> doc_e->raw_type=tmpc2->raw_type;
|
||
|
<a name="l250"></a> }
|
||
|
<a name="l251"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l252"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags&</span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l253"></a> doc_e->user_data=_d+ml-></span><span class=cF1>offset</span><span class=cF0>;
|
||
|
<a name="l254"></a> doc_e->data=*doc_e->user_data(</span><span class=cF1>U8</span><span class=cF0> **);
|
||
|
<a name="l255"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l256"></a> doc_e->data=_d+ml-></span><span class=cF1>offset</span><span class=cF0>;
|
||
|
<a name="l257"></a> doc_e->my_fmt_data=</span><span class=cF5>MemberMetaData</span><span class=cF0>(</span><span class=cF6>"data"</span><span class=cF0>,ml);
|
||
|
<a name="l258"></a> </span><span class=cF5>DocDataFmt</span><span class=cF0>(doc,doc_e);
|
||
|
<a name="l259"></a> }
|
||
|
<a name="l260"></a> ml=ml->next;
|
||
|
<a name="l261"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l262"></a> </span><span class=cF1>if</span><span class=cF0> (footer) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
||
|
<a name="l263"></a> </span><span class=cF1>if</span><span class=cF0> (doc->head.next!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l264"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_src=</span><span class=cF3>BDS_CONST</span><span class=cF0>;
|
||
|
<a name="l265"></a> </span><span class=cF5>DocRecalc</span><span class=cF0>(doc);
|
||
|
<a name="l266"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocEd</span><span class=cF7>(</span><span class=cF0>doc,dof_flags</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l267"></a> doc_e=doc->cur_entry;
|
||
|
<a name="l268"></a> res=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l269"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l270"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocEntryRun</span><span class=cF7>(</span><span class=cF0>doc,doc_e,</span><span class=cF3>TRUE</span><span class=cF0>,&has_action</span><span class=cF7>)</span><span class=cF0>==</span><span class=cF3>DOCM_CANCEL</span><span class=cF0> && has_action)
|
||
|
<a name="l271"></a> res=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l272"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l273"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l274"></a> }
|
||
|
<a name="l275"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l276"></a> doc_e=doc->head.next;
|
||
|
<a name="l277"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l278"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->de_flags&</span><span class=cF3>DOCEF_REMALLOC_DATA</span><span class=cF0>) {
|
||
|
<a name="l279"></a> *doc_e->user_data(</span><span class=cF1>U8</span><span class=cF0> **)=doc_e->data;
|
||
|
<a name="l280"></a> doc_e->data=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l281"></a> }
|
||
|
<a name="l282"></a> doc_e=doc_e->next;
|
||
|
<a name="l283"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l284"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
||
|
<a name="l285"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_src=old_border_src;
|
||
|
<a name="l286"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||
|
<a name="l287"></a>}
|
||
|
<a name="l288"></a>
|
||
|
<a name="l289"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocMenuEndTaskCB</span><span class=cF0>()
|
||
|
<a name="l290"></a>{
|
||
|
<a name="l291"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||
|
<a name="l292"></a> </span><span class=cF5>throw</span><span class=cF0>;
|
||
|
<a name="l293"></a>}
|
||
|
<a name="l294"></a>
|
||
|
<a name="l295"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>DocMenu</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *m,</span><span class=cF9>I64</span><span class=cF0> dof_flags=0)
|
||
|
<a name="l296"></a>{</span><span class=cF2>//Run menu chooser doc. Returns menu doc unlocked.</span><span class=cF0>
|
||
|
<a name="l297"></a> </span><span class=cF1>U8</span><span class=cF0> *old_end_cb=</span><span class=cF5>Fs</span><span class=cF0>->task_end_cb;
|
||
|
<a name="l298"></a> </span><span class=cF1>Bool</span><span class=cF0> old_break_shift_esc=</span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->task_flags,</span><span class=cF3>TASKf_BREAK_TO_SHIFT_ESC</span><span class=cF0>);
|
||
|
<a name="l299"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e;
|
||
|
<a name="l300"></a> </span><span class=cF9>I64</span><span class=cF0> old_border_src=</span><span class=cF5>Fs</span><span class=cF0>->border_src,res=</span><span class=cF3>DOCM_CANCEL</span><span class=cF0>,has_action;
|
||
|
<a name="l301"></a> </span><span class=cF5>Fs</span><span class=cF0>->task_end_cb=&</span><span class=cF5>DocMenuEndTaskCB</span><span class=cF0>;
|
||
|
<a name="l302"></a> </span><span class=cF1>try</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l303"></a> </span><span class=cF1>if</span><span class=cF0> (m) {
|
||
|
<a name="l304"></a> m->desc=</span><span class=cF6>'Menu'</span><span class=cF0>;
|
||
|
<a name="l305"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_src=</span><span class=cF3>BDS_CONST</span><span class=cF0>;
|
||
|
<a name="l306"></a>dm_restart:
|
||
|
<a name="l307"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocEd</span><span class=cF7>(</span><span class=cF0>m,dof_flags</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l308"></a> doc_e=m->cur_entry;
|
||
|
<a name="l309"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e!=m) {
|
||
|
<a name="l310"></a> res=</span><span class=cF5>DocEntryRun</span><span class=cF0>(m,doc_e,</span><span class=cF3>TRUE</span><span class=cF0>,&has_action);
|
||
|
<a name="l311"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(m);
|
||
|
<a name="l312"></a> </span><span class=cF1>if</span><span class=cF0> (!has_action) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l313"></a> res=</span><span class=cF3>DOCM_CANCEL</span><span class=cF0>;
|
||
|
<a name="l314"></a> dof_flags|=</span><span class=cF3>DOF_DONT_HOME</span><span class=cF0>;
|
||
|
<a name="l315"></a> </span><span class=cF1>goto</span><span class=cF0> dm_restart;
|
||
|
<a name="l316"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l317"></a> }
|
||
|
<a name="l318"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l319"></a> }
|
||
|
<a name="l320"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>catch</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l321"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>Fs</span><span class=cF0>->except_ch) {
|
||
|
<a name="l322"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>dof_flags & </span><span class=cF3>DOF_INTERCEPT_TASK_END</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l323"></a> </span><span class=cF5>Exit</span><span class=cF0>;
|
||
|
<a name="l324"></a> </span><span class=cF5>Fs</span><span class=cF0>->catch_except=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l325"></a> }
|
||
|
<a name="l326"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l327"></a> </span><span class=cF5>LBEqu</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->task_flags,</span><span class=cF3>TASKf_BREAK_TO_SHIFT_ESC</span><span class=cF0>,old_break_shift_esc);
|
||
|
<a name="l328"></a> </span><span class=cF5>Fs</span><span class=cF0>->border_src=old_border_src;
|
||
|
<a name="l329"></a> </span><span class=cF5>Fs</span><span class=cF0>->task_end_cb=old_end_cb;
|
||
|
<a name="l330"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||
|
<a name="l331"></a>}
|
||
|
<a name="l332"></a>
|
||
|
<a name="l333"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpMenu</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>I64</span><span class=cF0> dof_flags=0)
|
||
|
<a name="l334"></a>{</span><span class=cF2>//Run menu chooser doc in PopUp win task.</span><span class=cF0>
|
||
|
<a name="l335"></a> doc->flags|=</span><span class=cF3>DOCF_SIZE_MIN</span><span class=cF0> | </span><span class=cF3>DOCF_FORM</span><span class=cF0>;
|
||
|
<a name="l336"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUpPrint</span><span class=cF0>(</span><span class=cF6>"DocMenu(0x%X,0x%X);"</span><span class=cF0>,doc,dof_flags);
|
||
|
<a name="l337"></a>}
|
||
|
<a name="l338"></a>
|
||
|
<a name="l339"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>PopUpForm</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *_d,</span><span class=cF1>U8</span><span class=cF0> *class_name=</span><span class=cF1>lastclass</span><span class=cF0>,
|
||
|
<a name="l340"></a> </span><span class=cF9>I64</span><span class=cF0> dof_flags=</span><span class=cF3>DOF_SIZE_MIN</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
||
|
<a name="l341"></a>{</span><span class=cF2>//See </span><a href="/Wb/Demo/DolDoc/Form.HC.HTML#l1"><span class=cF4>::/Demo/DolDoc/Form.HC</span></a><span class=cF2> and </span><a href="/Wb/Demo/LastClass.HC.HTML#l1"><span class=cF4>::/Demo/LastClass.HC</span></a><span class=cF2>.</span><span class=cF0>
|
||
|
<a name="l342"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUpPrint</span><span class=cF0>(</span><span class=cF6>"DocForm(0x%X,0x%X,0x%X,0x%X,0x%X);"</span><span class=cF0>,_d,class_name,
|
||
|
<a name="l343"></a> dof_flags,header,footer);
|
||
|
<a name="l344"></a>}
|
||
|
</span></pre></body>
|
||
|
</html>
|