All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

InteractiveInterfaces Interface CATICCPable

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---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 HRESULT CanBeCopied( const CATLISTV(CATBaseUnknown_var)& iContext,
int& oAnswer,
CATUnicodeString& oMessage)=0
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 HRESULT CanBeDeleted( const CATLISTV(CATBaseUnknown_var)& iContext,
int& oAnswer,
CATUnicodeString& oMessage)=0
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 © 2003, Dassault Systèmes. All rights reserved.