CATMecModExtendItf Interface CATIReplaceUI

Usage: you can freely reimplement this interface.


interface CATIReplaceUI

Replace.
Role: Implement this interface for replace operation. Retrieve in a CATPathElement a valid element for replace. Called by replace command.

See also:


Method Index


o FindValidElementForReplace(CATUnicodeString&,CATPathElement*,CATBaseUnknown*,CATBaseUnknown*&)
Find the replacing element.

Methods


o FindValidElementForReplace
public virtual FindValidElementForReplace( const iRole,
const iSelection,
const iOldValue,
oFoundElement)
Find the replacing element.
Postcondition: The caller has to release oFoundElement.
Parameters:
iRole
The name of the attribute which references the element to be replaced.
iSelection
The path element selection.
iOldValue
The element to be replaced. In case of iRole is a tk_list attribute, use iSelection with iRole to locate which element of the list is being replaced.
oFoundElement
The element extracted from iSelection which grants the replace operation.
Returns:
S_OK if OK, E_FAIL if failed.

This object is included in the file: CATIReplaceUI.h
If needed, your Imakefile.mk should include the module: CATMecModExtendItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.