class CSS2PageSize

# class CSS2PageSize | The `CSS2Cursor` interface represents the More...
Full name | `DOM::CSS2PageSize`
Definition | `#include <css_extensions.h>`
Inherits | DOM::CSSValue [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- CSS2PageSize ()
- CSS2PageSize (const CSS2PageSize &other)
- CSS2PageSize (CSS2PageSizeImpl *impl)
- CSS2PageSize & operator = (const CSS2PageSize &other)
- ~CSS2PageSize ()
- unsigned short widthType () const
- unsigned short heightType () const
- DOM::DOMString identifier () const
- float getWidth ( const float widthType )
- float getHeightSize ( const float heightType )
- void setWidthSize ( const unsigned short widthType, const float value )
- void setHeightSize ( const unsigned short heightType, const float value )
- void setIdentifier ( const DOM::DOMString &identifier )

## Detailed Description

The `CSS2Cursor` interface represents the size CSS Level 2 descriptor.

CSS2PageSize () | ### CSS2PageSize

CSS2PageSize (const CSS2PageSize &other) | ### CSS2PageSize

CSS2PageSize (CSS2PageSizeImpl *impl) | ### CSS2PageSize

CSS2PageSize & operator = (const CSS2PageSize &other) | ### operator =

Reimplemented from CSSValue.

~CSS2PageSize () | ### ~CSS2PageSize

unsigned short widthType () | ### widthType

[const]

A code defining the type of the width of the page. It would be one of `CSS_EMS` , `CSS_EXS` , `CSS_PX` , `CSS_CM` , `CSS_MM` , `CSS_IN` , `CSS_PT` , `CSS_PC` , `CSS_IDENT` , `CSS_INHERIT` . If one of width or height is `CSS_IDENT` or `CSS_INHERIT` , it's guaranteed that the other is the same.

unsigned short heightType () | ### heightType

[const]

A code defining the type of the height of the page. It would be one of `CSS_EMS` , `CSS_EXS` , `CSS_PX` , `CSS_CM` , `CSS_MM` , `CSS_IN` , `CSS_PT` , `CSS_PC` , `CSS_IDENT` , `CSS_INHERIT` . If one of width or height is `CSS_IDENT` or `CSS_INHERIT` , it's guaranteed that the other is the same.

DOM::DOMString identifier () | ### identifier

[const]

If `width` is `CSS_IDENT` or `CSS_INHERIT` , this attribute contains the string representation of the ident, otherwise it contains an empty string.

float getWidth ( const float widthType ) | ### getWidth

This method is used to get the float value in a specified unit if the `widthType` represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a `DOMException` is raised.

Parameters:

widthType | The specified unit.

Returns: The float value.

Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.

float getHeightSize ( const float heightType ) | ### getHeightSize

This method is used to get the float value in a specified unit if the `heightType` represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a `DOMException` is raised. If only the width value has been specified, the height value is the same.

Parameters:

heightType | The specified unit.

Returns: The float value.

Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.

void setWidthSize ( const unsigned short widthType, const float value ) | ### setWidthSize

This method is used to set the width position with a specified unit. If the `heightType` is not a length, it sets the height position to the same value.

NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.

Parameters:

widthType | The specified unit.
value | The new value.

Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.

void setHeightSize ( const unsigned short heightType, const float value ) | ### setHeightSize

This method is used to set the height position with a specified unit. If the `widthType` is not a length, it sets the width position to the same value.

NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.

Parameters:

heightType | The specified unit.
value | The new value.

Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.

void setIdentifier ( const DOM::DOMString &identifier ) | ### setIdentifier

Sets the identifier.

NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.

Parameters:

identifier | The new identifier.

Throws: DOMException, SYNTAX_ERR:, Raises, if, the, identifier, has, a, syntax, error, and, is, unparsable.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:43 2003, using kdoc 2.0a54.