RangeListItem Class Reference

Hold a range that. More...

Inheritance diagram for RangeListItem:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 RangeListItem (Node *pFirst, Node *pLast)
 Create a range list item using the specified node range.

Public Attributes

BOOL IsLayer
Range TheRange
LayerTheLayer

Detailed Description

Hold a range that.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/09/94
See also:

Definition at line 184 of file epsfiltr.cpp.


Constructor & Destructor Documentation

RangeListItem::RangeListItem Node pFirst,
Node pLast
 

Create a range list item using the specified node range.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/09/94
Parameters:
pFirst,pLast - the first and last nodes in the range. [INPUTS]
See also:
RangeListItem; RangeList

Definition at line 209 of file epsfiltr.cpp.

00210 {
00211     // range or layer?
00212     if(pFirst == pLast && IS_A(pFirst, Layer))
00213     {
00214         // just a layer, so make a layer variant
00215         TheLayer = (Layer *)pFirst;
00216         IsLayer = TRUE;
00217     }
00218     else
00219     {
00220         // it's more than one, or not a layer
00221         
00222         // We want all nodes to be included in the range
00223         RangeControl Flags;
00224         Flags.Selected = TRUE;
00225         Flags.Unselected = TRUE;
00226 
00227         // Make the range and copy to where we want it (spot slight omission from Range class!)
00228         Range Tmp(pFirst, pLast, Flags);
00229         TheRange = Tmp;
00230         IsLayer = FALSE;
00231     }
00232 }


Member Data Documentation

BOOL RangeListItem::IsLayer
 

Definition at line 190 of file epsfiltr.cpp.

Layer* RangeListItem::TheLayer
 

Definition at line 192 of file epsfiltr.cpp.

Range RangeListItem::TheRange
 

Definition at line 191 of file epsfiltr.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:00:20 2007 for Camelot by  doxygen 1.4.4