📄 class_c_ocr_example_text_container.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>COcrExampleTextContainer Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 5th Edition SDK v0.9 </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>COcrExampleTextContainer Class Reference</h1><!-- doxytag: class="COcrExampleTextContainer" --><!-- doxytag: inherits="CCoeControl" --><code>#include <<a class="el" href="_ocr_example_text_container_8h-source.html">OcrExampleTextContainer.h</a>></code><p><p>Inheritance diagram for COcrExampleTextContainer:<p><center><img src="class_c_ocr_example_text_container.png" usemap="#COcrExampleTextContainer_map" border="0" alt=""></center><map name="COcrExampleTextContainer_map"></map><a href="class_c_ocr_example_text_container-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>COcrExampleTextContainer this container implements a "console view", which shows the results of layout analysis and recognition operations. The text is read from the data file, into which the image handling controller writes the data. <p><p>Definition at line <a class="el" href="_ocr_example_text_container_8h-source.html#l00044">44</a> of file <a class="el" href="_ocr_example_text_container_8h-source.html">OcrExampleTextContainer.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#e1630eb9aa40db01b9ec1894e8ee562a">~COcrExampleTextContainer</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#a83681f065b17f7bc3b5e9f30fe67cf6">ReadTextFromFileL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#8c27b9d1c80c83eee68cc2015a85277d">AdjustCursorL</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#0bcd5d2c740b8093d9a148427f81851f">ActivateL</a> ()</td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_ocr_example_text_container.html">COcrExampleTextContainer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#0fc4cd565d3ef49fad93e37313ebfa4d">NewL</a> (const TRect &aRect, <a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> &aData)</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#9f9bb5a2110532e2f2909eaefb44d36a">SizeChanged</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#195be64c0e5b9f91ce87699e499af01c">CountComponentControls</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">CCoeControl * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#c1d1ba8d1c19e939c47fb73d50cb5432">ComponentControl</a> (TInt aIndex) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">TKeyResponse </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#6775621e6d3ce05d6685555c939c7706">OfferKeyEventL</a> (const TKeyEvent &aKeyEvent, TEventCode aType)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#67f946ca7848ec78de4961c5bcefdb72">Draw</a> (const TRect &aRect) const </td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#72152145e86aedff29107579ce9eeac7">COcrExampleTextContainer</a> (<a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> &aData)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#bf31593b337cbf3fb671382cf773281c">ConstructL</a> (const TRect &aRect)</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">CEikGlobalTextEditor * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">iEditor</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_ocr_example_text_container.html#e72899bf23845a10c6b7559c2e896baa">iData</a></td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="e1630eb9aa40db01b9ec1894e8ee562a"></a><!-- doxytag: member="COcrExampleTextContainer::~COcrExampleTextContainer" ref="e1630eb9aa40db01b9ec1894e8ee562a" 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">COcrExampleTextContainer::~COcrExampleTextContainer </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> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00068">68</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_text_container_8h-source.html#l00110">iEditor</a>.<div class="fragment"><pre class="fragment"><a name="l00069"></a>00069 {<a name="l00070"></a>00070 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">iEditor</a>;<a name="l00071"></a>00071 }</pre></div><p> </td> </tr></table><a class="anchor" name="72152145e86aedff29107579ce9eeac7"></a><!-- doxytag: member="COcrExampleTextContainer::COcrExampleTextContainer" ref="72152145e86aedff29107579ce9eeac7" args="(TTextContainerData &aData)" --><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">COcrExampleTextContainer::COcrExampleTextContainer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> & </td> <td class="mdname1" valign="top" nowrap> <em>aData</em> </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>C++ constructor. <p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00030">30</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>Referenced by <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00060">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00031"></a>00031 : <a class="code" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">iEditor</a>(0)<a name="l00032"></a>00032 , <a class="code" href="class_c_ocr_example_text_container.html#e72899bf23845a10c6b7559c2e896baa">iData</a>(aData)<a name="l00033"></a>00033 {<a name="l00034"></a>00034 }</pre></div><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="0fc4cd565d3ef49fad93e37313ebfa4d"></a><!-- doxytag: member="COcrExampleTextContainer::NewL" ref="0fc4cd565d3ef49fad93e37313ebfa4d" args="(const TRect &aRect, TTextContainerData &aData)" --><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"><a class="el" href="class_c_ocr_example_text_container.html">COcrExampleTextContainer</a> * COcrExampleTextContainer::NewL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TRect & </td> <td class="mdname" nowrap> <em>aRect</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct_t_text_container_data.html">TTextContainerData</a> & </td> <td class="mdname" nowrap> <em>aData</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>NewL. Two-phased constructor. Construct a COcrExampleTextContainer using two phase construction, and return a pointer to the created object <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of COcrExampleTextContainer </dd></dl><p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00060">60</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00030">COcrExampleTextContainer()</a>.<div class="fragment"><pre class="fragment"><a name="l00062"></a>00062 {<a name="l00063"></a>00063 <a class="code" href="class_c_ocr_example_text_container.html">COcrExampleTextContainer</a>* <span class="keyword">self</span> = <span class="keyword">new</span> (ELeave) <a class="code" href="class_c_ocr_example_text_container.html#72152145e86aedff29107579ce9eeac7">COcrExampleTextContainer</a>(aData);<a name="l00064"></a>00064 <span class="keyword">self</span>->ConstructL(aRect);<a name="l00065"></a>00065 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00066"></a>00066 }</pre></div><p> </td> </tr></table><a class="anchor" name="a83681f065b17f7bc3b5e9f30fe67cf6"></a><!-- doxytag: member="COcrExampleTextContainer::ReadTextFromFileL" ref="a83681f065b17f7bc3b5e9f30fe67cf6" 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">void COcrExampleTextContainer::ReadTextFromFileL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>imports the content of datafile into read-only editor <p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00137">137</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_text_container_8h-source.html#l00110">iEditor</a>.<p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -