#include <cmxexdc.h>
Inheritance diagram for CMXReferMasterLayer:
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) |
Definition at line 735 of file cmxexdc.h.
|
Definition at line 740 of file cmxexdc.h. 00740 : CMXReferListItemOffset(pDC) {};
|
|
|
|
Reimplemented from CMXReferListItem. Definition at line 744 of file cmxexdc.h. 00744 {return (pDC->IsThirtyTwoBit())?sizeof(cmxMasterLayerEntry32):sizeof(cmxMasterLayerEntry16);};
|
|
Reimplemented from CMXReferListItem. Definition at line 742 of file cmxexdc.h. 00742 {return cmxINDEX_MASTERLAYER;};
|
|
writes the index details in the master index
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 }
|