Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 4107

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!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" lang="en_US" xml:lang="en_US">

<head>
  <title>khtml: DOM::CSSPrimitiveValue Class Reference (khtml)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">khtml</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceDOM.html">DOM</a>      </li>
      <li class="navelem"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html">CSSPrimitiveValue</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">DOM::CSSPrimitiveValue Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DOM::CSSPrimitiveValue" --><!-- doxytag: inherits="DOM::CSSValue" -->
<p>The <code><a class="el" href="classDOM_1_1CSSPrimitiveValue.html" title="The CSSPrimitiveValue interface represents a single CSS value  .">CSSPrimitiveValue</a></code> interface represents a single <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#values">CSS value </a> .  
 <a href="classDOM_1_1CSSPrimitiveValue.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="css__value_8h_source.html">css_value.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DOM::CSSPrimitiveValue:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classDOM_1_1CSSPrimitiveValue.png" usemap="#DOM::CSSPrimitiveValue_map" alt=""/>
  <map id="DOM::CSSPrimitiveValue_map" name="DOM::CSSPrimitiveValue_map">
<area href="classDOM_1_1CSSValue.html" title="The CSSValue interface represents a simple or a complexe value." alt="DOM::CSSValue" shape="rect" coords="0,0,154,24"/>
</map>
 </div></div>

<p><a href="classDOM_1_1CSSPrimitiveValue-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#a0d9baf87ccc872a6e608477a624c7c2e">UnitTypes</a> { <br/>
&#160;&#160;<b>CSS_UNKNOWN</b> =  0, 
<b>CSS_NUMBER</b> =  1, 
<b>CSS_PERCENTAGE</b> =  2, 
<b>CSS_EMS</b> =  3, 
<br/>
&#160;&#160;<b>CSS_EXS</b> =  4, 
<b>CSS_PX</b> =  5, 
<b>CSS_CM</b> =  6, 
<b>CSS_MM</b> =  7, 
<br/>
&#160;&#160;<b>CSS_IN</b> =  8, 
<b>CSS_PT</b> =  9, 
<b>CSS_PC</b> =  10, 
<b>CSS_DEG</b> =  11, 
<br/>
&#160;&#160;<b>CSS_RAD</b> =  12, 
<b>CSS_GRAD</b> =  13, 
<b>CSS_MS</b> =  14, 
<b>CSS_S</b> =  15, 
<br/>
&#160;&#160;<b>CSS_HZ</b> =  16, 
<b>CSS_KHZ</b> =  17, 
<b>CSS_DIMENSION</b> =  18, 
<b>CSS_STRING</b> =  19, 
<br/>
&#160;&#160;<b>CSS_URI</b> =  20, 
<b>CSS_IDENT</b> =  21, 
<b>CSS_ATTR</b> =  22, 
<b>CSS_COUNTER</b> =  23, 
<br/>
&#160;&#160;<b>CSS_RECT</b> =  24, 
<b>CSS_RGBCOLOR</b> =  25, 
<b>CSS_PAIR</b> =  100, 
<b>CSS_HTML_RELATIVE</b> =  255
<br/>
 }</td></tr>
