InteractiveInterfaces Interface CATICCPable

Usage: you can freely reimplement this interface.


interface CATICCPable

Allows users to copy and/or delete the seleted element.
Role: Implement this interface to prevent the element deletion. The Cut action is doing both a Copy and a Delete action.


Method Index


o CanBeCopied(CATLISTV(CATBaseUnknown_var)&,int&,CATUnicodeString&)
If the element can be copied.
o CanBeDeleted(CATLISTV(CATBaseUnknown_var)&,int&,CATUnicodeString&)
If the element can be deleted.

Methods


o CanBeCopied
public virtual CanBeCopied( const iContext,
oAnswer,
oMessage)
If the element can be copied.
Parameters:
iContext
The list of paths of selected elements.
oAnswer
The answer.
Legal values: 1 if the feature can be copied, 0 if it cannot be copied.
oMessage
Defines the message to explain why the selected element cannot be copied.
Returns:
S_OK if OK, E_FAIL if failed.
o CanBeDeleted
public virtual CanBeDeleted( const iContext,
oAnswer,
oMessage)
If the element can be deleted.
Parameters:
iContext
The list of paths of selected elements.
oAnswer
The answer.
Legal values: 1 if the element can be deleted, 0 if it cannot be deleted.
oMessage
Defines the message to explain why the selected element cannot be deleted. The message is displayed in a pop-up box.
Returns:
S_OK if OK, E_FAIL if fail

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

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