ExportHintRecordHandler Class Reference

Handles TAG_EXPORT_HINT. More...

#include <exphint.h>

Inheritance diagram for ExportHintRecordHandler:

CamelotRecordHandler CXaraFileRecordHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ExportHintRecordHandler ()
virtual ~ExportHintRecordHandler ()
virtual UINT32GetTagList ()
 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)

Detailed Description

Handles TAG_EXPORT_HINT.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/07/96

Definition at line 178 of file exphint.h.


Constructor & Destructor Documentation

ExportHintRecordHandler::ExportHintRecordHandler  )  [inline]
 

Definition at line 184 of file exphint.h.

00184 {};

virtual ExportHintRecordHandler::~ExportHintRecordHandler  )  [inline, virtual]
 

Definition at line 185 of file exphint.h.

00185 {};


Member Function Documentation

ExportHintRecordHandler::CC_DECLARE_DYNAMIC ExportHintRecordHandler   )  [private]
 

UINT32 * ExportHintRecordHandler::GetTagList  )  [virtual]
 

Provides the record handler system with a list of records handled by this handler.

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/07/97
Returns:
Ptr to a list of tag values, terminated by CXFRH_TAG_LIST_END

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 }

BOOL ExportHintRecordHandler::HandleRecord CXaraFileRecord pRecord  )  [virtual]
 

Author:
Gerry_Iles (Xara Group Ltd) <camelotdev@xara.com>
Date:
21/07/97
Parameters:
pCXaraFileRecord = ptr to record to handle [INPUTS]
Returns:
TRUE if handled successfuly FALSE otherwise

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 }


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