mplayout.h File Reference

<mi32/mplayout.h> Definitions for Map & Poster layout More...

#include <mi32/contrast.h>
#include <mi32/filepath.h>
#include <mi32/colorbal.h>
#include <mi32/mg2cms.h>

Include dependency graph for mplayout.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  LAYOUTPARMS
 Hardcopy layout parameters. More...

Defines

#define MAPLAYOUT_BogusSizes   (0x00000002)
#define MAPLAYOUT_CutLine   (0x00000040)
#define MAPLAYOUT_FullPage   (0x00000800)
#define MAPLAYOUT_Landscape   (0x00000200)
#define MAPLAYOUT_MirrorImage   (0x00000020)
#define MAPLAYOUT_PenPlotter   (0x00000004)
#define MAPLAYOUT_PrintNow   (0x00000080)
#define MAPLAYOUT_ScaleToPage   (0x00000400)
#define MAPLAYOUT_SetupDone   (0x00000001)
#define MAPLAYOUT_TempRast   (0x00000100)
#define MAPLAYOUT_UserCBal   (0x00000008)
#define MAPLAYOUT_UserGamma   (0x00000010)
#define PRSETUP_FromRast   0x00000001
#define PRSETUP_NoManage   0x00000008
#define PRSETUP_NoPrint   0x00000004
#define PRSETUP_OldPrint   0x80000000
#define PRSETUP_PRF   0x00000002
#define PRSETUP_Snapshot   0x00000010

Functions

int MprintLayoutSetup (Widget parent, GRE_LAYOUT *layout, UINT32 flags)
int MprintPageSetup (Widget parent, GRE_LAYOUT *layout, int(*TestStripFunc)(Widget, Widget *, GRE_LAYOUT *, CBPARMS *, CONTRINFO *, void(*func)(void *, CBPARMS *, CONTRINFO *), void *, PRINTERDRIVER *PrinterDriver, PRINTEROPTIONS *PrinterParms, int)=0, UINT32 flags=0)
int MprintTestStripDialog (Widget parent, Widget *RetWidget, GRE_LAYOUT *layout, CBPARMS *cbal, CONTRINFO *cont, void(*cbfunc)(void *, CBPARMS *, CONTRINFO *), void *cbdata, PRINTERDRIVER *PrinterDriver, PRINTEROPTIONS *PrinterParms, int mode)
int MxReadDefaultLayout (LAYOUTPARMS *parms)
int MxWriteDefaultLayout (LAYOUTPARMS *parms)


Detailed Description

<mi32/mplayout.h> Definitions for Map & Poster layout

Definition in file mplayout.h.


Define Documentation

#define MAPLAYOUT_BogusSizes   (0x00000002)
 

Definition at line 166 of file mplayout.h.

#define MAPLAYOUT_CutLine   (0x00000040)
 

Definition at line 171 of file mplayout.h.

#define MAPLAYOUT_FullPage   (0x00000800)
 

Definition at line 176 of file mplayout.h.

#define MAPLAYOUT_Landscape   (0x00000200)
 

Definition at line 174 of file mplayout.h.

#define MAPLAYOUT_MirrorImage   (0x00000020)
 

Definition at line 170 of file mplayout.h.

#define MAPLAYOUT_PenPlotter   (0x00000004)
 

Definition at line 167 of file mplayout.h.

#define MAPLAYOUT_PrintNow   (0x00000080)
 

Definition at line 172 of file mplayout.h.

#define MAPLAYOUT_ScaleToPage   (0x00000400)
 

Definition at line 175 of file mplayout.h.

#define MAPLAYOUT_SetupDone   (0x00000001)
 

Definition at line 165 of file mplayout.h.

#define MAPLAYOUT_TempRast   (0x00000100)
 

Definition at line 173 of file mplayout.h.

#define MAPLAYOUT_UserCBal   (0x00000008)
 

Definition at line 168 of file mplayout.h.

#define MAPLAYOUT_UserGamma   (0x00000010)
 

Definition at line 169 of file mplayout.h.

#define PRSETUP_FromRast   0x00000001
 

For Support / Print From / Print Raster...

Definition at line 182 of file mplayout.h.

#define PRSETUP_NoManage   0x00000008
 

Check settings, but don't popup unless problem.

Definition at line 185 of file mplayout.h.

#define PRSETUP_NoPrint   0x00000004
 

changes "print" button to "ok"

Definition at line 184 of file mplayout.h.

#define PRSETUP_OldPrint   0x80000000
 

Being called from pre-tntdisp print.

Definition at line 187 of file mplayout.h.

#define PRSETUP_PRF   0x00000002
 

For Support / Print From / Print File...

Definition at line 183 of file mplayout.h.

#define PRSETUP_Snapshot   0x00000010
 

Printing a snapshot.

Definition at line 186 of file mplayout.h.


Function Documentation

int MprintLayoutSetup Widget  parent,
GRE_LAYOUT layout,
UINT32  flags
 

Print layout setup.

int MprintPageSetup Widget  parent,
GRE_LAYOUT layout,
int(*  TestStripFunc)(Widget, Widget *, GRE_LAYOUT *, CBPARMS *, CONTRINFO *, void(*func)(void *, CBPARMS *, CONTRINFO *), void *, PRINTERDRIVER *PrinterDriver, PRINTEROPTIONS *PrinterParms, int) = 0,
UINT32  flags = 0
 

Print page setup.

Parameters:
TestStripFunc  ie, MprintTestStripDialog

int MprintTestStripDialog Widget  parent,
Widget RetWidget,
GRE_LAYOUT layout,
CBPARMS cbal,
CONTRINFO cont,
void(*  cbfunc)(void *, CBPARMS *, CONTRINFO *),
void *  cbdata,
PRINTERDRIVER *  PrinterDriver,
PRINTEROPTIONS *  PrinterParms,
int  mode
 

Print test strip dialog.

Note. Except for the 3rd parm which changes from a DWWINDOW to an MDISPLAYOUT The API of this function cannot change until we eliminate printrvc.

This function gets passed to MprintSetup as it's 3rd parameter. It's assumed that the 4th parameter to MprintSetup (the HookData) is really an MDISPLAYOUT and that that gets passed to us as our 3rd parameter.

If "parent" is not NULL, then it will create a non-modal dialog for keeping track of test strip data. The main form widget for this dialog is returned in *RetWidget. If parent is NULL, it just looks at the mode parameter and changes the formatting of its list widget to match the given mode.

It is also assumed that the CBPARMS and CONTRINFO2 passed to the function will stay in the same memory location for the life of the dialog (which is non-modal). When the user clicks the "add" button on the dialog, it makes copies of these structures.

The cbfunc is called whenever the user selects a line from the list widget of test settings. cbfunc will be called and given the CBPARMS and CONTRINFO2 that were saved for that test. It's up to cbfunc to adjust the color balance controls to show those settings.

int MxReadDefaultLayout LAYOUTPARMS parms  ) 
 

Read LAYOUTPARMS from Ini file.

int MxWriteDefaultLayout LAYOUTPARMS parms  ) 
 

Write LAYOUTPARMS to Ini file.


Generated on Tue Dec 14 13:19:08 2004 for TNTsdk by  doxygen 1.3.8-20040913