File: classWt_1_1WTextEdit.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (415 lines) | stat: -rw-r--r-- 27,719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WTextEdit Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WTextEdit.html">WTextEdit</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WTextEdit Class Reference</h1><!-- doxytag: class="Wt::WTextEdit" --><!-- doxytag: inherits="Wt::WTextArea" -->A rich-text XHTML editor.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WTextEdit&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTextEdit:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTextEdit__inherit__graph.png" border="0" usemap="#Wt_1_1WTextEdit__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTextEdit__inherit__map">
<area shape="rect" href="classWt_1_1WTextArea.html" title="A widget that provides a multi&#45;line edit." alt="" coords="21,379,131,405"><area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="12,304,140,331"><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="5,229,147,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="15,155,137,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="28,80,124,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="28,5,124,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WTextEdit-members.html">List of all members.</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"><a class="anchor" name="451adca0c258c17b37bc544e3684952b"></a><!-- doxytag: member="Wt::WTextEdit::WTextEdit" ref="451adca0c258c17b37bc544e3684952b" args="(WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#451adca0c258c17b37bc544e3684952b">WTextEdit</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new text editor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#644d69fc03aca222c38044578e5a181b">WTextEdit</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new text editor and initialize with given text.  <a href="#644d69fc03aca222c38044578e5a181b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3e43187a1a3ad8386cb7c2271cb250ee"></a><!-- doxytag: member="Wt::WTextEdit::~WTextEdit" ref="3e43187a1a3ad8386cb7c2271cb250ee" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#3e43187a1a3ad8386cb7c2271cb250ee">~WTextEdit</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#8023b2dbe675a22f30a563704d9ae475">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the content.  <a href="#8023b2dbe675a22f30a563704d9ae475"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#7b6df4e80ea878c1c6d57d1c85f60b04">setStyleSheet</a> (const std::string &amp;uri)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the stylesheet for displaying the content.  <a href="#7b6df4e80ea878c1c6d57d1c85f60b04"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#b3656ebc2b7d8856701377697c42067a">styleSheet</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the content stylesheet.  <a href="#b3656ebc2b7d8856701377697c42067a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#106e80b7ae54d21a7307f3d4c125d098">setExtraPlugins</a> (const std::string &amp;plugins)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Loads additional TinyMCE plugins.  <a href="#106e80b7ae54d21a7307f3d4c125d098"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#66163ef0fc23df64e976c7c7d99b2d71">extraPlugins</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the extra plugins.  <a href="#66163ef0fc23df64e976c7c7d99b2d71"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#b569b96e871c547b1f992b727c00c902">setToolBar</a> (int i, const std::string &amp;config)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configures a tool bar.  <a href="#b569b96e871c547b1f992b727c00c902"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#eb2451ef6b617267a0b88cd9d4b6dcd6">toolBar</a> (int i)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a tool bar configuration.  <a href="#eb2451ef6b617267a0b88cd9d4b6dcd6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#c9f80e652fc361512aa2587c54f4ecb5">resize</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;height)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resizes the widget.  <a href="#c9f80e652fc361512aa2587c54f4ecb5"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#b268ab5bfd2edda2bf64dad5cd068abe">boxPadding</a> (<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget's built-in padding.  <a href="#b268ab5bfd2edda2bf64dad5cd068abe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#c946e268b85e49d1155c656f354f00cb">boxBorder</a> (<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget's built-in border width.  <a href="#c946e268b85e49d1155c656f354f00cb"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A rich-text XHTML editor. 
<p>
The editor provides interactive editing of XHTML text. By default it provides basic mark-up (font, formatting, color, links, and lists), but additional buttons may be added to the tool bars that add additional formatting options.<p>
The implementation is based on <a href="http://tinymce.moxiecode.com/">TinyMCE</a>. The widget may be configured and tailored using the <a class="el" href="classWt_1_1WTextEdit.html#106e80b7ae54d21a7307f3d4c125d098" title="Loads additional TinyMCE plugins.">setExtraPlugins()</a> and <a class="el" href="classWt_1_1WTextEdit.html#b569b96e871c547b1f992b727c00c902" title="Configures a tool bar.">setToolBar()</a> methods that provide direct access to the underlying TinyMCE component.<p>
To use this widget, you need to download TinyMCE (version 3.0.7 or later) and deploy the <code>tinymce/jscripts/tiny_mce</code> folder to <em>tinyMCEURL</em>. The default value for <em>tinyMCEURL</em> is <em>resourcesURL</em><code>/tiny_mce</code>, where <em>resourcesURL</em> is the configuration property that locates the Wt <code>resources/</code> folder (i.e., we assume by default that you copy the <code>tiny_mce</code> folder to the <code>resources/</code> folder), see also <a class="el" href="overview.html#deployment">deployment and resources</a>.<p>
The value may be overridden with a URL that points to the directory where the <code>tiny_mce</code> folder is located, by configuring the <em>tinyMCEURL</em> property in your Wt configuration file, see <a class="el" href="overview.html#config_general">configuration properties</a>.<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>();
 <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a> *label = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a>(<span class="stringliteral">"Comments:"</span>, w);
 <a class="code" href="classWt_1_1WTextEdit.html" title="A rich-text XHTML editor.">Wt::WTextEdit</a> *edit = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTextEdit.html" title="A rich-text XHTML editor.">Wt::WTextEdit</a>(<span class="stringliteral">""</span>, w);
 label-&gt;<a class="code" href="classWt_1_1WLabel.html#f468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">setBuddy</a>(edit);
