Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 2187

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WTextEdit Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WTextEdit.html">WTextEdit</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WTextEdit Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WTextEdit" --><!-- doxytag: inherits="Wt::WTextArea" -->
<p>A rich-text XHTML editor.  
 <a href="classWt_1_1WTextEdit.html#details">More...</a></p>

<p><code>#include &lt;Wt/WTextEdit&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WTextEdit:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WTextEdit__inherit__graph.png" border="0" usemap="#Wt_1_1WTextEdit_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WTextEdit_inherit__map" id="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="23,379,132,405"/><area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="12,304,143,331"/><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="5,229,149,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,141,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="28,80,127,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="29,5,125,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WTextEdit-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a451adca0c258c17b37bc544e3684952b"></a><!-- doxytag: member="Wt::WTextEdit::WTextEdit" ref="a451adca0c258c17b37bc544e3684952b" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a451adca0c258c17b37bc544e3684952b">WTextEdit</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new text editor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a644d69fc03aca222c38044578e5a181b">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">&#160;</td><td class="mdescRight">Creates a new text editor and initialize with given text.  <a href="#a644d69fc03aca222c38044578e5a181b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e43187a1a3ad8386cb7c2271cb250ee"></a><!-- doxytag: member="Wt::WTextEdit::~WTextEdit" ref="a3e43187a1a3ad8386cb7c2271cb250ee" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a3e43187a1a3ad8386cb7c2271cb250ee">~WTextEdit</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a8023b2dbe675a22f30a563704d9ae475">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the content.  <a href="#a8023b2dbe675a22f30a563704d9ae475"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a7b6df4e80ea878c1c6d57d1c85f60b04">setStyleSheet</a> (const std::string &amp;uri)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the stylesheet for displaying the content.  <a href="#a7b6df4e80ea878c1c6d57d1c85f60b04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a00bb046fcc9808054a7dcde5d2b69dac">styleSheet</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the content stylesheet.  <a href="#a00bb046fcc9808054a7dcde5d2b69dac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a106e80b7ae54d21a7307f3d4c125d098">setExtraPlugins</a> (const std::string &amp;plugins)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads additional TinyMCE plugins.  <a href="#a106e80b7ae54d21a7307f3d4c125d098"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#af2b4d01920784e83d663b2e5310ca58f">extraPlugins</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the extra plugins.  <a href="#af2b4d01920784e83d663b2e5310ca58f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#ab569b96e871c547b1f992b727c00c902">setToolBar</a> (int i, const std::string &amp;config)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures a tool bar.  <a href="#ab569b96e871c547b1f992b727c00c902"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a8f491ba1b49e3aaad404a604ece70459">toolBar</a> (int i) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a tool bar configuration.  <a href="#a8f491ba1b49e3aaad404a604ece70459"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a1a504c0a6c1a6fc77d09f3886448785d">setConfigurationSetting</a> (const std::string &amp;name, const boost::any &amp;value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure a TinyMCE setting.  <a href="#a1a504c0a6c1a6fc77d09f3886448785d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boost::any&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#a3db089834a223b81a7c95826f7be475e">configurationSetting</a> (const std::string &amp;name) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a TinyMCE configuration setting's value.  <a href="#a3db089834a223b81a7c95826f7be475e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#ac9f80e652fc361512aa2587c54f4ecb5">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">&#160;</td><td class="mdescRight">Resizes the widget.  <a href="#ac9f80e652fc361512aa2587c54f4ecb5"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#ab268ab5bfd2edda2bf64dad5cd068abe">boxPadding</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in padding.  <a href="#ab268ab5bfd2edda2bf64dad5cd068abe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTextEdit.html#ac946e268b85e49d1155c656f354f00cb">boxBorder</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the widget's built-in border width.  <a href="#ac946e268b85e49d1155c656f354f00cb"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A rich-text XHTML editor. </p>
<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>
<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#a1a504c0a6c1a6fc77d09f3886448785d" title="Configure a TinyMCE setting.">setConfigurationSetting()</a> and related methods that provide direct access to the underlying TinyMCE component.</p>
<p>To use this widget, you need to download TinyMCE (version 3.5b1 or later) and deploy the <code>tinymce/jscripts/tiny_mce</code> folder to <em>tinyMCEBaseURL</em>. The default value for <em>tinyMCEBaseURL</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>
<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 &lt;i&lt;&gt;tinyMCEBaseURL/i&gt; property in your Wt configuration file, see <a class="el" href="overview.html#config_general">configuration properties</a>.</p>
<p>Usage example: </p>
<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">&quot;Comments:&quot;</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#a451adca0c258c17b37bc544e3684952b" title="Creates a new text editor.">Wt::WTextEdit</a>(<span class="stringliteral">&quot;&quot;</span>, w);
 label-&gt;<a class="code" href="classWt_1_1WLabel.html#af468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">setBuddy</a>(edit);
