void SetPageDimensions(in long width, in long height);
void SetNumberOfPages(in short count);
void InitializeForPageLayout(in ODPart base, in char *pszQueueName, in long HorzOffset, in long VertOffset, in long TotalPageWidth, in long TotalPageHeight, in short NumberOfPages);
#ifdef __SOMIDL__
implementation
{
dllname = "IODPage.dll";
functionprefix = PageLayoutPrintExtension;
majorversion = 1;
minorversion = 0;
override:
DisplayPrintDialog,
SetPrintingFrameShape,
PrintPages;
releaseorder:
SetPageDimensions,
SetNumberOfPages,
InitializeForPageLayout;
//=======================================
// ODPrintExtension Instance Variables
//=======================================
short NumberOfPages; // Total pages in document
long HorzPageOffset; // LeftPageOffset
long VertPageOffset; // BottomPageOffset on OS/2,
// TopPageOffset on WIN32
long TotalPageWidth; // LeftPageOffset+PageWidth+RightPageOffset
long TotalPageHeight; // BottomPageOffset+PageHeight+TopPageOffset