.TH "DOM::CSS2PageSize" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "unsigned short \fBheightType\fP () const "
.br
.ti -1c
.RI "\fBDOM::DOMString\fP \fBidentifier\fP () const "
.br
.ti -1c
.RI "float \fBgetWidth\fP (const float widthType)"
.br
.ti -1c
.RI "float \fBgetHeightSize\fP (const float heightType)"
.br
.ti -1c
.RI "void \fBsetWidthSize\fP (const unsigned short widthType, const float value)"
.br
.ti -1c
.RI "void \fBsetHeightSize\fP (const unsigned short heightType, const float value)"
.br
.ti -1c
.RI "void \fBsetIdentifier\fP (const \fBDOM::DOMString\fP &identifier)"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fC\fBCSS2Cursor\fP\fP interface represents the \fCsize \fP CSS Level 2 descriptor. 
.PP
Definition at line 739 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. 
.PP
It would be one of \fCCSS_EMS\fP , \fCCSS_EXS\fP , \fCCSS_PX\fP , \fCCSS_CM\fP , \fCCSS_MM\fP , \fCCSS_IN\fP , \fCCSS_PT\fP , \fCCSS_PC\fP , \fCCSS_IDENT\fP , \fCCSS_INHERIT\fP . If one of width or height is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , it's guaranteed that the other is the same. 
.PP
Definition at line 502 of file css_extensions.cpp.
.SS "unsigned short CSS2PageSize::heightType () const"
.PP
A code defining the type of the height of the page. 
.PP
It would be one of \fCCSS_EMS\fP , \fCCSS_EXS\fP , \fCCSS_PX\fP , \fCCSS_CM\fP , \fCCSS_MM\fP , \fCCSS_IN\fP , \fCCSS_PT\fP , \fCCSS_PC\fP , \fCCSS_IDENT\fP , \fCCSS_INHERIT\fP . If one of width or height is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , it's guaranteed that the other is the same. 
.PP
Definition at line 508 of file css_extensions.cpp.
.SS "\fBDOMString\fP CSS2PageSize::identifier () const"
.PP
If \fCwidth\fP is \fCCSS_IDENT\fP or \fCCSS_INHERIT\fP , this attribute contains the string representation of the ident, otherwise it contains an empty string. 
.PP
Definition at line 514 of file css_extensions.cpp.
.PP
Referenced by setIdentifier().
.SS "float CSS2PageSize::getWidth (const float widthType)"
.PP
This method is used to get the float value in a specified unit if the \fCwidthType\fP represents a length. 
.PP
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

.PP
Definition at line 520 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 \fCheightType\fP represents a length. 
.PP
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

.PP
Definition at line 526 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. 
.PP
If the \fCheightType\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. 
.PP
Definition at line 532 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. 
.PP
If the \fCwidthType\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. 
.PP
Definition at line 538 of file css_extensions.cpp.
.SS "void CSS2PageSize::setIdentifier (const \fBDOM::DOMString\fP & identifier)"
.PP
Sets the identifier. 
.PP
\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. 
.PP
Definition at line 544 of file css_extensions.cpp.
.PP
References identifier().

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