#include <ndclpcnt.h>
Inheritance diagram for ClipViewRecordHandler:
Public Member Functions | |
ClipViewRecordHandler () | |
Constructor. | |
~ClipViewRecordHandler () | |
Destructor. | |
virtual UINT32 * | GetTagList () |
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. |
Definition at line 321 of file ndclpcnt.h.
|
Constructor.
Definition at line 2622 of file ndclpcnt.cpp.
|
|
Destructor.
Definition at line 2638 of file ndclpcnt.cpp.
|
|
Gets the tag list for this handler to handle.
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 }
|
|
Creates a NodeClipViewController when the appropriate tag is read in from the file.
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 }
|