range.h File Reference

(r1785/r1252)

#include "docrect.h"
#include "pump.h"

Go to the source code of this file.

Classes

struct  RangeControl
struct  XOROutlineInfoStr
 Contains information used by the XOR Outline rendering functions in the Range. THis includes a pointer to the "Prime Object" (which is the object that the user clicked on to start their drag), a rectangle which is used when comparing object sizes to determine how significant they are in the current drag (more significant objects are drawn first) and a couple of flags indicating if the significance region is based on the entire screen size or not, and whether the information is currently cached correctly. More...
class  Range
class  NodeListItem
 Stores a pointer to a Node. Used to build a list of nodes in the current range. The actual node can be accessed through the public member variable pNode. More...
class  SelRangeMessageHandler
 Intercepts messages for the SelRange. (Basically sits there and flushes the Selection's information cache whenever it thinks the selection cache has become invalid). More...
class  SelRange
 This class represents a range of selected nodes directly under the Selection Surface. The Selection Surface is the highest surface in the tree at which the user can select nodes. It is usually the child list of Layers but the user can push the Selection Surface lower, into groups, using Select Inside. More...
class  CommonAttrSet
class  ListRange
 This class represents a list of explicitly declared nodes (rather than the implicitly chosen nodes controlled by RangeControl flags). More...

Defines

#define SCANRANGE(pRange, func)
 MACRO Applies the given method to every node in the given Range. i.e. MonoOn for (every item 'Node' in pRange) Node->; MonoOff.
#define SCANRANGEFORCLASS(pRange, func, RuntimeClass)
 MACRO Applies the given method to every node of type 'RunTimeClass' in the given Range, i.e. MonoOn for (every item 'Node' in pRange) if (Node->IsKindOf(CC_RUNTIME_CLASS())) Node->; MonoOff.
#define SCANSELECTION(func)
 MACRO Applies the given method to every node in the Selection i.e. MonoOn for (every item 'Node' in the Selection) Node->; MonoOff.

Enumerations

enum  DescriptionFormat { MENU, STATUS_BAR }


Define Documentation

#define SCANRANGE pRange,
func   ) 
 

Value:

{\
                                Node* pNode = pRange->FindFirst();\
                                while (pNode)\
                                    {\
                                        pNode->func;\
                                        pNode = pRange->FindNext(pNode);\
                                    }\
                                }
MACRO Applies the given method to every node in the given Range. i.e. MonoOn for (every item 'Node' in pRange) Node->; MonoOff.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com> + Created: ?

Definition at line 149 of file range.h.

#define SCANRANGEFORCLASS pRange,
func,
RuntimeClass   ) 
 

Value:

{                                                           \
                    Node *Node = pRange->FindFirst();                       \
                    while (Node)                                            \
                    {                                                       \
                        if (Node->IsKindOf(CC_RUNTIME_CLASS(RuntimeClass))) \
                            ((RuntimeClass *)Node)->func;                   \
                        Node = pRange->FindNext(Node);                      \
                    }                                                       \
                }
MACRO Applies the given method to every node of type 'RunTimeClass' in the given Range, i.e. MonoOn for (every item 'Node' in pRange) if (Node->IsKindOf(CC_RUNTIME_CLASS())) Node->; MonoOff.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
04/03/94

Definition at line 176 of file range.h.

#define SCANSELECTION func   ) 
 

Value:

{\
                            SelRange* pSel = GetApplication()->FindSelection();\
                            Node* pNode = pSel->FindFirst();\
                            while (pNode)\
                                {\
                                    pNode->func;\
                                    pNode = pSel->FindNext(pNode);\
                                }\
                            }
MACRO Applies the given method to every node in the Selection i.e. MonoOn for (every item 'Node' in the Selection) Node->; MonoOff.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
?

Definition at line 205 of file range.h.


Enumeration Type Documentation

enum DescriptionFormat
 

Enumerator:
MENU 
STATUS_BAR 

Definition at line 247 of file range.h.

00247 {MENU, STATUS_BAR}; 


Generated on Sat Nov 10 03:49:19 2007 for Camelot by  doxygen 1.4.4