CODPropertyCommand Class
class CODPropertyCommand: public CODCommand
Changes a property for a set of components.Defined in: OdPropertyCmd.h
Class Members
CODPropertyCommand(CODModel* pModel)
Constructor.
virtual ~CODPropertyCommand()
Destructor.
CODProperty* m_pProperty
The property to be changed.
DWORD m_dwChangeFlags
Change flags determining which aspects of the property will be changed.
CMap<CODComponent*,CODComponent*,CODPropPtr,CODPropPtr> m_mapOldProperties
Maps components to their old properties.
CODProperty* GetProperty() const
Gets the property the command is changing.
void SetProperty(CODProperty* pProperty)
Sets the property the command is changing.
DWORD GetChangeFlags() const
Gets the property change flags.
void SetChangeFlags(DWORD dwChangeFlags)
Sets the property change flags.
void ClearOldProperties()
Clears the list of old properties.
BOOL GetOldProperty(CODComponent* pComp, CODPropPtr& pProp) const
Gets an old property given a component.
void SetOldProperty(CODComponent* pComp, CODPropPtr pProp)
Sets an old property given a component.
virtual BOOL Execute()
Changes the property of the components.
virtual BOOL Unexecute()
Restores the old properties of the changed components.
virtual sfl::MvcCommand* Dup() const
Make a copy of this property command.
virtual void Sprint(CString& strCmd)
Print information on this command for logging purposes.
void SaveProperties(CODComponent* pComp)
Recursively stores the current properties.
void RestoreProperties(CODComponent* pComp)
Recursively restores the saved properties.