📄 class_n_o_c_r_utils_1_1_c_layout_form.html
字号:
<a name="l00093"></a>00093 <span class="keywordflow">default</span>: <a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#20e11952d4df5d2b7e5fdd908f10eeb1">iBlock</a>->iText = EOcrTextSingleLine;<a name="l00094"></a>00094 }<a name="l00095"></a>00095 }<a name="l00096"></a>00096 }<a name="l00097"></a>00097 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#469d1270eb5ecae82cc8f0f3ebf995bb">iLayout</a>)<a name="l00098"></a>00098 {<a name="l00099"></a>00099 fieldText = static_cast<CAknPopupFieldText*>(ControlOrNull(EOCRExampleFormSkew));<a name="l00100"></a>00100 <span class="keywordflow">if</span> (fieldText)<a name="l00101"></a>00101 {<a name="l00102"></a>00102 <span class="comment">// bool-conversion</span><a name="l00103"></a>00103 iLayout->iSkew = (! fieldText->CurrentValueIndex());<a name="l00104"></a>00104 }<a name="l00105"></a>00105 <a name="l00106"></a>00106 fieldText = static_cast<CAknPopupFieldText*>(ControlOrNull(EOCRExampleFormBrightness));<a name="l00107"></a>00107 <span class="keywordflow">if</span> (fieldText)<a name="l00108"></a>00108 {<a name="l00109"></a>00109 <span class="keywordflow">switch</span> (fieldText->CurrentValueIndex())<a name="l00110"></a>00110 {<a name="l00111"></a>00111 <span class="keywordflow">case</span> 0: iLayout->iBrightness = TOCRLayoutSetting::ENormal; <span class="keywordflow">break</span>;<a name="l00112"></a>00112 <span class="keywordflow">case</span> 1: iLayout->iBrightness = TOCRLayoutSetting::ELight; <span class="keywordflow">break</span>;<a name="l00113"></a>00113 <span class="keywordflow">case</span> 2: <span class="comment">// fall-through</span><a name="l00114"></a>00114 <span class="keywordflow">default</span>: iLayout->iBrightness = TOCRLayoutSetting::EDark;<a name="l00115"></a>00115 }<a name="l00116"></a>00116 }<a name="l00117"></a>00117 }<a name="l00118"></a>00118 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="class_n_o_c_r_utils_1_1_c_layout_form.html#275c7177e06295b749bfaafcdb7cbc03">iRegion</a>)<a name="l00119"></a>00119 {<a name="l00120"></a>00120 fieldText = static_cast<CAknPopupFieldText*>(ControlOrNull(EOCRExampleFormBackground));<a name="l00121"></a>00121 <span class="keywordflow">if</span> (fieldText)<a name="l00122"></a>00122 {<a name="l00123"></a>00123 <span class="keywordflow">switch</span> (fieldText->CurrentValueIndex())<a name="l00124"></a>00124 {<a name="l00125"></a>00125 <span class="keywordflow">case</span> 0: iRegion->iBackgroundColor = EOcrBackgroundLight; <span class="keywordflow">break</span>;<a name="l00126"></a>00126 <span class="keywordflow">case</span> 1: iRegion->iBackgroundColor = EOcrBackgroundDark; <span class="keywordflow">break</span>;<a name="l00127"></a>00127 <span class="keywordflow">case</span> 2: <span class="comment">// fall-through</span><a name="l00128"></a>00128 <span class="keywordflow">default</span>: iRegion->iBackgroundColor = EOcrBackgroundUnknown;<a name="l00129"></a>00129 }<a name="l00130"></a>00130 }<a name="l00131"></a>00131 <a name="l00132"></a>00132 fieldText = static_cast<CAknPopupFieldText*>(ControlOrNull(EOCRExampleFormContentType));<a name="l00133"></a>00133 <span class="keywordflow">if</span> (fieldText)<a name="l00134"></a>00134 {<a name="l00135"></a>00135 <span class="keywordflow">switch</span> (fieldText->CurrentValueIndex())<a name="l00136"></a>00136 {<a name="l00137"></a>00137 <span class="keywordflow">case</span> 0: iRegion->iType = TRegionInfo::EEmailAddress; <span class="keywordflow">break</span>;<a name="l00138"></a>00138 <span class="keywordflow">case</span> 1: iRegion->iType = TRegionInfo::ETelephoneNumber; <span class="keywordflow">break</span>;<a name="l00139"></a>00139 <span class="keywordflow">case</span> 2: <span class="comment">// fall-through</span><a name="l00140"></a>00140 <span class="keywordflow">default</span>: iRegion->iType = TRegionInfo::EWWWAddress;<a name="l00141"></a>00141 }<a name="l00142"></a>00142 }<a name="l00143"></a>00143 }<a name="l00144"></a>00144 <span class="keywordflow">else</span> <span class="comment">// internal error</span><a name="l00145"></a>00145 {<a name="l00146"></a>00146 ASSERT(EFalse);<a name="l00147"></a>00147 }<a name="l00148"></a>00148 <a name="l00149"></a>00149 <span class="keywordflow">return</span> ETrue;<a name="l00150"></a>00150 }</pre></div><p> </td> </tr></table><a class="anchor" name="b40f031bc0388961c4e5786379324608"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::QuerySaveChangesL" ref="b40f031bc0388961c4e5786379324608" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">TBool CLayoutForm::QuerySaveChangesL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>always returns ETrue to trigger call to <a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#b90bd30d42503d5f0464e9ff1ce3b830">SaveFormDataL()</a> </dd></dl><p>Definition at line <a class="el" href="_layout_form_8cpp-source.html#l00152">152</a> of file <a class="el" href="_layout_form_8cpp-source.html">LayoutForm.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00153"></a>00153 {<a name="l00154"></a>00154 <span class="keywordflow">return</span> ETrue;<a name="l00155"></a>00155 }</pre></div><p> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="20e11952d4df5d2b7e5fdd908f10eeb1"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::iBlock" ref="20e11952d4df5d2b7e5fdd908f10eeb1" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">TOCRLayoutBlockInfo* <a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#20e11952d4df5d2b7e5fdd908f10eeb1">NOCRUtils::CLayoutForm::iBlock</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>settings for Block Recognition operation <p>Definition at line <a class="el" href="_layout_form_8h-source.html#l00112">112</a> of file <a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>.<p>Referenced by <a class="el" href="_layout_form_8cpp-source.html#l00057">SaveFormDataL()</a>. </td> </tr></table><a class="anchor" name="469d1270eb5ecae82cc8f0f3ebf995bb"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::iLayout" ref="469d1270eb5ecae82cc8f0f3ebf995bb" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">TOCRLayoutSetting* <a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#469d1270eb5ecae82cc8f0f3ebf995bb">NOCRUtils::CLayoutForm::iLayout</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>settings for Layout Analysis operation <p>Definition at line <a class="el" href="_layout_form_8h-source.html#l00115">115</a> of file <a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>. </td> </tr></table><a class="anchor" name="275c7177e06295b749bfaafcdb7cbc03"></a><!-- doxytag: member="NOCRUtils::CLayoutForm::iRegion" ref="275c7177e06295b749bfaafcdb7cbc03" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">TRegionInfo* <a class="el" href="class_n_o_c_r_utils_1_1_c_layout_form.html#275c7177e06295b749bfaafcdb7cbc03">NOCRUtils::CLayoutForm::iRegion</a><code> [private]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>settings for Special Region Recognition operation <p>Definition at line <a class="el" href="_layout_form_8h-source.html#l00118">118</a> of file <a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="_layout_form_8h-source.html">LayoutForm.h</a><li><a class="el" href="_layout_form_8cpp-source.html">LayoutForm.cpp</a></ul><hr><table x-use-null-cells style="x-cell-content-align: top; width: 100%; border-spacing: 0px; border-spacing: 0px;" cellspacing=0 width=100%> <col style="width: 50%;"> <col style="width: 50%;"> <tr style="x-cell-content-align: top;" valign=top> <td style="width: 50%; padding-right: 10px; padding-left: 10px; border-right-style: None; border-left-style: None; border-top-style: None; border-bottom-style: None;" width=50%> <p style="font-family: Arial;"><small style="font-size: smaller;">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -