<HTML> <HEAD> <TITLE>class CSS2PageSize</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class CSS2PageSize</h1> </TD> <TD valign="top" align="right" colspan="1"> The <code> CSS2Cursor </code> interface represents the <a href="http://www. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Full name</TH><TD><code><A HREF="DOM.html">DOM</A>::CSS2PageSize</code></TD></TR> <TR><TH>Definition</TH><TD><code>#include <<A HREF="css__extensions_h.html">css_extensions.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="DOM__CSSValue.html">DOM::CSSValue</A> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-DOM__CSS2PageSize.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">CSS2PageSize</A></b> () </LI> <LI> <b><A HREF="#ref2">CSS2PageSize</A></b> (const CSS2PageSize &other) </LI> <LI> <b><A HREF="#ref3">CSS2PageSize</A></b> (CSS2PageSizeImpl *impl) </LI> <LI>CSS2PageSize & <b><A HREF="#ref4">operator = </A></b> (const CSS2PageSize &other) </LI> <LI> <b><A HREF="#ref5">~CSS2PageSize</A></b> () </LI> <LI>unsigned short <b><A HREF="#ref6">widthType</A></b> () const </LI> <LI>unsigned short <b><A HREF="#ref7">heightType</A></b> () const </LI> <LI><A HREF="DOM__DOMString.html">DOM::DOMString</A> <b><A HREF="#ref8">identifier</A></b> () const </LI> <LI>float <b><A HREF="#ref9">getWidth</A></b> ( const float widthType ) </LI> <LI>float <b><A HREF="#ref10">getHeightSize</A></b> ( const float heightType ) </LI> <LI>void <b><A HREF="#ref11">setWidthSize</A></b> ( const unsigned short widthType, const float value ) </LI> <LI>void <b><A HREF="#ref12">setHeightSize</A></b> ( const unsigned short heightType, const float value ) </LI> <LI>void <b><A HREF="#ref13">setIdentifier</A></b> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> &identifier ) </LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> The <code> CSS2Cursor </code> interface represents the <a href="http://www.w3.org/TR/REC-CSS2/page.html#propdef-size"> size </a> CSS Level 2 descriptor. </p> <p> </p> <A NAME="CSS2PageSize"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSS2PageSize</strong> () <br></td><td align="right"><h3><strong>CSS2PageSize</strong></h3></td></tr></table><p></p><A NAME="CSS2PageSize"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSS2PageSize</strong> (const CSS2PageSize &other) <br></td><td align="right"><h3><strong>CSS2PageSize</strong></h3></td></tr></table><p></p><A NAME="CSS2PageSize"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>CSS2PageSize</strong> (CSS2PageSizeImpl *impl) <br></td><td align="right"><h3><strong>CSS2PageSize</strong></h3></td></tr></table><p></p><A NAME="operator%20=%20"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>CSS2PageSize & <strong>operator = </strong> (const CSS2PageSize &other) <br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><p>Reimplemented from <A HREF="DOM__CSSValue.html#operator%20=%20">CSSValue</A>.</p> <A NAME="~CSS2PageSize"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~CSS2PageSize</strong> () <br></td><td align="right"><h3><strong>~CSS2PageSize</strong></h3></td></tr></table><p></p><A NAME="widthType"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>unsigned short <strong>widthType</strong> () <br></td><td align="right"><h3><strong>widthType</strong></h3></td></tr></table><p> <small>[const]</small></p><p> A code defining the type of the width of the page. It would be one of <code> CSS_EMS </code> , <code> CSS_EXS </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_IDENT </code> , <code> CSS_INHERIT </code> . If one of width or height is <code> CSS_IDENT </code> or <code> CSS_INHERIT </code> , it's guaranteed that the other is the same. </p> <p> </p> <A NAME="heightType"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>unsigned short <strong>heightType</strong> () <br></td><td align="right"><h3><strong>heightType</strong></h3></td></tr></table><p> <small>[const]</small></p><p> A code defining the type of the height of the page. It would be one of <code> CSS_EMS </code> , <code> CSS_EXS </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_IDENT </code> , <code> CSS_INHERIT </code> . If one of width or height is <code> CSS_IDENT </code> or <code> CSS_INHERIT </code> , it's guaranteed that the other is the same. </p> <p> </p> <A NAME="identifier"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="DOM__DOMString.html">DOM::DOMString</A> <strong>identifier</strong> () <br></td><td align="right"><h3><strong>identifier</strong></h3></td></tr></table><p> <small>[const]</small></p><p> If <code> width </code> is <code> CSS_IDENT </code> or <code> CSS_INHERIT </code> , this attribute contains the string representation of the ident, otherwise it contains an empty string. </p> <p> </p> <A NAME="getWidth"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>float <strong>getWidth</strong> ( const float widthType ) <br></td><td align="right"><h3><strong>getWidth</strong></h3></td></tr></table><p></p><p> This method is used to get the float value in a specified unit if the <code> widthType </code> represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a <code> DOMException </code> is raised. </p> <p></p> <p></p> <p></p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>widthType</i></TD><TD align="left" valign="top">The specified unit. </TD></TR> </TABLE></P> <p><b>Returns</b>: The float value. </p> <p><b>Throws</b>: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.</p> <A NAME="getHeightSize"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>float <strong>getHeightSize</strong> ( const float heightType ) <br></td><td align="right"><h3><strong>getHeightSize</strong></h3></td></tr></table><p></p><p> This method is used to get the float value in a specified unit if the <code> heightType </code> represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a <code> DOMException </code> is raised. If only the width value has been specified, the height value is the same. </p> <p></p> <p></p> <p></p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>heightType</i></TD><TD align="left" valign="top">The specified unit. </TD></TR> </TABLE></P> <p><b>Returns</b>: The float value. </p> <p><b>Throws</b>: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.</p> <A NAME="setWidthSize"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setWidthSize</strong> ( const unsigned short widthType, const float value ) <br></td><td align="right"><h3><strong>setWidthSize</strong></h3></td></tr></table><p></p><p> This method is used to set the width position with a specified unit. If the <code> heightType </code> is not a length, it sets the height position to the same value. </p> <p></p> <p></p> <p></p> <p> NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>widthType</i></TD><TD align="left" valign="top">The specified unit. </TD></TR> <TR><TD align="left" valign="top"><i>value</i></TD><TD align="left" valign="top">The new value. </TD></TR> </TABLE></P> <p><b>Throws</b>: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.</p> <A NAME="setHeightSize"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setHeightSize</strong> ( const unsigned short heightType, const float value ) <br></td><td align="right"><h3><strong>setHeightSize</strong></h3></td></tr></table><p></p><p> This method is used to set the height position with a specified unit. If the <code> widthType </code> is not a length, it sets the width position to the same value. </p> <p></p> <p></p> <p></p> <p> NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>heightType</i></TD><TD align="left" valign="top">The specified unit. </TD></TR> <TR><TD align="left" valign="top"><i>value</i></TD><TD align="left" valign="top">The new value. </TD></TR> </TABLE></P> <p><b>Throws</b>: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.</p> <A NAME="setIdentifier"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setIdentifier</strong> ( const <A HREF="DOM__DOMString.html">DOM::DOMString</A> &identifier ) <br></td><td align="right"><h3><strong>setIdentifier</strong></h3></td></tr></table><p></p><p> Sets the identifier. </p> <p></p> <p></p> <p> NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. </p> <p> </p> <p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5"> <TR><TD align="left" valign="top"><i>identifier</i></TD><TD align="left" valign="top">The new identifier. </TD></TR> </TABLE></P> <p><b>Throws</b>: DOMException, SYNTAX_ERR:, Raises, if, the, identifier, has, a, syntax, error, and, is, unparsable.</p> <HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:31 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>