.TH "DOM::CSS2PageSize" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::CSS2PageSize \- The \fC \fBCSS2Cursor\fP \fP interface represents the \fCsize \fP CSS Level 2 descriptor.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <css_extensions.h>\fP
.PP
Inherits \fBDOM::CSSValue\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBCSS2PageSize\fP (const  \fBCSS2PageSize\fP &other)"
.br
.ti -1c
.RI "\fBCSS2PageSize\fP (CSS2PageSizeImpl *impl)"
.br
.ti -1c
.RI "\fBCSS2PageSize\fP & \fBoperator=\fP (const  \fBCSS2PageSize\fP &other)"
.br
.ti -1c
.RI "unsigned short \fBwidthType\fP () const "
.br
.RI "\fIA code defining the type of the width of the page. \fP"
.ti -1c
.RI "unsigned short \fBheightType\fP () const "
.br
.RI "\fIA code defining the type of the height of the page. \fP"
.ti -1c
.RI "\fBDOM::DOMString\fP \fBidentifier\fP () const "
.br
.RI "\fIIf \fC width \fP is \fC CSS_IDENT \fP or \fC CSS_INHERIT \fP , this attribute contains the string representation of the ident, otherwise it contains an empty string. \fP"
.ti -1c
.RI "float \fBgetWidth\fP (const  float widthType)"
.br
.RI "\fIThis method is used to get the float value in a specified unit if the \fC widthType \fP represents a length. \fP"
.ti -1c
.RI "float \fBgetHeightSize\fP (const  float heightType)"
.br
.RI "\fIThis method is used to get the float value in a specified unit if the \fC heightType \fP represents a length. \fP"
.ti -1c
.RI "void \fBsetWidthSize\fP (const  unsigned short widthType, const  float value)"
.br
.RI "\fIThis method is used to set the width position with a specified unit. \fP"
.ti -1c
.RI "void \fBsetHeightSize\fP (const  unsigned short heightType, const  float value)"
.br
.RI "\fIThis method is used to set the height position with a specified unit. \fP"
.ti -1c
.RI "void \fBsetIdentifier\fP (const  \fBDOM::DOMString\fP &identifier)"
.br
.RI "\fISets the identifier. \fP"
.in -1c
.SH "Detailed Description"
.PP 
The \fC \fBCSS2Cursor\fP \fP interface represents the \fCsize \fP CSS Level 2 descriptor. Definition at line 741 of file css_extensions.h.
.SH "Member Function Documentation"
.PP 
.SS "unsigned short CSS2PageSize::widthType () const"
.PP
A code defining the type of the width of the page. It would be one of \fC CSS_EMS \fP , \fC CSS_EXS \fP , \fC CSS_PX \fP , \fC CSS_CM \fP , \fC CSS_MM \fP , \fC CSS_IN \fP , \fC CSS_PT \fP , \fC CSS_PC \fP , \fC CSS_IDENT \fP , \fC CSS_INHERIT \fP . If one of width or height is \fC CSS_IDENT \fP or \fC CSS_INHERIT \fP , it's guaranteed that the other is the same. Definition at line 503 of file css_extensions.cpp.
.SS "unsigned short CSS2PageSize::heightType () const"
.PP
A code defining the type of the height of the page. It would be one of \fC CSS_EMS \fP , \fC CSS_EXS \fP , \fC CSS_PX \fP , \fC CSS_CM \fP , \fC CSS_MM \fP , \fC CSS_IN \fP , \fC CSS_PT \fP , \fC CSS_PC \fP , \fC CSS_IDENT \fP , \fC CSS_INHERIT \fP . If one of width or height is \fC CSS_IDENT \fP or \fC CSS_INHERIT \fP , it's guaranteed that the other is the same. Definition at line 509 of file css_extensions.cpp.
.SS "\fBDOMString\fP CSS2PageSize::identifier () const"
.PP
If \fC width \fP is \fC CSS_IDENT \fP or \fC CSS_INHERIT \fP , this attribute contains the string representation of the ident, otherwise it contains an empty string. Definition at line 515 of file css_extensions.cpp.
.SS "float CSS2PageSize::getWidth (const float widthType)"
.PP
This method is used to get the float value in a specified unit if the \fC widthType \fP represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a \fC \fBDOMException\fP \fP is raised.
.PP
\fBParameters:\fP
.RS 4
\fIwidthType\fP The specified unit.
.RE
.PP
\fBReturns:\fP
.RS 4
The float value.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted. 
.RE
.PP
Definition at line 521 of file css_extensions.cpp.
.SS "float CSS2PageSize::getHeightSize (const float heightType)"
.PP
This method is used to get the float value in a specified unit if the \fC heightType \fP represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a \fC \fBDOMException\fP \fP is raised. If only the width value has been specified, the height value is the same.
.PP
\fBParameters:\fP
.RS 4
\fIheightType\fP The specified unit.
.RE
.PP
\fBReturns:\fP
.RS 4
The float value.
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted. 
.RE
.PP
Definition at line 527 of file css_extensions.cpp.
.SS "void CSS2PageSize::setWidthSize (const unsigned short widthType, const float value)"
.PP
This method is used to set the width position with a specified unit. If the \fC heightType \fP is not a length, it sets the height position to the same value.
.PP
\fBParameters:\fP
.RS 4
\fIwidthType\fP The specified unit.
.br
\fIvalue\fP The new value.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. Definition at line 533 of file css_extensions.cpp.
.SS "void CSS2PageSize::setHeightSize (const unsigned short heightType, const float value)"
.PP
This method is used to set the height position with a specified unit. If the \fC widthType \fP is not a length, it sets the width position to the same value.
.PP
\fBParameters:\fP
.RS 4
\fIheightType\fP The specified unit.
.br
\fIvalue\fP The new value.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP INVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. Definition at line 539 of file css_extensions.cpp.
.SS "void CSS2PageSize::setIdentifier (const \fBDOM::DOMString\fP & identifier)"
.PP
Sets the identifier. \fBParameters:\fP
.RS 4
\fIidentifier\fP The new identifier.
.RE
.PP
\fBReturns:\fP
.RS 4
.RE
.PP
\fBExceptions:\fP
.RS 4
\fIDOMException\fP SYNTAX_ERR: Raises if the identifier has a syntax error and is unparsable.
.RE
.PP
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly. Definition at line 545 of file css_extensions.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
