#include <exphint.h>
Inheritance diagram for ExportHintRecordHandler:
Public Member Functions | |
ExportHintRecordHandler () | |
virtual | ~ExportHintRecordHandler () |
virtual UINT32 * | GetTagList () |
Provides the record handler system with a list of records handled by this handler. | |
virtual BOOL | HandleRecord (CXaraFileRecord *pCXaraFileRecord) |
Private Member Functions | |
CC_DECLARE_DYNAMIC (ExportHintRecordHandler) |
Definition at line 178 of file exphint.h.
|
Definition at line 184 of file exphint.h.
|
|
Definition at line 185 of file exphint.h.
|
|
|
|
Provides the record handler system with a list of records handled by this handler.
Implements CXaraFileRecordHandler. Definition at line 266 of file exphint.cpp. 00267 { 00268 static const UINT32 TagList[] = {TAG_EXPORT_HINT, CXFRH_TAG_LIST_END}; 00269 00270 return (UINT32*)&TagList; 00271 }
|
|
Implements CXaraFileRecordHandler. Definition at line 286 of file exphint.cpp. 00287 { 00288 ERROR2IF(pRecord == NULL, FALSE, "pCXaraFileRecord is NULL"); 00289 ERROR2IF(pRecord->GetTag() != TAG_EXPORT_HINT, FALSE, "I don't handle this tag type"); 00290 00291 BaseCamelotFilter* const pFilter = GetBaseCamelotFilter(); 00292 ERROR2IF(pFilter == NULL, FALSE, "No filter in ExportHint::HandleRecord"); 00293 00294 Document* pDocument = pFilter->GetDocument(); 00295 ERROR2IF(pDocument == NULL, FALSE, "No Document in ExportHint::HandleRecord"); 00296 00297 ExportHint* pHint = pDocument->GetExportHint(); 00298 ERROR2IF(pHint == NULL, FALSE, "No ExportHint in ExportHint::HandleRecord"); 00299 00300 return(pHint->InitFromRecord(pRecord)); 00301 }
|