CODUngroupCommand Class

class CODUngroupCommand: public CODIndexedCommand

Ungroups composite objects into their individual components (CODSymbolComponent objects can not be ungrouped).

Defined in: OdUngroupCmd.h

Class Members

VIEWS_API CODUngroupCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODUngroupCommand()

Destructor.

CMap<CODComponent*,CODComponent*,CODComponentSet*,CODComponentSet*> m_mapOldGroups

Maps components to their old groups.

VIEWS_API void ClearOldGroups()

Clears the list of old groups.

VIEWS_API BOOL GetOldGroup(CODComponent* pGroup, CODComponentSet*& pSubComps) const

Gets the old subcomponents of a group.

VIEWS_API void SetOldGroup(CODComponent* pGroup, CODComponentSet* pSubComps)

Sets the old subcomponents of a group.

VIEWS_API void SaveGroup(CODComponent* pGroup)

Saves the old subcomponents of a group given an existing group.

VIEWS_API virtual BOOL Execute()

Ungroup the composite components.

VIEWS_API virtual BOOL Unexecute()

Regroup the components back into their composite objects.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this ungroup command.

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on this command for logging purposes.