\section{DOM::CSS2Page\-Size Class Reference}
\label{classDOM_1_1CSS2PageSize}\index{DOM::CSS2PageSize@{DOM::CSS2PageSize}}
The {\tt {\bf CSS2Cursor}{\rm (p.\,\pageref{classDOM_1_1CSS2Cursor})}} interface represents the {\tt size } CSS Level 2 descriptor.  


{\tt \#include $<$css\_\-extensions.h$>$}

Inheritance diagram for DOM::CSS2Page\-Size:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classDOM_1_1CSS2PageSize__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::CSS2Page\-Size:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=75pt]{classDOM_1_1CSS2PageSize__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSS2Page\-Size} (const {\bf CSS2Page\-Size} \&other)\label{classDOM_1_1CSS2PageSize_a1}

\item 
{\bf CSS2Page\-Size} (CSS2Page\-Size\-Impl $\ast$impl)\label{classDOM_1_1CSS2PageSize_a2}

\item 
{\bf CSS2Page\-Size} \& {\bf operator=} (const {\bf CSS2Page\-Size} \&other)\label{classDOM_1_1CSS2PageSize_a3}

\item 
unsigned short {\bf width\-Type} () const 
\item 
unsigned short {\bf height\-Type} () const 
\item 
{\bf DOM::DOMString} {\bf identifier} () const 
\item 
float {\bf get\-Width} (const float width\-Type)
\item 
float {\bf get\-Height\-Size} (const float height\-Type)
\item 
void {\bf set\-Width\-Size} (const unsigned short width\-Type, const float value)
\item 
void {\bf set\-Height\-Size} (const unsigned short height\-Type, const float value)
\item 
void {\bf set\-Identifier} (const {\bf DOM::DOMString} \&identifier)
\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf CSS2Cursor}{\rm (p.\,\pageref{classDOM_1_1CSS2Cursor})}} interface represents the {\tt size } CSS Level 2 descriptor. 



Definition at line 739 of file css\_\-extensions.h.

\subsection{Member Function Documentation}
\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!widthType@{widthType}}
\index{widthType@{widthType}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short CSS2Page\-Size::width\-Type () const}\label{classDOM_1_1CSS2PageSize_a5}


A code defining the type of the width of the page. 

It would be one of {\tt CSS\_\-EMS} , {\tt CSS\_\-EXS} , {\tt CSS\_\-PX} , {\tt CSS\_\-CM} , {\tt CSS\_\-MM} , {\tt CSS\_\-IN} , {\tt CSS\_\-PT} , {\tt CSS\_\-PC} , {\tt CSS\_\-IDENT} , {\tt CSS\_\-INHERIT} . If one of width or height is {\tt CSS\_\-IDENT} or {\tt CSS\_\-INHERIT} , it's guaranteed that the other is the same. 

Definition at line 502 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!heightType@{heightType}}
\index{heightType@{heightType}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short CSS2Page\-Size::height\-Type () const}\label{classDOM_1_1CSS2PageSize_a6}


A code defining the type of the height of the page. 

It would be one of {\tt CSS\_\-EMS} , {\tt CSS\_\-EXS} , {\tt CSS\_\-PX} , {\tt CSS\_\-CM} , {\tt CSS\_\-MM} , {\tt CSS\_\-IN} , {\tt CSS\_\-PT} , {\tt CSS\_\-PC} , {\tt CSS\_\-IDENT} , {\tt CSS\_\-INHERIT} . If one of width or height is {\tt CSS\_\-IDENT} or {\tt CSS\_\-INHERIT} , it's guaranteed that the other is the same. 

Definition at line 508 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!identifier@{identifier}}
\index{identifier@{identifier}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf DOMString} CSS2Page\-Size::identifier () const}\label{classDOM_1_1CSS2PageSize_a7}


If {\tt width} is {\tt CSS\_\-IDENT} or {\tt CSS\_\-INHERIT} , this attribute contains the string representation of the ident, otherwise it contains an empty string. 



Definition at line 514 of file css\_\-extensions.cpp.

Referenced by set\-Identifier().\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!getWidth@{getWidth}}
\index{getWidth@{getWidth}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float CSS2Page\-Size::get\-Width (const float {\em width\-Type})}\label{classDOM_1_1CSS2PageSize_a8}


This method is used to get the float value in a specified unit if the {\tt width\-Type} represents a length. 

If the float doesn't contain a float value or can't be converted into the specified unit, a {\tt {\bf DOMException}{\rm (p.\,\pageref{classDOM_1_1DOMException})}} is raised.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width\-Type}]The specified unit.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The float value.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the property doesn't contain a float or the value can't be converted. \end{description}
\end{Desc}


Definition at line 520 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!getHeightSize@{getHeightSize}}
\index{getHeightSize@{getHeightSize}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float CSS2Page\-Size::get\-Height\-Size (const float {\em height\-Type})}\label{classDOM_1_1CSS2PageSize_a9}


This method is used to get the float value in a specified unit if the {\tt height\-Type} represents a length. 

If the float doesn't contain a float value or can't be converted into the specified unit, a {\tt {\bf DOMException}{\rm (p.\,\pageref{classDOM_1_1DOMException})}} is raised. If only the width value has been specified, the height value is the same.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em height\-Type}]The specified unit.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The float value.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the property doesn't contain a float or the value can't be converted. \end{description}
\end{Desc}


Definition at line 526 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!setWidthSize@{setWidthSize}}
\index{setWidthSize@{setWidthSize}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Page\-Size::set\-Width\-Size (const unsigned short {\em width\-Type}, const float {\em value})}\label{classDOM_1_1CSS2PageSize_a10}


This method is used to set the width position with a specified unit. 

If the {\tt height\-Type} is not a length, it sets the height position to the same value.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width\-Type}]The specified unit.\item[{\em value}]The new value.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the specified unit is not a length or a percentage.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raises if this property is readonly. 

Definition at line 532 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!setHeightSize@{setHeightSize}}
\index{setHeightSize@{setHeightSize}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Page\-Size::set\-Height\-Size (const unsigned short {\em height\-Type}, const float {\em value})}\label{classDOM_1_1CSS2PageSize_a11}


This method is used to set the height position with a specified unit. 

If the {\tt width\-Type} is not a length, it sets the width position to the same value.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em height\-Type}]The specified unit.\item[{\em value}]The new value.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the specified unit is not a length or a percentage.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raises if this property is readonly. 

Definition at line 538 of file css\_\-extensions.cpp.\index{DOM::CSS2PageSize@{DOM::CSS2Page\-Size}!setIdentifier@{setIdentifier}}
\index{setIdentifier@{setIdentifier}!DOM::CSS2PageSize@{DOM::CSS2Page\-Size}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Page\-Size::set\-Identifier (const {\bf DOM::DOMString} \& {\em identifier})}\label{classDOM_1_1CSS2PageSize_a12}


Sets the identifier. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em identifier}]The new identifier.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]SYNTAX\_\-ERR: Raises if the identifier has a syntax error and is unparsable.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raises if this property is readonly. 

Definition at line 544 of file css\_\-extensions.cpp.

References identifier().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
css\_\-extensions.h\item 
css\_\-extensions.cpp\end{CompactItemize}
