home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v1.zip
/
IBMCPP
/
IBMCLASS
/
IDMMLEIT.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-22
|
6KB
|
101 lines
#ifndef _IDMMLEIT_
#define _IDMMLEIT_
/*******************************************************************************
* FILE NAME: idmmleit.hpp *
* *
* DESCRIPTION: *
* This file contains the declaration(s) of the class(es): *
* IDMMLEItem - Direct manipulation multi line edit item class. *
* *
* COPYRIGHT: *
* Licensed Materials - Property of IBM *
* (C) Copyright IBM Corporation 1992, 1993 *
* All Rights Reserved *
* US Government Users Restricted Rights - Use, duplication, or *
* disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*******************************************************************************/
#ifndef _IDMITEM_
#include <idmitem.hpp>
#endif
/*----------------------------------------------------------------------------*/
/* Align classes on four byte boundary. */
/*----------------------------------------------------------------------------*/
#pragma pack(4)
/* Forward Declarations */
class IDMSourceOperation;
class IDMMLEItem : public IDMItem {
typedef IDMItem
Inherited;
/*******************************************************************************
* Objects of this class are created by MLE's when a direct manipulation *
* operation commences in an source MLE and during a direct manipulation *
* operation when a text object is dropped on a target MLE. *
* *
* Objects of this class possess the following attributes (in addition to *
* those inherited from its base class): *
* o association with a source or target drag operation object. *
* o association with IDM::rmLibrary rendering mechanism and IDM::rfProcess *
* rendering format. If the text size is <= 255 bytes, and the *
* IDM::rmFile rendering mechanism is not used, we add the IDM::rfText *
* rendering format. Otherwise, we add the IDM::rfSharedMem *
* rendering format. *
* *
* This class provides virtual functions that implement support for direct *
* manipulation (i.e. drag drop) mle text items. *
*******************************************************************************/
public:
/*------------------------- Constructors/Destructor ----------------------------
| Objects of this class are constructed in the following manner: |
| o By providing a pointer to the drag source operation. |
| o By providing a reference to a generic drag item handle. |
------------------------------------------------------------------------------*/
IDMMLEItem ( IDMSourceOperation *sourceOperation );
IDMMLEItem ( const IDMItem::Handle &dragItem );
virtual
~IDMMLEItem ( );
/*------------------------------ Source Items ----------------------------------
| This function generates source items: |
| generateSourceItems - Generates MLE text items based upon data in the |
| source MLE window. |
------------------------------------------------------------------------------*/
static Boolean
generateSourceItems ( IDMSourceOperation *sourceOperation );
/*-------------------------------- Accessors -----------------------------------
| This function provides access to generic text per a text oriented direct |
| manipulation operation: |
| object - Returns a pointer to the item text. |
------------------------------------------------------------------------------*/
virtual void
*object ( ) const;
/*------------------------------ Drop Processing -------------------------------
| This function writes data to the target window: |
| targetDrop - Writes text into the MLE from drag item. |
------------------------------------------------------------------------------*/
virtual Boolean
targetDrop ( IDMTargetDropEvent & );
protected:
private: /*------------------------ PRIVATE ----------------------------------*/
}; // IDMMLEItem
/*----------------------------------------------------------------------------*/
/* Resume compiler default packing. */
/*----------------------------------------------------------------------------*/
#pragma pack()
#endif // _IDMMLEIT_