CreateDisplayScan::FoldGroupIfEmpty Class Reference

#include <ngscan.h>

Inheritance diagram for CreateDisplayScan::FoldGroupIfEmpty:

NameGroupIter List of all members.

Private Member Functions

virtual BOOL Do (SGNameGroup *)
 Folds groups which have no items.

Detailed Description

Definition at line 432 of file ngscan.h.


Member Function Documentation

BOOL CreateDisplayScan::FoldGroupIfEmpty::Do SGNameGroup pGroup  )  [private, virtual]
 

Folds groups which have no items.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/5/99
Parameters:
pGroup --- current group in the iteration [INPUTS]

Implements NameGroupIter.

Definition at line 1385 of file ngscan.cpp.

01386 {
01387     // Is the group item-less and unfolded?
01388     if (pGroup->GetChild() == 0 && !pGroup->Flags.Folded)
01389     {
01390         // Remember to unfold this group as soon as it has items again.  But if the user
01391         // has folded the group deliberately then we don't interfere with it.
01392         pGroup->Flags.Reserved |= 1;
01393         pGroup->Flags.Folded = TRUE;
01394     }
01395 
01396     return TRUE;
01397 }


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