MFC Grid manual

ICopyPaste Class Reference

Interface to copy contents of CGrid to the clipboard. More...

#include <Dapfor/GUI/ICopyPaste.h>

Inheritance diagram for ICopyPaste:

IAutoDelete CCopyPaste

List of all members.


Public Types

enum  OperationType { clipboardUndefined, clipboardCopy, clipboardCut }
 Available clipboard operations. More...

Public Member Functions

virtual bool Copy (const CGrid &grid)=0
 Copies a content of CGrid to the clipboard.
virtual bool Cut (const CGrid &grid)=0
 Cuts a content of CGrid to the clipboard.
virtual bool Paste (CPasteTarget &pasteTarget)=0
 Pastes the clipboard data to CGrid.

Detailed Description

Interface to copy contents of CGrid to the clipboard.

Version:
1.0.0.0 Initial version

Member Enumeration Documentation

enum OperationType

Available clipboard operations.

Enumerator:
clipboardUndefined  Undefined clipboard operation.
clipboardCopy  Copy.
clipboardCut  Cut.


Member Function Documentation

bool Copy ( const CGrid grid  )  [pure virtual]

Copies a content of CGrid to the clipboard.

Parameters:
[in] grid Reference to the grid object which provides a content.
Returns:
true if the data have been successfully copied.

Implemented in CCopyPaste.

bool Cut ( const CGrid grid  )  [pure virtual]

Cuts a content of CGrid to the clipboard.

Parameters:
[in] grid Reference to the grid object which provides a content.
Returns:
true if the data have been successfully cut.

Implemented in CCopyPaste.

bool Paste ( CPasteTarget pasteTarget  )  [pure virtual]

Pastes the clipboard data to CGrid.

Parameters:
[in] pasteTarget Indicates the position in CGrid where a clipboard content should be inserted.
Returns:
True if the data have been successfully pasted

Implemented in CCopyPaste.