<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="a590a4a84624efad51c837e00f35506f7"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::CSSPrimitiveValue" ref="a590a4a84624efad51c837e00f35506f7" args="(const CSSPrimitiveValue &amp;other)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>CSSPrimitiveValue</b> (const <a class="el" href="classDOM_1_1CSSPrimitiveValue.html">CSSPrimitiveValue</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54a93c4d90446bffaaa232baedc33267"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::CSSPrimitiveValue" ref="a54a93c4d90446bffaaa232baedc33267" args="(const CSSValue &amp;other)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>CSSPrimitiveValue</b> (const <a class="el" href="classDOM_1_1CSSValue.html">CSSValue</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ae6521e81c6c95574c521be88c321f1"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::CSSPrimitiveValue" ref="a9ae6521e81c6c95574c521be88c321f1" args="(CSSPrimitiveValueImpl *impl)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>CSSPrimitiveValue</b> (CSSPrimitiveValueImpl *impl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4a22ffd05351750068b506066775109"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::operator=" ref="ab4a22ffd05351750068b506066775109" args="(const CSSPrimitiveValue &amp;other)" -->
<a class="el" href="classDOM_1_1CSSPrimitiveValue.html">CSSPrimitiveValue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classDOM_1_1CSSPrimitiveValue.html">CSSPrimitiveValue</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add6e5a9d76e74757ed71f22b554ed602"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::operator=" ref="add6e5a9d76e74757ed71f22b554ed602" args="(const CSSValue &amp;other)" -->
<a class="el" href="classDOM_1_1CSSPrimitiveValue.html">CSSPrimitiveValue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classDOM_1_1CSSValue.html">CSSValue</a> &amp;other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#ab01f757301ab2599f0102f4f9d6fd054">primitiveType</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#a770931b1336a652a7c21e92a3bf14041">setFloatValue</a> (unsigned short unitType, float floatValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#ab22847ee35f2f63813f668a69aa05358">getFloatValue</a> (unsigned short unitType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#ad9c671f9797cfd694adc65b3d85e7880">setStringValue</a> (unsigned short stringType, const <a class="el" href="classDOM_1_1DOMString.html">DOM::DOMString</a> &amp;stringValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDOM_1_1DOMString.html">DOM::DOMString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#adef0c94aaa36b21ce813e05ce3a21fcf">getStringValue</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDOM_1_1Counter.html">Counter</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#a2bf168816f60cda3536fbc3f7ce2ce9d">getCounterValue</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDOM_1_1Rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#ac81042af020ff6d5d74a3a40bc18679e">getRectValue</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDOM_1_1RGBColor.html">RGBColor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOM_1_1CSSPrimitiveValue.html#a62fbd4c889b101f219f16c51ba9d70f2">getRGBColorValue</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <code><a class="el" href="classDOM_1_1CSSPrimitiveValue.html" title="The CSSPrimitiveValue interface represents a single CSS value  .">CSSPrimitiveValue</a></code> interface represents a single <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#values">CSS value </a> . </p>
<p>This interface may be used to determine the value of a specific style property currently set in a block or to set a specific style properties explicitly within the block. An instance of this interface can be obtained from the <code>getPropertyCSSValue</code> method of the <code><a class="el" href="classDOM_1_1CSSStyleDeclaration.html" title="The CSSStyleDeclaration interface represents a single CSS declaration block  .">CSSStyleDeclaration</a></code> interface. </p>

<p>Definition at line <a class="el" href="css__value_8h_source.html#l00373">373</a> of file <a class="el" href="css__value_8h_source.html">css_value.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a0d9baf87ccc872a6e608477a624c7c2e"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::UnitTypes" ref="a0d9baf87ccc872a6e608477a624c7c2e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classDOM_1_1CSSPrimitiveValue.html#a0d9baf87ccc872a6e608477a624c7c2e">DOM::CSSPrimitiveValue::UnitTypes</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>An integer indicating which type of unit applies to the value. </p>

<p>Reimplemented from <a class="el" href="classDOM_1_1CSSValue.html#aeecacc09df684a5cc0719ca9fd61a7f6">DOM::CSSValue</a>.</p>

<p>Definition at line <a class="el" href="css__value_8h_source.html#l00390">390</a> of file <a class="el" href="css__value_8h_source.html">css_value.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2bf168816f60cda3536fbc3f7ce2ce9d"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::getCounterValue" ref="a2bf168816f60cda3536fbc3f7ce2ce9d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDOM_1_1Counter.html">Counter</a> DOM::CSSPrimitiveValue::getCounterValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method is used to get the <a class="el" href="classDOM_1_1Counter.html" title="The Counter interface is used to represent any counter or counters function  value.">Counter</a> value. </p>
<p>If this CSS value doesn't contain a counter value, a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> is raised. Modification to the corresponding style property can be achieved using the <code><a class="el" href="classDOM_1_1Counter.html" title="The Counter interface is used to represent any counter or counters function  value.">Counter</a></code> interface.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classDOM_1_1Counter.html" title="The Counter interface is used to represent any counter or counters function  value.">Counter</a> value.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the CSS value doesn't contain a <a class="el" href="classDOM_1_1Counter.html" title="The Counter interface is used to represent any counter or counters function  value.">Counter</a> value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00395">395</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab22847ee35f2f63813f668a69aa05358"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::getFloatValue" ref="ab22847ee35f2f63813f668a69aa05358" args="(unsigned short unitType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float DOM::CSSPrimitiveValue::getFloatValue </td>
          <td>(</td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>unitType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method is used to get a float value in a specified unit. </p>
<p>If this CSS value doesn't contain a float value or can't be converted into the specified unit, a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> is raised.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">unitType</td><td>A unit code to get the float value. The unit code can only be a float unit type (e.g. <code>CSS_NUMBER</code> , <code>CSS_PERCENTAGE</code> , <code>CSS_EMS</code> , <code>CSS_EXS</code> , <code>CSS_PX</code> , <code>CSS_PX</code> , <code>CSS_CM</code> , <code>CSS_MM</code> , <code>CSS_IN</code> , <code>CSS_PT</code> , <code>CSS_PC</code> , <code>CSS_DEG</code> , <code>CSS_RAD</code> , <code>CSS_GRAD</code> , <code>CSS_MS</code> , <code>CSS_S</code> , <code>CSS_HZ</code> , <code>CSS_KHZ</code> , <code>CSS_DIMENSION</code> ).</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The float value in the specified unit.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the CSS value doesn't contain a float value or if the float value can't be converted into the specified unit. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00368">368</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac81042af020ff6d5d74a3a40bc18679e"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::getRectValue" ref="ac81042af020ff6d5d74a3a40bc18679e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDOM_1_1Rect.html">Rect</a> DOM::CSSPrimitiveValue::getRectValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method is used to get the <a class="el" href="classDOM_1_1Rect.html" title="The Rect interface is used to represent any rect  value.">Rect</a> value. </p>
<p>If this CSS value doesn't contain a rect value, a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> is raised. Modification to the corresponding style property can be achieved using the <code><a class="el" href="classDOM_1_1Rect.html" title="The Rect interface is used to represent any rect  value.">Rect</a></code> interface.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classDOM_1_1Rect.html" title="The Rect interface is used to represent any rect  value.">Rect</a> value.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the CSS value doesn't contain a <a class="el" href="classDOM_1_1Rect.html" title="The Rect interface is used to represent any rect  value.">Rect</a> value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00401">401</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a62fbd4c889b101f219f16c51ba9d70f2"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::getRGBColorValue" ref="a62fbd4c889b101f219f16c51ba9d70f2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDOM_1_1RGBColor.html">RGBColor</a> DOM::CSSPrimitiveValue::getRGBColorValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method is used to get the RGB color. </p>
<p>If this CSS value doesn't contain a RGB color value, a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> is raised. Modification to the corresponding style property can be achieved using the <code><a class="el" href="classDOM_1_1RGBColor.html" title="The RGBColor interface is used to represent any RGB color  value.">RGBColor</a></code> interface.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the RGB color value.</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the attached property can't return a RGB color value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00407">407</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adef0c94aaa36b21ce813e05ce3a21fcf"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::getStringValue" ref="adef0c94aaa36b21ce813e05ce3a21fcf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDOM_1_1DOMString.html">DOMString</a> DOM::CSSPrimitiveValue::getStringValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method is used to get the string value in a specified unit. </p>
<p>If the CSS value doesn't contain a string value, a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> is raised.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The string value in the current unit. The current <code>valueType</code> can only be a string unit type (e.g. <code>CSS_URI</code> , <code>CSS_IDENT</code> and <code>CSS_ATTR</code> ).</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the CSS value doesn't contain a string value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00389">389</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab01f757301ab2599f0102f4f9d6fd054"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::primitiveType" ref="ab01f757301ab2599f0102f4f9d6fd054" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short DOM::CSSPrimitiveValue::primitiveType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The type of the value as defined by the constants specified above. </p>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00351">351</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a770931b1336a652a7c21e92a3bf14041"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::setFloatValue" ref="a770931b1336a652a7c21e92a3bf14041" args="(unsigned short unitType, float floatValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DOM::CSSPrimitiveValue::setFloatValue </td>
          <td>(</td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>unitType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>floatValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A method to set the float value with a specified unit. </p>
<p>If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> will be raised.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">unitType</td><td>A unit code as defined above. The unit code can only be a float unit type (e.g. <code>NUMBER</code> , <code>PERCENTAGE</code> , <code>CSS_EMS</code> , <code>CSS_EXS</code> , <code>CSS_PX</code> , <code>CSS_PX</code> , <code>CSS_CM</code> , <code>CSS_MM</code> , <code>CSS_IN</code> , <code>CSS_PT</code> , <code>CSS_PC</code> , <code>CSS_DEG</code> , <code>CSS_RAD</code> , <code>CSS_GRAD</code> , <code>CSS_MS</code> , <code>CSS_S</code> , <code>CSS_HZ</code> , <code>CSS_KHZ</code> , <code>CSS_DIMENSION</code> ).</td></tr>
    <tr><td class="paramname">floatValue</td><td>The new float value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the attached property doesn't support the float value or the unit type.</td></tr>
  </table>
  </dd>
</dl>
<p>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. </p>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00357">357</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad9c671f9797cfd694adc65b3d85e7880"></a><!-- doxytag: member="DOM::CSSPrimitiveValue::setStringValue" ref="ad9c671f9797cfd694adc65b3d85e7880" args="(unsigned short stringType, const DOM::DOMString &amp;stringValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DOM::CSSPrimitiveValue::setStringValue </td>
          <td>(</td>
          <td class="paramtype">unsigned short&#160;</td>
          <td class="paramname"><em>stringType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classDOM_1_1DOMString.html">DOM::DOMString</a> &amp;&#160;</td>
          <td class="paramname"><em>stringValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A method to set the string value with a specified unit. </p>
<p>If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a <code><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></code> will be raised.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">stringType</td><td>A string code as defined above. The string code can only be a string unit type (e.g. <code>CSS_URI</code> , <code>CSS_IDENT</code> , <code>CSS_INHERIT</code> and <code>CSS_ATTR</code> ).</td></tr>
    <tr><td class="paramname">stringValue</td><td>The new string value. If the <code>stringType</code> is equal to <code>CSS_INHERIT</code> , the <code>stringValue</code> should be <code>inherit</code> .</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classDOM_1_1DOMException.html" title="DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...">DOMException</a></td><td>INVALID_ACCESS_ERR: Raises if the CSS value doesn't contain a string value or if the string value can't be converted into the specified unit.</td></tr>
  </table>
  </dd>
</dl>
<p>NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. </p>

<p>Definition at line <a class="el" href="css__value_8cpp_source.html#l00377">377</a> of file <a class="el" href="css__value_8cpp_source.html">css_value.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="css__value_8h_source.html">css_value.h</a></li>
<li><a class="el" href="css__value_8cpp_source.html">css_value.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>khtml</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classDOM_1_1AbstractView.html">dom::abstractview</option>,  <option value="classDOM_1_1Attr.html">dom::attr</option>,  <option value="classDOM_1_1CDATASection.html">dom::cdatasection</option>,  <option value="classDOM_1_1CharacterData.html">dom::characterdata</option>,  <option value="classDOM_1_1Comment.html">dom::comment</option>,  <option value="classDOM_1_1Counter.html">dom::counter</option>,  <option value="classDOM_1_1CSS2Azimuth.html">dom::css2azimuth</option>,  <option value="classDOM_1_1CSS2BackgroundPosition.html">dom::css2backgroundposition</option>,  <option value="classDOM_1_1CSS2BorderSpacing.html">dom::css2borderspacing</option>,  <option value="classDOM_1_1CSS2CounterIncrement.html">dom::css2counterincrement</option>,  <option value="classDOM_1_1CSS2CounterReset.html">dom::css2counterreset</option>,  <option value="classDOM_1_1CSS2Cursor.html">dom::css2cursor</option>,  <option value="classDOM_1_1CSS2FontFaceSrc.html">dom::css2fontfacesrc</option>,  <option value="classDOM_1_1CSS2FontFaceWidths.html">dom::css2fontfacewidths</option>,  <option value="classDOM_1_1CSS2PageSize.html">dom::css2pagesize</option>,  <option value="classDOM_1_1CSS2PlayDuring.html">dom::css2playduring</option>,  <option value="classDOM_1_1CSS2Properties.html">dom::css2properties</option>,  <option value="classDOM_1_1CSS2TextShadow.html">dom::css2textshadow</option>,  <option value="classDOM_1_1CSSCharsetRule.html">dom::csscharsetrule</option>,  <option value="classDOM_1_1CSSException.html">dom::cssexception</option>,  <option value="classDOM_1_1CSSFontFaceRule.html">dom::cssfontfacerule</option>,  <option value="classDOM_1_1CSSImportRule.html">dom::cssimportrule</option>,  <option value="classDOM_1_1CSSMediaRule.html">dom::cssmediarule</option>,  <option value="classDOM_1_1CSSPrimitiveValue.html">dom::cssprimitivevalue</option>,  <option value="classDOM_1_1CSSRule.html">dom::cssrule</option>,  <option value="classDOM_1_1CSSRuleList.html">dom::cssrulelist</option>,  <option value="classDOM_1_1CSSStyleDeclaration.html">dom::cssstyledeclaration</option>,  <option value="classDOM_1_1CSSStyleRule.html">dom::cssstylerule</option>,  <option value="classDOM_1_1CSSStyleSheet.html">dom::cssstylesheet</option>,  <option value="classDOM_1_1CSSUnknownRule.html">dom::cssunknownrule</option>,  <option value="classDOM_1_1CSSValue.html">dom::cssvalue</option>,  <option value="classDOM_1_1CSSValueList.html">dom::cssvaluelist</option>,  <option value="classDOM_1_1CustomNodeFilter.html">dom::customnodefilter</option>,  <option value="classDOM_1_1Document.html">dom::document</option>,  <option value="classDOM_1_1DocumentFragment.html">dom::documentfragment</option>,  <option value="classDOM_1_1DocumentType.html">dom::documenttype</option>,  <option value="classDOM_1_1DOMException.html">dom::domexception</option>,  <option value="classDOM_1_1DOMImplementation.html">dom::domimplementation</option>,  <option value="classDOM_1_1DOMString.html">dom::domstring</option>,  <option value="classDOM_1_1Element.html">dom::element</option>,  <option value="classDOM_1_1Entity.html">dom::entity</option>,  <option value="classDOM_1_1EntityReference.html">dom::entityreference</option>,  <option value="classDOM_1_1Event.html">dom::event</option>,  <option value="classDOM_1_1EventException.html">dom::eventexception</option>,  <option value="classDOM_1_1EventListener.html">dom::eventlistener</option>,  <option value="classDOM_1_1HTMLAnchorElement.html">dom::htmlanchorelement</option>,  <option value="classDOM_1_1HTMLAppletElement.html">dom::htmlappletelement</option>,  <option value="classDOM_1_1HTMLAreaElement.html">dom::htmlareaelement</option>,  <option value="classDOM_1_1HTMLBaseElement.html">dom::htmlbaseelement</option>,  <option value="classDOM_1_1HTMLBaseFontElement.html">dom::htmlbasefontelement</option>,  <option value="classDOM_1_1HTMLBlockquoteElement.html">dom::htmlblockquoteelement</option>,  <option value="classDOM_1_1HTMLBodyElement.html">dom::htmlbodyelement</option>,  <option value="classDOM_1_1HTMLBRElement.html">dom::htmlbrelement</option>,  <option value="classDOM_1_1HTMLButtonElement.html">dom::htmlbuttonelement</option>,  <option value="classDOM_1_1HTMLCollection.html">dom::htmlcollection</option>,  <option value="classDOM_1_1HTMLDirectoryElement.html">dom::htmldirectoryelement</option>,  <option value="classDOM_1_1HTMLDivElement.html">dom::htmldivelement</option>,  <option value="classDOM_1_1HTMLDListElement.html">dom::htmldlistelement</option>,  <option value="classDOM_1_1HTMLDocument.html">dom::htmldocument</option>,  <option value="classDOM_1_1HTMLElement.html">dom::htmlelement</option>,  <option value="classDOM_1_1HTMLFieldSetElement.html">dom::htmlfieldsetelement</option>,  <option value="classDOM_1_1HTMLFontElement.html">dom::htmlfontelement</option>,  <option value="classDOM_1_1HTMLFormElement.html">dom::htmlformelement</option>,  <option value="classDOM_1_1HTMLFrameElement.html">dom::htmlframeelement</option>,  <option value="classDOM_1_1HTMLFrameSetElement.html">dom::htmlframesetelement</option>,  <option value="classDOM_1_1HTMLHeadElement.html">dom::htmlheadelement</option>,  <option value="classDOM_1_1HTMLHeadingElement.html">dom::htmlheadingelement</option>,  <option value="classDOM_1_1HTMLHRElement.html">dom::htmlhrelement</option>,  <option value="classDOM_1_1HTMLHtmlElement.html">dom::htmlhtmlelement</option>,  <option value="classDOM_1_1HTMLIFrameElement.html">dom::htmliframeelement</option>,  <option value="classDOM_1_1HTMLImageElement.html">dom::htmlimageelement</option>,  <option value="classDOM_1_1HTMLInputElement.html">dom::htmlinputelement</option>,  <option value="classDOM_1_1HTMLIsIndexElement.html">dom::htmlisindexelement</option>,  <option value="classDOM_1_1HTMLLabelElement.html">dom::htmllabelelement</option>,  <option value="classDOM_1_1HTMLLayerElement.html">dom::htmllayerelement</option>,  <option value="classDOM_1_1HTMLLegendElement.html">dom::htmllegendelement</option>,  <option value="classDOM_1_1HTMLLIElement.html">dom::htmllielement</option>,  <option value="classDOM_1_1HTMLLinkElement.html">dom::htmllinkelement</option>,  <option value="classDOM_1_1HTMLMapElement.html">dom::htmlmapelement</option>,  <option value="classDOM_1_1HTMLMenuElement.html">dom::htmlmenuelement</option>,  <option value="classDOM_1_1HTMLMetaElement.html">dom::htmlmetaelement</option>,  <option value="classDOM_1_1HTMLModElement.html">dom::htmlmodelement</option>,  <option value="classDOM_1_1HTMLObjectElement.html">dom::htmlobjectelement</option>,  <option value="classDOM_1_1HTMLOListElement.html">dom::htmlolistelement</option>,  <option value="classDOM_1_1HTMLOptGroupElement.html">dom::htmloptgroupelement</option>,  <option value="classDOM_1_1HTMLOptionElement.html">dom::htmloptionelement</option>,  <option value="classDOM_1_1HTMLParagraphElement.html">dom::htmlparagraphelement</option>,  <option value="classDOM_1_1HTMLParamElement.html">dom::htmlparamelement</option>,  <option value="classDOM_1_1HTMLPreElement.html">dom::htmlpreelement</option>,  <option value="classDOM_1_1HTMLQuoteElement.html">dom::htmlquoteelement</option>,  <option value="classDOM_1_1HTMLScriptElement.html">dom::htmlscriptelement</option>,  <option value="classDOM_1_1HTMLSelectElement.html">dom::htmlselectelement</option>,  <option value="classDOM_1_1HTMLStyleElement.html">dom::htmlstyleelement</option>,  <option value="classDOM_1_1HTMLTableCaptionElement.html">dom::htmltablecaptionelement</option>,  <option value="classDOM_1_1HTMLTableCellElement.html">dom::htmltablecellelement</option>,  <option value="classDOM_1_1HTMLTableColElement.html">dom::htmltablecolelement</option>,  <option value="classDOM_1_1HTMLTableElement.html">dom::htmltableelement</option>,  <option value="classDOM_1_1HTMLTableRowElement.html">dom::htmltablerowelement</option>,  <option value="classDOM_1_1HTMLTableSectionElement.html">dom::htmltablesectionelement</option>,  <option value="classDOM_1_1HTMLTextAreaElement.html">dom::htmltextareaelement</option>,  <option value="classDOM_1_1HTMLTitleElement.html">dom::htmltitleelement</option>,  <option value="classDOM_1_1HTMLUListElement.html">dom::htmlulistelement</option>,  <option value="classDOM_1_1MediaList.html">dom::medialist</option>,  <option value="classDOM_1_1MouseEvent.html">dom::mouseevent</option>,  <option value="classDOM_1_1MutationEvent.html">dom::mutationevent</option>,  <option value="classDOM_1_1NamedNodeMap.html">dom::namednodemap</option>,  <option value="classDOM_1_1Node.html">dom::node</option>,  <option value="classDOM_1_1NodeFilter.html">dom::nodefilter</option>,  <option value="classDOM_1_1NodeIterator.html">dom::nodeiterator</option>,  <option value="classDOM_1_1NodeList.html">dom::nodelist</option>,  <option value="classDOM_1_1Notation.html">dom::notation</option>,  <option value="classDOM_1_1ProcessingInstruction.html">dom::processinginstruction</option>,  <option value="classDOM_1_1Rect.html">dom::rect</option>,  <option value="classDOM_1_1RGBColor.html">dom::rgbcolor</option>,  <option value="classDOM_1_1StyleSheet.html">dom::stylesheet</option>,  <option value="classDOM_1_1StyleSheetList.html">dom::stylesheetlist</option>,  <option value="classDOM_1_1Text.html">dom::text</option>,  <option value="classDOM_1_1TextEvent.html">dom::textevent</option>,  <option value="classDOM_1_1TreeWalker.html">dom::treewalker</option>,  <option value="classDOM_1_1UIEvent.html">dom::uievent</option>,  <option value="classKHTMLPageCache.html">khtmlpagecache</option>,  <option value="classKHTMLPart.html">khtmlpart</option>,  <option value="classKHTMLPartBrowserExtension.html">khtmlpartbrowserextension</option>,  <option value="classKHTMLPartIface.html">khtmlpartiface</option>,  <option value="classKHTMLSettings.html">khtmlsettings</option>,  <option value="classKHTMLView.html">khtmlview</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>