princomp.cpp File Reference

(r1785/r1328)

#include "camtypes.h"
#include "princomp.h"
#include "colourix.h"
#include "cxftags.h"
#include "printctl.h"
#include "saveeps.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define PC_SECTION_VERSION   1
#define OutputEnum2(FuncName, A, B)
#define OutputEnum3(FuncName, A, B, C)
#define OutputEnum4(FuncName, A, B, C, D)
#define OutputValueU(FuncName)   if (ok) ok = Rec.WriteUINT32((UINT32)pPrCtrl->Get##FuncName());
#define OutputValueS(FuncName)   if (ok) ok = Rec.WriteINT32((INT32)pPrCtrl->Get##FuncName());
#define OutputValue16(FuncName)   if (ok) ok = Rec.WriteUINT16((UINT16)pPrCtrl->Get##FuncName());
#define InputEnum2(FuncName, A, B)
#define InputEnum3(FuncName, A, B, C)
#define InputEnum4(FuncName, A, B, C, D)
#define InputValueU(FuncName)
#define InputValueS(FuncName)
#define InputValue16(FuncName)

Functions

 DECLARE_SOURCE ("$Revision: 1328 $")

Variables

static TCHARPCTokenStr []


Define Documentation

#define InputEnum2 FuncName,
A,
 ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            BYTE Value;                                         \
            ok = Rec->ReadBYTE(&Value);                         \
            if (ok)                                             \
            {                                                   \
                switch(Value)                                   \
                {                                               \
                    case 1: pPrCtrl->Set##FuncName(A); break;   \
                    case 2: pPrCtrl->Set##FuncName(B); break;   \
                    default: ERROR3("Bad enum"); break;         \
                }                                               \
            }                                                   \
        }

#define InputEnum3 FuncName,
A,
B,
 ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            BYTE Value;                                         \
            ok = Rec->ReadBYTE(&Value);                         \
            if (ok)                                             \
            {                                                   \
                switch(Value)                                   \
                {                                               \
                    case 1: pPrCtrl->Set##FuncName(A); break;   \
                    case 2: pPrCtrl->Set##FuncName(B); break;   \
                    case 3: pPrCtrl->Set##FuncName(C); break;   \
                    default: ERROR3("Bad enum"); break;         \
                }                                               \
            }                                                   \
        }

#define InputEnum4 FuncName,
A,
B,
C,
 ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            BYTE Value;                                         \
            ok = Rec->ReadBYTE(&Value);                         \
            if (ok)                                             \
            {                                                   \
                switch(Value)                                   \
                {                                               \
                    case 1: pPrCtrl->Set##FuncName(A); break;   \
                    case 2: pPrCtrl->Set##FuncName(B); break;   \
                    case 3: pPrCtrl->Set##FuncName(C); break;   \
                    case 4: pPrCtrl->Set##FuncName(D); break;   \
                    default: ERROR3("Bad enum"); break;         \
                }                                               \
            }                                                   \
        }

#define InputValue16 FuncName   ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            UINT16 Value;                                       \
            ok = Rec->ReadUINT16(&Value);                       \
            if (ok)  pPrCtrl->Set##FuncName((INT32)Value);      \
        }                                                       \

#define InputValueS FuncName   ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            INT32 Value;                                            \
            ok = Rec->ReadINT32(&Value);                            \
            if (ok)  pPrCtrl->Set##FuncName(Value);             \
        }                                                       \

#define InputValueU FuncName   ) 
 

Value:

if (ok)                                                 \
        {                                                       \
            UINT32 Value;                                       \
            ok = Rec->ReadUINT32(&Value);                       \
            if (ok)  pPrCtrl->Set##FuncName(Value);             \
        }                                                       \

#define new   CAM_DEBUG_NEW
 

Definition at line 125 of file princomp.cpp.

#define OutputEnum2 FuncName,
A,
 ) 
 

Value:

if (ok)                                 \
        {                                       \
            switch(pPrCtrl->Get##FuncName())    \
            {                                   \
                case A: Value=1; break;         \
                case B: Value=2; break;         \
                default: Value=1; ERROR3("Bad enum"); break; \
            }                                   \
            ok = Rec.WriteBYTE((BYTE)Value);    \
        }

#define OutputEnum3 FuncName,
A,
B,
 ) 
 

Value:

if (ok)                                 \
        {                                       \
            switch(pPrCtrl->Get##FuncName())    \
            {                                   \
                case A: Value=1; break;         \
                case B: Value=2; break;         \
                case C: Value=3; break;         \
                default: Value=1; ERROR3("Bad enum"); break; \
            }                                   \
            ok = Rec.WriteBYTE((BYTE)Value);    \
        }

#define OutputEnum4 FuncName,
A,
B,
C,
 ) 
 

Value:

if (ok)                                 \
        {                                       \
            switch(pPrCtrl->Get##FuncName())    \
            {                                   \
                case A: Value=1; break;         \
                case B: Value=2; break;         \
                case C: Value=3; break;         \
                case D: Value=4; break;         \
                default: Value=1; ERROR3("Bad enum"); break; \
            }                                   \
            ok = Rec.WriteBYTE((BYTE)Value);    \
        }

#define OutputValue16 FuncName   )     if (ok) ok = Rec.WriteUINT16((UINT16)pPrCtrl->Get##FuncName());
 

#define OutputValueS FuncName   )     if (ok) ok = Rec.WriteINT32((INT32)pPrCtrl->Get##FuncName());
 

#define OutputValueU FuncName   )     if (ok) ok = Rec.WriteUINT32((UINT32)pPrCtrl->Get##FuncName());
 

#define PC_SECTION_VERSION   1
 

Definition at line 282 of file princomp.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1328 $"   ) 
 


Variable Documentation

TCHAR* PCTokenStr[] [static]
 

Initial value:

{
    _T("%%PrintControl"),
    _T("%%+WholeSpread"),
    _T("%%+Scale"),
    _T("%%+Orientation"),
    _T("%%+FitType"),
    _T("%%+TopMargin"),
    _T("%%+LeftMargin"),
    _T("%%+Width"),
    _T("%%+Height"),
    _T("%%+Rows"),
    _T("%%+Columns"),
    _T("%%+Gutter"),
    _T("%%+Layers"),
    _T("%%+PSLevel"),
    _T("%%+PrintMethod"),
    _T("%%+BitmapResMethod"),
    _T("%%+DotsPerInch"),
    _T("%%+Collated"),
    _T("%%+NumCopies"),
    _T("%%+PrintToFile"),
    _T("%%+ObjPrintRange"),
    _T("%%+DPSPrintRange"),

}

Definition at line 284 of file princomp.cpp.


Generated on Sat Nov 10 03:49:19 2007 for Camelot by  doxygen 1.4.4