CMXReferLineStyle Class Reference

#include <cmxexdc.h>

Inheritance diagram for CMXReferLineStyle:

CMXReferListItem ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CMXReferLineStyle (CMXExportDC *pDC)
void SetLineStyle (cmxLineStyle *pLineStyle)
BOOL AreYouThisStyle (cmxLineStyle *pLineStyle)
 compares the given line style with the one in the object
INT32 IsInWhichDesc (void)
BOOL WriteInDesc (CMXExportDC *pDC)
 writes the description record for line style

Protected Attributes

cmxLineStyle LineStyle

Private Member Functions

 CC_DECLARE_DYNAMIC (CMXReferLineStyle)

Detailed Description

Definition at line 588 of file cmxexdc.h.


Constructor & Destructor Documentation

CMXReferLineStyle::CMXReferLineStyle CMXExportDC pDC  )  [inline]
 

Definition at line 593 of file cmxexdc.h.

00593 : CMXReferListItem(pDC) {};


Member Function Documentation

BOOL CMXReferLineStyle::AreYouThisStyle cmxLineStyle *  pLineStyle  ) 
 

compares the given line style with the one in the object

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

Definition at line 1423 of file cmxdcobj.cpp.

01424 {
01425     // this assume that the structures are packed nicely, and are initialised properly
01426     // failure is not a major problem, just results in larger files
01427     if(memcmp(&LineStyle, pLineStyle, sizeof(cmxLineStyle)) == 0)
01428     {
01429         // they're the same
01430         return TRUE;
01431     }
01432     
01433     // they're not the same
01434     return FALSE;
01435 }

CMXReferLineStyle::CC_DECLARE_DYNAMIC CMXReferLineStyle   )  [private]
 

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

Reimplemented from CMXReferListItem.

Definition at line 598 of file cmxexdc.h.

00598 {return cmxDESC_LINESTYLE;};

void CMXReferLineStyle::SetLineStyle cmxLineStyle *  pLineStyle  )  [inline]
 

Definition at line 595 of file cmxexdc.h.

00595 {LineStyle = *pLineStyle;};

BOOL CMXReferLineStyle::WriteInDesc CMXExportDC pDC  )  [virtual]
 

writes the description record for line style

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

Reimplemented from CMXReferListItem.

Definition at line 1401 of file cmxdcobj.cpp.

01402 {
01403     if(!pDC->WriteTag(cmxTAG_DescrSection_LineStyle, &LineStyle, sizeof(LineStyle))
01404         || !pDC->WriteMinEndTag())
01405         return FALSE;
01406 
01407     return TRUE;
01408 }


Member Data Documentation

cmxLineStyle CMXReferLineStyle::LineStyle [protected]
 

Definition at line 602 of file cmxexdc.h.


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