MFC Grid manual

CCutCopySource Class Reference

Grid items source in copy or cut clipboard operations. More...

#include <Dapfor/GUI/CutCopySource.h>

List of all members.


Public Types

typedef std::vector
< IClipboardFormat * > 
Formats
 List of the clipboard formats.

Public Member Functions

 CCutCopySource (const CGrid &grid, const CHeader *header, ContextType contextType, GUI::Handles &handles, const Formats &formats, ICopyPaste::OperationType operationType)
 Constructor.
const CGridGetGrid () const
 Gets the grid where items are copied/cut from.
const CHeaderGetHeader () const
 Gets a header of the grid.
ContextType GetContextType () const
 Gets enumeration of contexts that participated in the copy/cut operation.
GUI::Handles & GetHandles ()
 Gets sorted item handles to be serialized to the clipboard.
FormatsGetFormats ()
 Gets a list of the clipboard formats.
ICopyPaste::OperationType GetOperationType () const
 Gets operation type.
void SetHeader (const CHeader *header)
 Sets a new header.
void SetContextType (ContextType contextType)
 Sets new enumeration of contexts that participated in the copy/cut operation.
void SetOperationType (ICopyPaste::OperationType operationType)
 Sets a new operation type.

Detailed Description

Grid items source in copy or cut clipboard operations.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CCutCopySource ( const CGrid grid,
const CHeader header,
ContextType  contextType,
GUI::Handles &  handles,
const Formats formats,
ICopyPaste::OperationType  operationType 
)

Constructor.

Parameters:
[in] grid Reference to the grid where items are copied/cut from
[in] header Header of the grid
[in] contextType Enumeration of the contexts that participated in the copy/cut operation.
[in] handles Sorted item handles to be serialized to the clipboard
[in] formats List of the clipboard formats
[in] operationType Operation type


Member Function Documentation

const CGrid & GetGrid (  )  const

Gets the grid where items are copied/cut from.

Returns:
Reference to the grid

const CHeader * GetHeader (  )  const

Gets a header of the grid.

Returns:
A header of the grid

ContextType GetContextType (  )  const

Gets enumeration of contexts that participated in the copy/cut operation.

Returns:
Enumeration of the contexts that participated in the copy/cut operation

GUI::Handles & GetHandles (  ) 

Gets sorted item handles to be serialized to the clipboard.

Returns:
Sorted item handles to be serialized to the clipboard

CCutCopySource::Formats & GetFormats (  ) 

Gets a list of the clipboard formats.

Returns:
List of clipboard formats

ICopyPaste::OperationType GetOperationType (  )  const

Gets operation type.

Returns:
Operation type

void SetHeader ( const CHeader header  ) 

Sets a new header.

Parameters:
[in] header A new header

void SetContextType ( ContextType  contextType  ) 

Sets new enumeration of contexts that participated in the copy/cut operation.

Parameters:
[in] contextType A new enumeration of the contexts, that participated in the copy/cut operation

void SetOperationType ( ICopyPaste::OperationType  operationType  ) 

Sets a new operation type.

Parameters:
[in] operationType A new operation type