#include <cxfrech.h>
Inheritance diagram for CXaraFileRecordHandler:
Public Member Functions | |
CXaraFileRecordHandler () | |
Creates a record handler object. These are used by CXaraFile for reading the file. Handlers handle records as they are read from a file. | |
~CXaraFileRecordHandler () | |
Default destructor. | |
virtual UINT32 * | GetTagList ()=0 |
virtual BOOL | HandleRecord (CXaraFileRecord *pCXaraFileRecord)=0 |
virtual BOOL | HandleStreamedRecord (CXaraFile *pCXFile, UINT32 Tag, UINT32 Size, UINT32 RecordNumber) |
This is the baseclass streamed record handler. It should always be overriden. We don't want to make it pure virtual and force all handlers to define it as most do not require it. | |
virtual BOOL | IsStreamed (UINT32 Tag)=0 |
virtual void | IncProgressBarCount (UINT32 n)=0 |
virtual BOOL | IsTagInList (UINT32 Tag) |
Helper function that searchs the handler's tag list for a given tag. | |
virtual BOOL | Init (BaseCamelotFilter *pBaseCamelotFilter) |
Initialises the handler. | |
virtual BOOL | BeginImport () |
Informs the record handler that importing has begun. | |
virtual BOOL | EndImport () |
Informs the record handler that importing is over. | |
virtual BOOL | BeginSubtree (UINT32 Tag) |
Informs the record handler that a subtree is following a tag of type 'Tag'. | |
virtual BOOL | EndSubtree (UINT32 Tag) |
Informs the record handler that a subtree that followed a tag of type 'Tag' has ended. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CXaraFileRecordHandler) |
Definition at line 145 of file cxfrech.h.
|
Creates a record handler object. These are used by CXaraFile for reading the file. Handlers handle records as they are read from a file.
Definition at line 149 of file cxfrech.cpp.
|
|
Default destructor.
Definition at line 165 of file cxfrech.cpp.
|
|
Informs the record handler that importing has begun.
Reimplemented in StripSubTreeRecordHandler, BitmapRecordHandler, ColourRecordHandler, DocumentRecordHandler, DocInfoRecordHandler, PrintingRecordHandler, TextObjRecordHandler, UnitsRecordHandler, and ViewRecordHandler. Definition at line 270 of file cxfrech.cpp. 00271 { 00272 return TRUE; 00273 }
|
|
Informs the record handler that a subtree is following a tag of type 'Tag'.
The base class always returns FALSE
Reimplemented in BrushAttrRecordHandler, PrintingRecordHandler, and StrokeAttrRecordHandler. Definition at line 318 of file cxfrech.cpp. 00319 { 00320 return FALSE; // FALSE means pass onto other parts of the system 00321 }
|
|
|
|
Informs the record handler that importing is over.
Reimplemented in WizOpStyleRecordHandler. Definition at line 292 of file cxfrech.cpp. 00293 { 00294 // Just return TRUE in the base class 00295 return TRUE; 00296 }
|
|
Informs the record handler that a subtree that followed a tag of type 'Tag' has ended.
The base class always returns FALSE
Reimplemented in BrushAttrRecordHandler, PrintingRecordHandler, and StrokeAttrRecordHandler. Definition at line 343 of file cxfrech.cpp. 00344 { 00345 return FALSE; // FALSE means pass onto other parts of the system 00346 }
|
|
|
|
This is the baseclass streamed record handler. It should always be overriden. We don't want to make it pure virtual and force all handlers to define it as most do not require it.
Reimplemented in CXFTreeDlgRecordHandler, LiveEffectRecordHandler, BitmapRecordHandler, BitmapPropertiesRecordHandler, and CompressionRecordHandler. Definition at line 222 of file cxfrech.cpp. 00223 { 00224 ERROR2(FALSE,"CXaraFileRecordHandler::HandleStreamedRecord Baseclass handler called"); 00225 return FALSE; 00226 }
|
|
Implemented in StandardDefaultRecordHandler, GeneralRecordHandler, CamelotRecordHandler, StripSubTreeRecordHandler, CXFTreeDlgRecordHandler, and CompressionRecordHandler. |
|
Initialises the handler.
Reimplemented in CamelotRecordHandler, WizOpStyleRecordHandler, and WizOpStyleRefRecordHandler. Definition at line 247 of file cxfrech.cpp. 00251 { 00252 return TRUE; 00253 }
|
|
Implemented in StandardDefaultRecordHandler, CamelotRecordHandler, CXFTreeDlgRecordHandler, LiveEffectRecordHandler, BitmapRecordHandler, BitmapPropertiesRecordHandler, and CompressionRecordHandler. |
|
Helper function that searchs the handler's tag list for a given tag.
Reimplemented in StripSubTreeRecordHandler. Definition at line 185 of file cxfrech.cpp. 00186 { 00187 const UINT32* pTagList = GetTagList(); 00188 00189 ERROR2IF(pTagList == NULL,FALSE,"NULL pTagList - is this a default handler?"); 00190 00191 while (*pTagList != CXFRH_TAG_LIST_END) 00192 { 00193 if (*pTagList == Tag) 00194 return TRUE; 00195 00196 pTagList++; 00197 } 00198 00199 return FALSE; 00200 }
|