ClipViewRecordHandler Class Reference

Handles the reading of all ClipView records. See also:. More...

#include <ndclpcnt.h>

Inheritance diagram for ClipViewRecordHandler:

CamelotRecordHandler CXaraFileRecordHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ClipViewRecordHandler ()
 Constructor.
 ~ClipViewRecordHandler ()
 Destructor.
virtual UINT32GetTagList ()
 Gets the tag list for this handler to handle.
virtual BOOL HandleRecord (CXaraFileRecord *pCXaraFileRecord)
 Creates a NodeClipViewController when the appropriate tag is read in from the file.

Detailed Description

Handles the reading of all ClipView records. See also:.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/01/2000

Definition at line 321 of file ndclpcnt.h.


Constructor & Destructor Documentation

ClipViewRecordHandler::ClipViewRecordHandler  ) 
 

Constructor.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
09 February 2000

Definition at line 2622 of file ndclpcnt.cpp.

02623 {
02624     // empty.
02625 }

ClipViewRecordHandler::~ClipViewRecordHandler  ) 
 

Destructor.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
09 February 2000

Definition at line 2638 of file ndclpcnt.cpp.

02639 {
02640     // empty.
02641 }


Member Function Documentation

UINT32 * ClipViewRecordHandler::GetTagList  )  [virtual]
 

Gets the tag list for this handler to handle.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
09 February 2000
Returns:
An array of the tags which we can handle, terminated by CXFRH_TAG_LIST_END.

Implements CXaraFileRecordHandler.

Definition at line 2655 of file ndclpcnt.cpp.

02656 {
02657     static UINT32 TagList[] = { TAG_CLIPVIEWCONTROLLER, TAG_CLIPVIEW, CXFRH_TAG_LIST_END };
02658 
02659     return (UINT32*)&TagList;
02660 }

BOOL ClipViewRecordHandler::HandleRecord CXaraFileRecord pCXaraFileRecord  )  [virtual]
 

Creates a NodeClipViewController when the appropriate tag is read in from the file.

Author:
Karim_MacDonald (Xara Group Ltd) <camelotdev@xara.com>
Date:
09 February 2000
Parameters:
pCXaraFileRecord pointer to the file object. [INPUTS]
Returns:
TRUE if successful, FALSE otherwise.

Errors: ERROR1 if a new node cannot be created, ERROR2 if pCXaraFileRecord is NULL, ERROR3 if we are passed a tag we do not recognise. See also:

Implements CXaraFileRecordHandler.

Definition at line 2682 of file ndclpcnt.cpp.

02683 {
02684     // validate inputs.
02685     ERROR2IF(pCXaraFileRecord == NULL, FALSE, "NULL parameter passed");
02686 
02687     // at the moment, we only handle the one tag.
02688     BOOL ok = TRUE;
02689     UINT32 Tag = pCXaraFileRecord->GetTag();
02690     switch (Tag)
02691     {
02692         case TAG_CLIPVIEWCONTROLLER:
02693         {
02694             NodeClipViewController* pNCVC = new NodeClipViewController;
02695             ERROR1IF(pNCVC == NULL, FALSE, _R(IDE_NOMORE_MEMORY));
02696             ok = InsertNode(pNCVC);
02697             break;
02698         }
02699 
02700         case TAG_CLIPVIEW:
02701         {
02702             NodeClipView* pNCV = new NodeClipView;
02703             ERROR1IF(pNCV == NULL, FALSE, _R(IDE_NOMORE_MEMORY));
02704             ok = InsertNode(pNCV);
02705             break;
02706         }
02707 
02708         default:
02709             ok = FALSE;
02710             ERROR3_PF(("ClipView file record handler - unrecognised tag: %d", Tag));
02711             break;
02712     }
02713 
02714     return ok;
02715 }


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