CreateDisplayScan Class Reference

Scans the 'selected' document and creates/refreshes the groups and items of the Attribute gallery's display. More...

#include <ngscan.h>

Inheritance diagram for CreateDisplayScan:

NodeScan List of all members.

Public Member Functions

 CreateDisplayScan ()
 Constructs a CreateDisplayScan object.

Protected Member Functions

virtual BOOL Pre ()
 Called by CreateDisplayScan when the gallery display is (re)created. Resets the running counters of total and selected objects in each display item.
virtual BOOL Do (Node *)
 Called by CreateDisplayScan when the gallery display is (re)created. Tests the given node for membership of each set and if it is a member, creates a new SGNameItem for its name ('attribute value') if one doesn't already exist, and includes it in the running counts of total and selected objects.
virtual BOOL Post ()
 Called by CreateDisplayScan when the gallery display is (re)created. Deletes any SGNameItems which don't have any members and folds any groups that don't have items.

Classes

class  ClearCounters
class  CreateItems
class  DelItemIfUnref
class  FoldGroupIfEmpty

Detailed Description

Scans the 'selected' document and creates/refreshes the groups and items of the Attribute gallery's display.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99

Definition at line 402 of file ngscan.h.


Constructor & Destructor Documentation

CreateDisplayScan::CreateDisplayScan  ) 
 

Constructs a CreateDisplayScan object.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
See also:
NodeScan

Definition at line 1227 of file ngscan.cpp.

01228   : NodeScan(&theSelectedDocument)
01229 {
01230     // Empty.
01231 }


Member Function Documentation

BOOL CreateDisplayScan::Do Node pNode  )  [protected, virtual]
 

Called by CreateDisplayScan when the gallery display is (re)created. Tests the given node for membership of each set and if it is a member, creates a new SGNameItem for its name ('attribute value') if one doesn't already exist, and includes it in the running counts of total and selected objects.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
Parameters:
pNode --- the current node in the scan [INPUTS]
See also:
NodeScan

Implements NodeScan.

Definition at line 1265 of file ngscan.cpp.

01266 {
01267     // Create/register with the sets that contain pInkNode as a member.
01268     return CreateItems(pNode).ForEach() == 0;
01269 }

BOOL CreateDisplayScan::Post  )  [protected, virtual]
 

Called by CreateDisplayScan when the gallery display is (re)created. Deletes any SGNameItems which don't have any members and folds any groups that don't have items.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
See also:
NodeScan

Reimplemented from NodeScan.

Definition at line 1284 of file ngscan.cpp.

01285 {
01286     return DelItemIfUnref().ForEach() == 0 && FoldGroupIfEmpty().ForEach() == 0;
01287 }

BOOL CreateDisplayScan::Pre  )  [protected, virtual]
 

Called by CreateDisplayScan when the gallery display is (re)created. Resets the running counters of total and selected objects in each display item.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
See also:
NodeScan

Reimplemented from NodeScan.

Definition at line 1245 of file ngscan.cpp.

01246 {
01247     return ClearCounters().ForEach() == 0;
01248 }


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