1994-12-10 13:02:28 +00:00
|
|
|
#ifndef __WINE_CLIPBOARD_H
|
|
|
|
#define __WINE_CLIPBOARD_H
|
|
|
|
|
1999-03-14 16:35:05 +00:00
|
|
|
#include "windef.h"
|
1998-12-07 09:13:40 +00:00
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
struct tagWND;
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
typedef struct tagWINE_CLIPFORMAT {
|
1998-12-07 09:13:40 +00:00
|
|
|
WORD wFormatID;
|
|
|
|
WORD wRefCount;
|
|
|
|
WORD wDataPresent;
|
|
|
|
LPSTR Name;
|
1999-09-03 15:17:57 +00:00
|
|
|
HANDLE16 hData16;
|
1999-07-24 12:18:04 +00:00
|
|
|
HANDLE hDataSrc32;
|
1999-02-26 11:11:13 +00:00
|
|
|
HANDLE hData32;
|
1999-09-03 15:17:57 +00:00
|
|
|
ULONG drvData;
|
1999-02-26 11:11:13 +00:00
|
|
|
struct tagWINE_CLIPFORMAT *PrevFormat;
|
|
|
|
struct tagWINE_CLIPFORMAT *NextFormat;
|
|
|
|
} WINE_CLIPFORMAT, *LPWINE_CLIPFORMAT;
|
1998-12-07 09:13:40 +00:00
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
typedef struct tagCLIPBOARD_DRIVER
|
1998-12-07 09:13:40 +00:00
|
|
|
{
|
1999-09-03 15:17:57 +00:00
|
|
|
void (*pAcquire)(void); /* Acquire selection */
|
|
|
|
void (*pRelease)(void); /* Release selection */
|
|
|
|
void (*pSetData)(UINT); /* Set specified selection data */
|
|
|
|
BOOL (*pGetData)(UINT); /* Get specified selection data */
|
|
|
|
BOOL (*pIsFormatAvailable)(UINT); /* Check if specified format is available */
|
|
|
|
BOOL (*pRegisterFormat)(LPCSTR); /* Register a clipboard format */
|
|
|
|
BOOL (*pIsSelectionOwner)(void); /* Check if we own the selection */
|
1999-04-01 08:16:08 +00:00
|
|
|
void (*pResetOwner)(struct tagWND *, BOOL);
|
1998-12-07 09:13:40 +00:00
|
|
|
} CLIPBOARD_DRIVER;
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern CLIPBOARD_DRIVER *CLIPBOARD_Driver;
|
1998-12-07 09:13:40 +00:00
|
|
|
|
1999-09-03 15:17:57 +00:00
|
|
|
extern LPWINE_CLIPFORMAT CLIPBOARD_LookupFormat( WORD wID );
|
|
|
|
extern BOOL CLIPBOARD_IsCacheRendered();
|
1999-02-26 11:11:13 +00:00
|
|
|
extern void CLIPBOARD_DeleteRecord(LPWINE_CLIPFORMAT lpFormat, BOOL bChange);
|
1999-09-03 15:17:57 +00:00
|
|
|
extern void CLIPBOARD_EmptyCache( BOOL bChange );
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL CLIPBOARD_IsPresent(WORD wFormat);
|
1999-09-03 15:17:57 +00:00
|
|
|
extern char * CLIPBOARD_GetFormatName(UINT wFormat);
|
|
|
|
extern void CLIPBOARD_ReleaseOwner();
|
|
|
|
|
1994-12-10 13:02:28 +00:00
|
|
|
|
|
|
|
#endif /* __WINE_CLIPBOARD_H */
|