TPageSpec Class Reference

class TPageSpec

Page specification for a print operation.

The page specification consists of the page orientation and the page size in twips or pixels. By default, the page orientation is portrait. When using landscape orientation, the left hand side of the page becomes the top. "gdi.lib" 5.0

Public Member Functions
TPageSpec()
TPageSpec(TPageOrientation, const TSize &)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TSizeOrientedPageSize()
IMPORT_C TBooloperator!=(const TPageSpec &)
IMPORT_C TBooloperator==(const TPageSpec &)
Public Member Enumerations
enumTPageOrientation { EPortrait, ELandscape }
Public Attributes
TPageOrientation iOrientation
TSize iPortraitPageSize

Constructor & Destructor Documentation

TPageSpec()

IMPORT_CTPageSpec()

TPageSpec(TPageOrientation, const TSize &)

IMPORT_CTPageSpec(TPageOrientationaOrientation,
const TSize &aSize
)

Parameters

TPageOrientation aOrientation
const TSize & aSize

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

OrientedPageSize()

IMPORT_C TSizeOrientedPageSize()const

operator!=(const TPageSpec &)

IMPORT_C TBooloperator!=(const TPageSpec &aPageSpec)const

Parameters

const TPageSpec & aPageSpec

operator==(const TPageSpec &)

IMPORT_C TBooloperator==(const TPageSpec &aPageSpec)const

Parameters

const TPageSpec & aPageSpec

Member Enumerations Documentation

Enum TPageOrientation

The available page orientations.

Enumerators

EPortrait

Portrait page orientation

ELandscape

Landscape page orientation

Member Data Documentation

TPageOrientation iOrientation

TPageOrientation iOrientation

The page orientation.

TSize iPortraitPageSize

TSize iPortraitPageSize

The width and height of the page in portrait orientation in twips or pixels.

Note that OrientedPageSize() returns the width and height in reverse order for a landscape portrait.