a2dWalker_RemoveProperty Class Reference
[Algorithms on hierarchy in a2dDocument]

Remove from a2dPropObject in a hierarchy, certain properties. More...

#include <algos.h>

Inheritance diagram for a2dWalker_RemoveProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dWalker_RemoveProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dWalker_RemoveProperty (bool all=true)
 constructor with no a2dPropertyId added yet. For that use AddPropertyId()
 a2dWalker_RemoveProperty (const a2dPropertyId *id, bool all=true)
 constructor with a2dPropertyId added to the propertyIsList to search for.
 a2dWalker_RemoveProperty (const a2dPropertyIdList &idList, bool all=true)
 constructor with the propertyIdList to search for as input
void AddPropertyId (const a2dPropertyId *id)
 add a a2dPropertyId to the list
bool Start (a2dObject *object)
virtual bool WalkTask (wxObject *parent, wxObject *object, a2dWalkEvent event)
 called from within a2dCanvasDocument

Public Attributes

bool m_all
 to remove all or only one property on each object found.
a2dPropertyIdList m_propertyList
 properties to search for


Detailed Description

Remove from a2dPropObject in a hierarchy, certain properties.

Property Id's stored in a list, are searched for in the hierarchy of a document. a2dObject::Walker() etc. is used to walk through the hierarchy. Every a2dPropObject passed, is inspected for containing one of the the properties of the list. The found properties will be removed.

Definition at line 149 of file algos.h.


Member Function Documentation

bool a2dWalker_RemoveProperty::Start ( a2dObject object  ) 

start removing properties from the object given, and down. returns true if some property was removed.

Definition at line 247 of file algos.cpp.


The documentation for this class was generated from the following files:
a2dWalker_RemoveProperty Class Reference -- Tue Aug 31 18:37:25 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation