CDRLayerListItem Class Reference

A list object to store layers in a page during the conversion process. More...

#include <cdrfiltr.h>

Inheritance diagram for CDRLayerListItem:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 CDRLayerListItem ()
 Constructor.
 ~CDRLayerListItem ()
 Destructor.

Private Member Functions

 CC_DECLARE_MEMDUMP (CDRLayerListItem)

Private Attributes

friend CDRLayerList
String_256 Name
NodeObjects
BOOL LayerInDocument
BOOL IsVisible
BOOL IsLocked

Friends

class CDRFilter

Detailed Description

A list object to store layers in a page during the conversion process.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
23 03 95

Definition at line 414 of file cdrfiltr.h.


Constructor & Destructor Documentation

CDRLayerListItem::CDRLayerListItem  ) 
 

Constructor.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
24 03 95
Parameters:
[INPUTS] 
Returns:
See also:
CDRLayerList

Definition at line 4972 of file cdrfiltr.cpp.

04973 {
04974     Objects = 0;
04975     LayerInDocument = FALSE;
04976     IsVisible = TRUE;
04977     IsLocked = FALSE;
04978 }

CDRLayerListItem::~CDRLayerListItem  ) 
 

Destructor.

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
24 03 95
Parameters:
[INPUTS] 
Returns:
See also:
CDRLayerList

Definition at line 4994 of file cdrfiltr.cpp.

04995 {
04996     Node *Previous;
04997     Node *This;
04998 
04999     This = Objects;
05000 
05001     if(LayerInDocument == FALSE)
05002     {   
05003         // delete the tree if it hasn't been used in the document
05004         while(This != 0)
05005         {
05006             // check that the node we're about to delete hasn't got a next pointer
05007             // as it jolly well shouldn't have one as we create the tree backwards
05008             ERROR3IF(This->FindNext() != 0, "Node in layer has next pointer during deletion");
05009             
05010             // find the previous node
05011             Previous = This->FindPrevious();
05012             
05013             // delete the current one's children
05014             This->CascadeDelete();
05015 
05016             // and delete the current one
05017             delete This;
05018 
05019             // shuffle backwards
05020             This = Previous;
05021         }
05022         Objects = 0;
05023     }
05024 }


Member Function Documentation

CDRLayerListItem::CC_DECLARE_MEMDUMP CDRLayerListItem   )  [private]
 


Friends And Related Function Documentation

friend class CDRFilter [friend]
 

Definition at line 417 of file cdrfiltr.h.


Member Data Documentation

friend CDRLayerListItem::CDRLayerList [private]
 

Definition at line 416 of file cdrfiltr.h.

BOOL CDRLayerListItem::IsLocked [private]
 

Definition at line 435 of file cdrfiltr.h.

BOOL CDRLayerListItem::IsVisible [private]
 

Definition at line 434 of file cdrfiltr.h.

BOOL CDRLayerListItem::LayerInDocument [private]
 

Definition at line 430 of file cdrfiltr.h.

String_256 CDRLayerListItem::Name [private]
 

Definition at line 426 of file cdrfiltr.h.

Node* CDRLayerListItem::Objects [private]
 

Definition at line 428 of file cdrfiltr.h.


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