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 void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TSize | OrientedPageSize() |
IMPORT_C TBool | operator!=(const TPageSpec &) |
IMPORT_C TBool | operator==(const TPageSpec &) |
Public Member Enumerations | |
---|---|
enum | TPageOrientation { EPortrait, ELandscape } |
Public Attributes | |
---|---|
TPageOrientation | iOrientation |
TSize | iPortraitPageSize |
IMPORT_C | TPageSpec | ( | TPageOrientation | aOrientation, |
const TSize & | aSize | |||
) |
TPageOrientation aOrientation | |
const TSize & aSize |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C TBool | operator!= | ( | const TPageSpec & | aPageSpec | ) | const |
const TPageSpec & aPageSpec |
IMPORT_C TBool | operator== | ( | const TPageSpec & | aPageSpec | ) | const |
const TPageSpec & aPageSpec |
The available page orientations.
EPortrait |
Portrait page orientation |
ELandscape |
Landscape page orientation |
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.