</pre></div><h3>CSS</h3>
<p>Styling through CSS is not applicable.</p>
<div class="image">
<img src="WTextEdit-1.png" alt="WTextEdit-1.png"/>
<div class="caption">
Default configuration of a WTextEdit</div></div>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a644d69fc03aca222c38044578e5a181b"></a><!-- doxytag: member="Wt::WTextEdit::WTextEdit" ref="a644d69fc03aca222c38044578e5a181b" 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;&#160;</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> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <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>
<p>The <code>text</code> should be valid XHTML. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac946e268b85e49d1155c656f354f00cb"></a><!-- doxytag: member="Wt::WTextEdit::boxBorder" ref="ac946e268b85e49d1155c656f354f00cb" 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#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in border width. </p>
<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>
<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>
<p>For form widgets, the border width depends on the specific browser/platform combination, unless an explicit border is set for the widget.</p>
<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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#ab268ab5bfd2edda2bf64dad5cd068abe" title="Returns the widget&#39;s built-in padding.">boxPadding()</a> </dd></dl>

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

</div>
</div>
<a class="anchor" id="ab268ab5bfd2edda2bf64dad5cd068abe"></a><!-- doxytag: member="Wt::WTextEdit::boxPadding" ref="ab268ab5bfd2edda2bf64dad5cd068abe" 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#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the widget's built-in padding. </p>
<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>
<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>
<p>For form widgets, the padding depends on the specific browser/platform combination, unless an explicit padding is set for the widget.</p>
<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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTextEdit.html#ac946e268b85e49d1155c656f354f00cb" 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#a83a327ce1d6408a99991cd6b5ddc74e4">Wt::WTextArea</a>.</p>

</div>
</div>
<a class="anchor" id="a3db089834a223b81a7c95826f7be475e"></a><!-- doxytag: member="Wt::WTextEdit::configurationSetting" ref="a3db089834a223b81a7c95826f7be475e" args="(const std::string &amp;name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boost::any Wt::WTextEdit::configurationSetting </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a TinyMCE configuration setting's value. </p>
<p>An empty boost::any is returned when no value could be found for the provided argument. </p>

</div>
</div>
<a class="anchor" id="af2b4d01920784e83d663b2e5310ca58f"></a><!-- doxytag: member="Wt::WTextEdit::extraPlugins" ref="af2b4d01920784e83d663b2e5310ca58f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string Wt::WTextEdit::extraPlugins </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="ac9f80e652fc361512aa2587c54f4ecb5"></a><!-- doxytag: member="Wt::WTextEdit::resize" ref="ac9f80e652fc361512aa2587c54f4ecb5" 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;&#160;</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;&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes the widget. </p>
<p>Specifies a fixed size for this widget, setting CSS <code>width</code> and <code>height</code> properties. By default a widget has automatic width and height, which sets a size for the widget following CSS rules.</p>
<p>When the widget is not managed by a layout manager, the automatic (natural) size of a widget depends on whether they widget is a <em>block</em> or <em>inline</em> widget:</p>
<ul>
<li>a <em>block</em> widget takes by default the width of the parent, and the height that it needs based on its contents</li>
<li>an <em>inline</em> widget takes the width and height that it needs based on its contents (possibly wrapping over multiple lines). The width and height of an inline widget cannot be changed (by the letter of CSS, although most browsers will react to it in varying ways).</li>
</ul>
<p>When inserted in a layout manager, the size set will be used as a widget's preferred size, but the widget may be given a different size by the layout manager based on available space and stretch factors. The actual size given by a layout manager may be retrieved by making the widget "layout size aware", using <a class="el" href="classWt_1_1WWidget.html#a4f83592912a7f8fa4fd35dadde78ee74" title="Sets the widget to be aware of its size set by a layout manager.">setLayoutSizeAware()</a>. If you have defined a <code>"wtResize()"</code> JavaScript method for the widget, then this method will also be called.</p>
<p>The default width and height of a widget is <a class="el" href="classWt_1_1WLength.html#a0cf39ca4225776879d56ade60320c31a" title="An &#39;auto&#39; length.">WLength::Auto</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WWebWidget.html#a66ea6d827d488a855abc7a36d8d414ca" title="Returns the width.">width()</a>, <a class="el" href="classWt_1_1WWebWidget.html#a890a25fe2e8567525f44c0d2ecf0547b" title="Returns the height.">height()</a> </dd></dl>

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

