NotSelectSource Class Reference

Concretisation of NodeScan::Source for all NodeRenderableInks NOT in the application's selection range. More...

#include <ngiter.h>

Inheritance diagram for NotSelectSource:

SelectDocSource DocTreeSource NodeScan::Source List of all members.

Protected Member Functions

virtual NodeGetFirst ()
 Identical to Node::DocFindFirstDepthFirst but skips over hidden nodes. NB. the first node in the document tree is guaranteed to never be hidden.
virtual NodeGetNext (Node *)
 Identical to Node::DocFindNextDepthFirst but skips over hidden nodes. To be precise, it doesn't follow child links for NodeHiddens.

Detailed Description

Concretisation of NodeScan::Source for all NodeRenderableInks NOT in the application's selection range.

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

Definition at line 257 of file ngiter.h.


Member Function Documentation

Node * NotSelectSource::GetFirst  )  [protected, virtual]
 

Identical to Node::DocFindFirstDepthFirst but skips over hidden nodes. NB. the first node in the document tree is guaranteed to never be hidden.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Returns:
The first unselected node in a depth-first traversal of the tree, or null.
See also:
NodeScan::Source; NotSelectSource::GetNext

Reimplemented from SelectDocSource.

Definition at line 436 of file ngiter.cpp.

00437 {
00438     Node* pNode = SelectDocSource::GetFirst();
00439     if (pNode != 0 && pNode->IsSelected()) pNode = GetNext(pNode);
00440     return pNode;
00441 }

Node * NotSelectSource::GetNext Node pNode  )  [protected, virtual]
 

Identical to Node::DocFindNextDepthFirst but skips over hidden nodes. To be precise, it doesn't follow child links for NodeHiddens.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/7/99
Parameters:
pNode --- the previous node returned by _GetNext [INPUTS]
Returns:
The next non-hidden node in a depth-first traversal of the tree, or null.
See also:
NodeScan::Source; NotSelectSource::GetFirst

Reimplemented from DocTreeSource.

Definition at line 457 of file ngiter.cpp.

00458 {
00459     do {
00460         if (pNode->FindNext() == 0)
00461             pNode = pNode->FindParent();
00462         else
00463         {
00464             pNode = pNode->FindNext();
00465             while (!pNode->IsNodeHidden() && pNode->FindFirstChild() != 0)
00466                 pNode = pNode->FindFirstChild();
00467         }
00468     } while (pNode != 0 && (!pNode->IsSetCandidate() || pNode->IsSelected()));
00469 
00470     return pNode;
00471 }


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