home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
CLIPBD.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
6KB
|
188 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _CLIPBD_
#define _CLIPBD_
#ifndef _ODOBJECT_
#include "ODObject.idl"
#endif
//=====================================================================================
// Classes defined in this interface
//=====================================================================================
interface ODClipboard;
//=====================================================================================
// Classes used by this interface
//=====================================================================================
interface ODStorageUnit;
interface ODDraft;
interface ODPlatformTypeList;
interface ODFacet;
#ifdef _PLATFORM_OS2_
interface ODTypeList;
interface ODPart;
interface OrderedCollection;
#endif
#ifdef _PLATFORM_OS2_
//=====================================================================================
// Implementation Types
//=====================================================================================
#endif // _PLATFORM_OS2_
//=====================================================================================
// ODClipboard
//=====================================================================================
// #ifdef _PLATFORM_MACINTOSH_
#if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
interface ODClipboard : ODObject
{
ODUpdateID GetUpdateID();
void Clear();
ODStorageUnit GetContentStorageUnit();
ODUpdateID ActionDone(in ODCloneKind cloneKind);
void ActionUndone(in ODUpdateID update, in ODCloneKind originalCloneKind);
void ActionRedone(in ODUpdateID update, in ODCloneKind originalCloneKind);
void SetPlatformClipboard(in ODPlatformTypeList typeList);
void ExportClipboard();
void DraftSaved(in ODDraft draft);
void DraftClosing(in ODDraft draft);
#if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
ODBoolean ShowPasteAsDialog(
in ODBoolean canPasteLink,
in ODPasteAsMergeSetting mergeSetting,
in ODFacet facet,
in ODTypeToken viewType,
out ODPasteAsResult theResult);
#endif
#ifdef _PLATFORM_OS2_
ODBoolean RegisterClipboardFormat(in ODType odType,
in ODPlatformType odPlatformType,
in ODULong formatInfo );
ODBoolean DeregisterClipboardFormat(in ODType odType );
ODBoolean CanEmbed(); // [140007]
ODBoolean CanIncorporate(in ODType kind); // [140007]
#endif
#ifdef __SOMIDL__
implementation
{
functionprefix = ODClipboard;
override:
#ifdef _PLATFORM_OS2_
somInit,
#endif
somUninit,
Purge;
releaseorder:
GetUpdateID,
Clear,
GetContentStorageUnit,
ActionDone,
ActionUndone,
ActionRedone,
SetPlatformClipboard,
ExportClipboard,
DraftSaved,
DraftClosing,
#if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
ShowPasteAsDialog,
#endif
#ifdef _PLATFORM_OS2_
RegisterClipboardFormat,
DeregisterClipboardFormat,
CanEmbed,
CanIncorporate,
#endif
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8
#ifdef _PLATFORM_OS2_
,reserved9
,reserved10
#endif
;
majorversion = 1; minorversion = 0;
passthru C_xh = ""
"#ifdef _PLATFORM_OS2_"
"#define INCL_WINATOM"
"#include <os2.h>"
""
"#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
"#define CF_OPENDOCDOCUMENT WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
"#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
"#define CF_OPENDOCOWNERID WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
"#endif // _PLATFORM_OS2_"
"";
passthru C_hh = ""
"#ifdef _PLATFORM_OS2_"
"#define INCL_WINATOM"
"#include <os2.h>"
""
"#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
"#define CF_OPENDOCDOCUMENT WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
"#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
"#define CF_OPENDOCOWNERID WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
"#endif // _PLATFORM_OS2_"
"";
passthru C_h = ""
"#ifdef _PLATFORM_OS2_"
"#define INCL_WINATOM"
"#include <os2.h>"
""
"#define kCF_OPENDOCDOCUMENT \"CF_OPENDOCDOCUMENT\""
"#define CF_OPENDOCDOCUMENT WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCDOCUMENT)"
"#define kCF_OPENDOCOWNERID \"CF_OPENDOCOWNERID\""
"#define CF_OPENDOCOWNERID WinFindAtom(WinQuerySystemAtomTable(),kCF_OPENDOCOWNERID)"
"#endif // _PLATFORM_OS2_"
"";
};
#endif
};
#endif // _PLATFORM_MACINTOSH_
#endif // _CLIPBD_