CMXReferMasterLayer Class Reference

#include <cmxexdc.h>

Inheritance diagram for CMXReferMasterLayer:

CMXReferListItemOffset CMXReferListItem ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CMXReferMasterLayer (CMXExportDC *pDC)
BOOL IsInWhichIndex (void)
BOOL WriteInIndex (CMXExportDC *pDC)
 writes the index details in the master index
INT32 IndexEntrySize (CMXExportDC *pDC)

Private Member Functions

 CC_DECLARE_DYNAMIC (CMXReferMasterLayer)

Detailed Description

Definition at line 735 of file cmxexdc.h.


Constructor & Destructor Documentation

CMXReferMasterLayer::CMXReferMasterLayer CMXExportDC pDC  )  [inline]
 

Definition at line 740 of file cmxexdc.h.

00740 : CMXReferListItemOffset(pDC) {};


Member Function Documentation

CMXReferMasterLayer::CC_DECLARE_DYNAMIC CMXReferMasterLayer   )  [private]
 

INT32 CMXReferMasterLayer::IndexEntrySize CMXExportDC pDC  )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 744 of file cmxexdc.h.

00744 {return (pDC->IsThirtyTwoBit())?sizeof(cmxMasterLayerEntry32):sizeof(cmxMasterLayerEntry16);};

BOOL CMXReferMasterLayer::IsInWhichIndex void   )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 742 of file cmxexdc.h.

00742 {return cmxINDEX_MASTERLAYER;};

BOOL CMXReferMasterLayer::WriteInIndex CMXExportDC pDC  )  [virtual]
 

writes the index details in the master index

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/06/96
Parameters:
export dc [INPUTS]
Returns:
none
See also:

Reimplemented from CMXReferListItem.

Definition at line 750 of file cmxexdc.cpp.

00751 {
00752     // write the entry
00753     if(pDC->IsThirtyTwoBit())
00754     {
00755         cmxMasterLayerEntry32 le;       // note that this is the entire table, not an entry
00756 
00757         le.TableType = cmxMASTERIN_MASTERLAYER;     // quite why we need this is another matter
00758         le.SizeInFile = sizeof(DWORD);
00759         le.ID = 1;                  // first page, I presume
00760         le.Offset = Offset;         // offset...
00761 
00762         if(!pDC->WriteData(&le, sizeof(le)))
00763             return FALSE;
00764     }
00765     else
00766     {
00767         cmxMasterLayerEntry16 le;       // note that this is the entire table, not an entry
00768 
00769         le.TableType = cmxMASTERIN_MASTERLAYER;     // quite why we need this is another matter
00770         le.ID = 1;                  // first page, I presume
00771         le.Offset = Offset;         // offset...
00772 
00773         if(!pDC->WriteData(&le, sizeof(le)))
00774             return FALSE;
00775     }
00776 
00777     return TRUE;
00778 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:44 2007 for Camelot by  doxygen 1.4.4