1994-12-10 14:02:28 +01:00
|
|
|
#ifndef __WINE_CLIPBOARD_H
|
|
|
|
#define __WINE_CLIPBOARD_H
|
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1998-12-07 10:13:40 +01:00
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
struct tagWND;
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct tagWINE_CLIPFORMAT {
|
1998-12-07 10:13:40 +01:00
|
|
|
WORD wFormatID;
|
|
|
|
WORD wRefCount;
|
|
|
|
WORD wDataPresent;
|
|
|
|
LPSTR Name;
|
1999-09-03 17:17:57 +02:00
|
|
|
HANDLE16 hData16;
|
1999-07-24 14:18:04 +02:00
|
|
|
HANDLE hDataSrc32;
|
1999-02-26 12:11:13 +01:00
|
|
|
HANDLE hData32;
|
1999-09-03 17:17:57 +02:00
|
|
|
ULONG drvData;
|
1999-02-26 12:11:13 +01:00
|
|
|
struct tagWINE_CLIPFORMAT *PrevFormat;
|
|
|
|
struct tagWINE_CLIPFORMAT *NextFormat;
|
|
|
|
} WINE_CLIPFORMAT, *LPWINE_CLIPFORMAT;
|
1998-12-07 10:13:40 +01:00
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
typedef struct tagCLIPBOARD_DRIVER
|
1998-12-07 10:13:40 +01:00
|
|
|
{
|
1999-09-03 17:17:57 +02: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 10:16:08 +02:00
|
|
|
void (*pResetOwner)(struct tagWND *, BOOL);
|
1998-12-07 10:13:40 +01:00
|
|
|
} CLIPBOARD_DRIVER;
|
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
extern CLIPBOARD_DRIVER *CLIPBOARD_Driver;
|
1998-12-07 10:13:40 +01:00
|
|
|
|
1999-09-03 17:17:57 +02:00
|
|
|
extern LPWINE_CLIPFORMAT CLIPBOARD_LookupFormat( WORD wID );
|
|
|
|
extern BOOL CLIPBOARD_IsCacheRendered();
|
1999-02-26 12:11:13 +01:00
|
|
|
extern void CLIPBOARD_DeleteRecord(LPWINE_CLIPFORMAT lpFormat, BOOL bChange);
|
1999-09-03 17:17:57 +02:00
|
|
|
extern void CLIPBOARD_EmptyCache( BOOL bChange );
|
1999-02-26 12:11:13 +01:00
|
|
|
extern BOOL CLIPBOARD_IsPresent(WORD wFormat);
|
1999-09-03 17:17:57 +02:00
|
|
|
extern char * CLIPBOARD_GetFormatName(UINT wFormat);
|
|
|
|
extern void CLIPBOARD_ReleaseOwner();
|
|
|
|
|
1994-12-10 14:02:28 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_CLIPBOARD_H */
|