</div>
</div>
<a class="anchor" id="a1a504c0a6c1a6fc77d09f3886448785d"></a><!-- doxytag: member="Wt::WTextEdit::setConfigurationSetting" ref="a1a504c0a6c1a6fc77d09f3886448785d" args="(const std::string &amp;name, const boost::any &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTextEdit::setConfigurationSetting </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::any &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configure a TinyMCE setting. </p>
<p>A list of possible settings can be found at: <a href="http://tinymce.moxiecode.com/wiki.php/Configuration">http://tinymce.moxiecode.com/wiki.php/Configuration</a></p>
<p>The widget itself will also define a number of configuration settings and these may be overridden using this method. </p>

</div>
</div>
<a class="anchor" id="a106e80b7ae54d21a7307f3d4c125d098"></a><!-- doxytag: member="Wt::WTextEdit::setExtraPlugins" ref="a106e80b7ae54d21a7307f3d4c125d098" 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;&#160;</td>
          <td class="paramname"><em>plugins</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Loads additional TinyMCE plugins. </p>
<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>
<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"><dt><b>Note:</b></dt><dd>Plugins can only be loaded before the initial display of the widget. </dd></dl>

</div>
</div>
<a class="anchor" id="a7b6df4e80ea878c1c6d57d1c85f60b04"></a><!-- doxytag: member="Wt::WTextEdit::setStyleSheet" ref="a7b6df4e80ea878c1c6d57d1c85f60b04" 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;&#160;</td>
          <td class="paramname"><em>uri</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the stylesheet for displaying the content. </p>
<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>
<p>Multiple stylesheets may be specified as a comma separated list. </p>

</div>
</div>
<a class="anchor" id="a8023b2dbe675a22f30a563704d9ae475"></a><!-- doxytag: member="Wt::WTextEdit::setText" ref="a8023b2dbe675a22f30a563704d9ae475" 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;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the content. </p>
<p>The <code>text</code> should be valid XHTML.</p>
<p>The default value is "". </p>

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

</div>
</div>
<a class="anchor" id="ab569b96e871c547b1f992b727c00c902"></a><!-- doxytag: member="Wt::WTextEdit::setToolBar" ref="ab569b96e871c547b1f992b727c00c902" 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&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures a tool bar. </p>
<p>This configures the buttons for the <code>i'th</code> tool bar (with 0 &lt;= <code>i</code> &lt;= 3).</p>
<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>
<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>
<p>By default, the other three tool bars are disabled (<code>config</code> = "").</p>
<p>Some buttons are only available after loading extra plugins using <a class="el" href="classWt_1_1WTextEdit.html#a106e80b7ae54d21a7307f3d4c125d098" title="Loads additional TinyMCE plugins.">setExtraPlugins()</a>.</p>
<dl class="note"><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>
<a class="anchor" id="a00bb046fcc9808054a7dcde5d2b69dac"></a><!-- doxytag: member="Wt::WTextEdit::styleSheet" ref="a00bb046fcc9808054a7dcde5d2b69dac" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string Wt::WTextEdit::styleSheet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a8f491ba1b49e3aaad404a604ece70459"></a><!-- doxytag: member="Wt::WTextEdit::toolBar" ref="a8f491ba1b49e3aaad404a604ece70459" args="(int i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string Wt::WTextEdit::toolBar </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>