CMXReferOutline Class Reference

#include <cmxexdc.h>

Inheritance diagram for CMXReferOutline:

CMXReferListItem ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CMXReferOutline (CMXExportDC *pDC)
void SetOutline (cmxOutline *pOutline)
BOOL AreYouThisOutline (cmxOutline *pOutline)
 compares the given outline with the one in the object
INT32 IsInWhichDesc (void)
BOOL WriteInDesc (CMXExportDC *pDC)
 writes the description record for the outline

Protected Attributes

cmxOutline Outline

Private Member Functions

 CC_DECLARE_DYNAMIC (CMXReferOutline)

Detailed Description

Definition at line 606 of file cmxexdc.h.


Constructor & Destructor Documentation

CMXReferOutline::CMXReferOutline CMXExportDC pDC  )  [inline]
 

Definition at line 611 of file cmxexdc.h.

00611 : CMXReferListItem(pDC) {};


Member Function Documentation

BOOL CMXReferOutline::AreYouThisOutline cmxOutline *  pOutline  ) 
 

compares the given outline with the one in the object

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
05/07/96
Parameters:
pointer to a outline description [INPUTS]
Returns:
boolean

Definition at line 1472 of file cmxdcobj.cpp.

01473 {
01474     // this assume that the structures are packed nicely, and are initialised properly
01475     // failure is not a major problem, just results in larger files
01476     if(memcmp(&Outline, pOutline, sizeof(cmxOutline)) == 0)
01477     {
01478         // they're the same
01479         return TRUE;
01480     }
01481     
01482     // they're not the same
01483     return FALSE;
01484 }

CMXReferOutline::CC_DECLARE_DYNAMIC CMXReferOutline   )  [private]
 

INT32 CMXReferOutline::IsInWhichDesc void   )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 616 of file cmxexdc.h.

00616 {return cmxDESC_OUTLINE;};

void CMXReferOutline::SetOutline cmxOutline *  pOutline  )  [inline]
 

Definition at line 613 of file cmxexdc.h.

00613 {Outline = *pOutline;};

BOOL CMXReferOutline::WriteInDesc CMXExportDC pDC  )  [virtual]
 

writes the description record for the outline

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
05/07/96
Parameters:
DC [INPUTS]
Returns:
success

Reimplemented from CMXReferListItem.

Definition at line 1450 of file cmxdcobj.cpp.

01451 {
01452     if(!pDC->WriteTag(cmxTAG_DescrSection_Outline, &Outline, sizeof(Outline))
01453         || !pDC->WriteMinEndTag())
01454         return FALSE;
01455 
01456     return TRUE;
01457 }


Member Data Documentation

cmxOutline CMXReferOutline::Outline [protected]
 

Definition at line 620 of file cmxexdc.h.


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