mi32/mplayout.h File Reference
<mi32/mplayout.h>
More...
#include <mi32/printgamma.h>
#include <mi32/colorbal.h>
#include <mi32/mg2cms.h>
Go to the source code of this file.
Classes |
| struct | LAYOUTPARMS |
| | Hardcopy layout parameters. More...
|
Defines |
| #define | MAPLAYOUT_Anaglyph (0x00001000) |
| #define | MAPLAYOUT_Landscape (0x00000200) |
| #define | MAPLAYOUT_ScaleToPage (0x00000400) |
| #define | MAPLAYOUT_SetupDone (0x00000001) |
| #define | MAPLAYOUT_UserCBal (0x00000008) |
| #define | MAPLAYOUT_UserGamma (0x00000010) |
| #define | PRSETUP_FromRast 0x00000001 |
| #define | PRSETUP_NoManage 0x00000008 |
| #define | PRSETUP_NoPrint 0x00000004 |
| #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 *, PRINTGAMMA *, void(*func)(void *, CBPARMS *, PRINTGAMMA *), void *, PRINTERDRIVER *PrinterDriver, PRINTEROPTIONS *PrinterParms, int)=0, UINT32 flags=0) |
| int | MprintTestStripDialog (Widget parent, Widget *RetWidget, GRE::LAYOUT *layout, CBPARMS *cbal, PRINTGAMMA *cont, void(*cbfunc)(void *, CBPARMS *, PRINTGAMMA *), 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
Define Documentation
| #define MAPLAYOUT_Anaglyph (0x00001000) |
| #define MAPLAYOUT_Landscape (0x00000200) |
| #define MAPLAYOUT_ScaleToPage (0x00000400) |
| #define MAPLAYOUT_SetupDone (0x00000001) |
| #define MAPLAYOUT_UserCBal (0x00000008) |
| #define MAPLAYOUT_UserGamma (0x00000010) |
| #define PRSETUP_FromRast 0x00000001 |
For Support / Print From / Print Raster...
| #define PRSETUP_NoManage 0x00000008 |
Check settings, but don't popup unless problem.
| #define PRSETUP_NoPrint 0x00000004 |
changes "print" button to "ok"
| #define PRSETUP_PRF 0x00000002 |
For Support / Print From / Print File...
| #define PRSETUP_Snapshot 0x00000010 |
Function Documentation
| int MprintPageSetup |
( |
Widget |
parent, |
|
|
GRE::LAYOUT * |
layout, |
|
|
int(*)(Widget, Widget *, GRE::LAYOUT *, CBPARMS *, PRINTGAMMA *, void(*func)(void *, CBPARMS *, PRINTGAMMA *), void *, PRINTERDRIVER *PrinterDriver, PRINTEROPTIONS *PrinterParms, int) |
TestStripFunc = 0, |
|
|
UINT32 |
flags = 0 | |
|
) |
| | |
Print page setup.
- Parameters:
-
| TestStripFunc | ie, MprintTestStripDialog |
| int MprintTestStripDialog |
( |
Widget |
parent, |
|
|
Widget * |
RetWidget, |
|
|
GRE::LAYOUT * |
layout, |
|
|
CBPARMS * |
cbal, |
|
|
PRINTGAMMA * |
cont, |
|
|
void(*)(void *, CBPARMS *, PRINTGAMMA *) |
cbfunc, |
|
|
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 PRINTGAMMA 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 PRINTGAMMA that were saved for that test. It's up to cbfunc to adjust the color balance controls to show those settings.