</pre></div><p>
<h3>CSS</h3>
<p>
Styling through CSS is not applicable.<p>
<div align="center">
<img src="WTextEdit-1.png" alt="WTextEdit-1.png">
<p><strong>Default configuration of a WTextEdit</strong></p></div>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="644d69fc03aca222c38044578e5a181b"></a><!-- doxytag: member="Wt::WTextEdit::WTextEdit" ref="644d69fc03aca222c38044578e5a181b" args="(const WString &amp;text, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WTextEdit::WTextEdit           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new text editor and initialize with given text. 
<p>
The <code>text</code> should be valid XHTML. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="8023b2dbe675a22f30a563704d9ae475"></a><!-- doxytag: member="Wt::WTextEdit::setText" ref="8023b2dbe675a22f30a563704d9ae475" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::setText           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the content. 
<p>
The <code>text</code> should be valid XHTML.<p>
The default value is "". 
<p>Reimplemented from <a class="el" href="classWt_1_1WTextArea.html#1f05060c037d13c2c6c26f51f1fb9640">Wt::WTextArea</a>.</p>

</div>
</div><p>
<a class="anchor" name="7b6df4e80ea878c1c6d57d1c85f60b04"></a><!-- doxytag: member="Wt::WTextEdit::setStyleSheet" ref="7b6df4e80ea878c1c6d57d1c85f60b04" args="(const std::string &amp;uri)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::setStyleSheet           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>uri</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the stylesheet for displaying the content. 
<p>
The content is rendered using the rules defined in this stylesheet. The stylesheet is also used to derive additional styles that are available in the text editor, for example in the "styleselect" button.<p>
Multiple stylesheets may be specified as a comma separated list. 
</div>
</div><p>
<a class="anchor" name="b3656ebc2b7d8856701377697c42067a"></a><!-- doxytag: member="Wt::WTextEdit::styleSheet" ref="b3656ebc2b7d8856701377697c42067a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; Wt::WTextEdit::styleSheet           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the content stylesheet. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#7b6df4e80ea878c1c6d57d1c85f60b04" title="Sets the stylesheet for displaying the content.">setStyleSheet()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="106e80b7ae54d21a7307f3d4c125d098"></a><!-- doxytag: member="Wt::WTextEdit::setExtraPlugins" ref="106e80b7ae54d21a7307f3d4c125d098" args="(const std::string &amp;plugins)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::setExtraPlugins           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>plugins</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Loads additional TinyMCE plugins. 
<p>
Wt loads by default only the plugin 'safari' (which adds support for the Safari web browser). Use this method to load additional plugins. Multiple plugins may be specified as a comma separated list.<p>
The various plugins are described in the <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Plugins">TinyMCE documentation</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Plugins can only be loaded before the initial display of the widget. </dd></dl>

</div>
</div><p>
<a class="anchor" name="66163ef0fc23df64e976c7c7d99b2d71"></a><!-- doxytag: member="Wt::WTextEdit::extraPlugins" ref="66163ef0fc23df64e976c7c7d99b2d71" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; Wt::WTextEdit::extraPlugins           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the extra plugins. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#106e80b7ae54d21a7307f3d4c125d098" title="Loads additional TinyMCE plugins.">setExtraPlugins()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b569b96e871c547b1f992b727c00c902"></a><!-- doxytag: member="Wt::WTextEdit::setToolBar" ref="b569b96e871c547b1f992b727c00c902" args="(int i, const std::string &amp;config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::setToolBar           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>config</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Configures a tool bar. 
<p>
This configures the buttons for the <code>i'th</code> tool bar (with 0 &lt;= <code>i</code> &lt;= 3).<p>
The syntax and available buttons is documented in the <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_buttons_1_n">TinyMCE documentation</a>.<p>
The default <em>config</em> for the first tool bar (<code>i</code> = 0) is: "fontselect, |, bold, italic, underline, |, fontsizeselect, |, forecolor, backcolor, |, justifyleft, justifycenter, justifyright, justifyfull, |, anchor, |, numlist, bullist".<p>
By default, the other three tool bars are disabled (<code>config</code> = "").<p>
Note that some buttons are only available after loading extra plugins using <a class="el" href="classWt_1_1WTextEdit.html#106e80b7ae54d21a7307f3d4c125d098" title="Loads additional TinyMCE plugins.">setExtraPlugins()</a>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>The tool bar configuration can only be set before the initial display of the widget. </dd></dl>

</div>
</div><p>
<a class="anchor" name="eb2451ef6b617267a0b88cd9d4b6dcd6"></a><!-- doxytag: member="Wt::WTextEdit::toolBar" ref="eb2451ef6b617267a0b88cd9d4b6dcd6" args="(int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; Wt::WTextEdit::toolBar           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>i</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a tool bar configuration. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#b569b96e871c547b1f992b727c00c902" title="Configures a tool bar.">setToolBar()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c9f80e652fc361512aa2587c54f4ecb5"></a><!-- doxytag: member="Wt::WTextEdit::resize" ref="c9f80e652fc361512aa2587c54f4ecb5" args="(const WLength &amp;width, const WLength &amp;height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::resize           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resizes the widget. 
<p>
Specify a new size for this widget, by specifying width and height. By default a widget has automatic width and height, see <a class="el" href="classWt_1_1WLength.html#b4c9733029342fdbc1dee34a523ee40d" title="Returns whether the ength is &#39;auto&#39;.">WLength::isAuto()</a>.<p>
This applies to CSS-based layout, and only <a class="el" href="classWt_1_1WWebWidget.html#73c0244d363cd2f8bd4814fe1ebee2b1">block</a> widgets can be given a size reliably.<p>
When inserted in a layout manager, the widget may be informed about its current size using <a class="el" href="classWt_1_1WWidget.html#4f83592912a7f8fa4fd35dadde78ee74" title="Sets the widget to be aware of its size set by a layout manager.">setLayoutSizeAware()</a>. If you have defined a "wtResize()" JavaScript method for the widget, then this method will also be called. operation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WWebWidget.html#4187ef41415521e545106c970c2679f2" title="Returns the width.">width()</a>, <a class="el" href="classWt_1_1WWebWidget.html#7321103dca90574bbc3ac6ea9a91ccff" title="Returns the height.">height()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWebWidget.html#e1b84e31581405358b6d57ec14505234">Wt::WWebWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="b268ab5bfd2edda2bf64dad5cd068abe"></a><!-- doxytag: member="Wt::WTextEdit::boxPadding" ref="b268ab5bfd2edda2bf64dad5cd068abe" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextEdit::boxPadding           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget's built-in padding. 
<p>
This is used by the layout managers to correct for a built-in padding which interferes with setting a widget's width (or height) to 100%.<p>
A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the padding (the default implementation returns 0).<p>
For form widgets, the padding depends on the specific browser/platform combination, unless an explicit padding is set for the widget.<p>
When setting an explicit padding for the widget using a style class, you will want to reimplement this method to return this padding in case you want to set the widget inside a layout manager.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#c946e268b85e49d1155c656f354f00cb" title="Returns the widget&#39;s built-in border width.">boxBorder()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WTextArea.html#83a327ce1d6408a99991cd6b5ddc74e4">Wt::WTextArea</a>.</p>

</div>
</div><p>
<a class="anchor" name="c946e268b85e49d1155c656f354f00cb"></a><!-- doxytag: member="Wt::WTextEdit::boxBorder" ref="c946e268b85e49d1155c656f354f00cb" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTextEdit::boxBorder           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget's built-in border width. 
<p>
This is used by the layout managers to correct for a built-in border which interferes with setting a widget's width (or height) to 100%.<p>
A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the border width (the default implementation returns 0).<p>
For form widgets, the border width depends on the specific browser/platform combination, unless an explicit border is set for the widget.<p>
When setting an explicit border for the widget using a style class, you will want to reimplement this method to return this border width, in case you want to set the widget inside a layout manager.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#b268ab5bfd2edda2bf64dad5cd068abe" title="Returns the widget&#39;s built-in padding.">boxPadding()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WTextArea.html#3379006d7dbe832b617303b72924019c">Wt::WTextArea</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>