1997-11-30 17:45:40 +00:00
|
|
|
/*
|
|
|
|
* OLECLI library
|
|
|
|
*
|
|
|
|
* Copyright 1995 Martin von Loewis
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* At the moment, these are only empty stubs.
|
|
|
|
*/
|
2001-07-23 23:50:18 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-12-23 01:46:34 +00:00
|
|
|
#include "windef.h"
|
|
|
|
#include "wine/windef16.h"
|
2000-09-26 22:20:14 +00:00
|
|
|
#include "winbase.h"
|
2000-02-10 19:39:48 +00:00
|
|
|
#include "wingdi.h"
|
2002-10-18 23:48:57 +00:00
|
|
|
#include "wownt32.h"
|
2002-12-23 01:46:34 +00:00
|
|
|
#include "objbase.h"
|
2008-02-01 22:09:18 +00:00
|
|
|
#include "olecli.h"
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
1999-01-23 11:54:12 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(ole);
|
1999-04-19 14:56:29 +00:00
|
|
|
|
2002-12-23 01:46:34 +00:00
|
|
|
typedef struct _OLEOBJECTVTBL {
|
2007-11-19 05:54:16 +00:00
|
|
|
void * (CALLBACK *QueryProtocol)(_LPOLEOBJECT,LPCOLESTR16);
|
2004-09-09 19:23:19 +00:00
|
|
|
OLESTATUS (CALLBACK *Release)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *Show)(_LPOLEOBJECT,BOOL16);
|
|
|
|
OLESTATUS (CALLBACK *DoVerb)(_LPOLEOBJECT,UINT16,BOOL16,BOOL16);
|
|
|
|
OLESTATUS (CALLBACK *GetData)(_LPOLEOBJECT,OLECLIPFORMAT,HANDLE16 *);
|
|
|
|
OLESTATUS (CALLBACK *SetData)(_LPOLEOBJECT,OLECLIPFORMAT,HANDLE16);
|
|
|
|
OLESTATUS (CALLBACK *SetTargetDevice)(_LPOLEOBJECT,HGLOBAL16);
|
|
|
|
OLESTATUS (CALLBACK *SetBounds)(_LPOLEOBJECT,LPRECT16);
|
|
|
|
OLESTATUS (CALLBACK *EnumFormats)(_LPOLEOBJECT,OLECLIPFORMAT);
|
|
|
|
OLESTATUS (CALLBACK *SetColorScheme)(_LPOLEOBJECT,struct tagLOGPALETTE*);
|
|
|
|
OLESTATUS (CALLBACK *Delete)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *SetHostNames)(_LPOLEOBJECT,LPCOLESTR16,LPCOLESTR16);
|
|
|
|
OLESTATUS (CALLBACK *SaveToStream)(_LPOLEOBJECT,struct _OLESTREAM*);
|
|
|
|
OLESTATUS (CALLBACK *Clone)(_LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT *);
|
|
|
|
OLESTATUS (CALLBACK *CopyFromLink)(_LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT *);
|
|
|
|
OLESTATUS (CALLBACK *Equal)(_LPOLEOBJECT,_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *CopyToClipBoard)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *Draw)(_LPOLEOBJECT,HDC16,LPRECT16,LPRECT16,HDC16);
|
|
|
|
OLESTATUS (CALLBACK *Activate)(_LPOLEOBJECT,UINT16,BOOL16,BOOL16,HWND16,LPRECT16);
|
|
|
|
OLESTATUS (CALLBACK *Execute)(_LPOLEOBJECT,HGLOBAL16,UINT16);
|
|
|
|
OLESTATUS (CALLBACK *Close)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *Update)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *Reconnect)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *ObjectConvert)(_LPOLEOBJECT,LPCOLESTR16,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,_LPOLEOBJECT*);
|
|
|
|
OLESTATUS (CALLBACK *GetLinkUpdateOptions)(_LPOLEOBJECT,LPOLEOPT_UPDATE);
|
|
|
|
OLESTATUS (CALLBACK *SetLinkUpdateOptions)(_LPOLEOBJECT,OLEOPT_UPDATE);
|
|
|
|
OLESTATUS (CALLBACK *Rename)(_LPOLEOBJECT,LPCOLESTR16);
|
|
|
|
OLESTATUS (CALLBACK *QueryName)(_LPOLEOBJECT,LPSTR,LPUINT16);
|
|
|
|
OLESTATUS (CALLBACK *QueryType)(_LPOLEOBJECT,LPLONG);
|
|
|
|
OLESTATUS (CALLBACK *QueryBounds)(_LPOLEOBJECT,LPRECT16);
|
|
|
|
OLESTATUS (CALLBACK *QuerySize)(_LPOLEOBJECT,LPDWORD);
|
|
|
|
OLESTATUS (CALLBACK *QueryOpen)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *QueryOutOfDate)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *QueryReleaseStatus)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *QueryReleaseError)(_LPOLEOBJECT);
|
|
|
|
OLE_RELEASE_METHOD (CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT);
|
|
|
|
OLESTATUS (CALLBACK *RequestData)(_LPOLEOBJECT,OLECLIPFORMAT);
|
|
|
|
OLESTATUS (CALLBACK *ObjectLong)(_LPOLEOBJECT,UINT16,LPLONG);
|
2002-12-23 01:46:34 +00:00
|
|
|
} OLEOBJECTVTBL;
|
|
|
|
typedef OLEOBJECTVTBL *LPOLEOBJECTVTBL;
|
|
|
|
|
|
|
|
typedef struct _OLEOBJECT
|
|
|
|
{
|
2005-06-06 19:50:35 +00:00
|
|
|
const OLEOBJECTVTBL *lpvtbl;
|
2002-12-23 01:46:34 +00:00
|
|
|
} OLEOBJECT;
|
1997-11-30 17:45:40 +00:00
|
|
|
|
2000-06-20 20:59:27 +00:00
|
|
|
static LONG OLE_current_handle;
|
1997-11-30 17:45:40 +00:00
|
|
|
|
2001-02-20 23:43:43 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* OleSavedClientDoc [OLECLI32.45]
|
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
|
|
|
|
{
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%d: stub\n", hDoc);
|
2001-02-20 23:43:43 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleRegisterClientDoc [OLECLI32.41]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
|
1997-11-30 17:45:40 +00:00
|
|
|
LONG reserved, LHCLIENTDOC *hRet )
|
|
|
|
{
|
1999-07-04 16:02:24 +00:00
|
|
|
FIXME("(%s,%s,...): stub\n",classname,docname);
|
1997-11-30 17:45:40 +00:00
|
|
|
*hRet=++OLE_current_handle;
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleRenameClientDoc [OLECLI32.43]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
|
1997-11-30 17:45:40 +00:00
|
|
|
{
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%d,%s,...): stub\n",hDoc, newName);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleRevokeClientDoc [OLECLI32.42]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
|
1997-11-30 17:45:40 +00:00
|
|
|
{
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%d): stub\n",hServerDoc);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleCreateLinkFromClip [OLECLI32.11]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
2002-05-31 23:06:46 +00:00
|
|
|
OLESTATUS WINAPI OleCreateLinkFromClip(
|
1997-11-30 17:45:40 +00:00
|
|
|
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
2004-09-09 19:23:19 +00:00
|
|
|
_LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
|
1997-11-30 17:45:40 +00:00
|
|
|
) {
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%s,%p,%08x,%s,%p,%d,%d): stub!\n",
|
1998-03-29 19:44:57 +00:00
|
|
|
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleQueryLinkFromClip [OLECLI32.9]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%s,%d,%d): stub!\n",name,render,clipformat);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
1999-03-13 12:51:19 +00:00
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleQueryCreateFromClip [OLECLI32.10]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%s,%d,%d): stub!\n",name,render,clipformat);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-06-23 16:13:33 +00:00
|
|
|
* OleIsDcMeta [OLECLI32.60]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
2000-06-23 16:13:33 +00:00
|
|
|
BOOL WINAPI OleIsDcMeta(HDC hdc)
|
1997-11-30 17:45:40 +00:00
|
|
|
{
|
2002-10-18 23:48:57 +00:00
|
|
|
TRACE("(%p)\n",hdc);
|
2000-06-23 16:13:33 +00:00
|
|
|
return GetObjectType( hdc ) == OBJ_METADC;
|
1997-11-30 17:45:40 +00:00
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleSetHostNames [OLECLI32.15]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
2004-09-09 19:23:19 +00:00
|
|
|
OLESTATUS WINAPI OleSetHostNames(_LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
|
1999-07-04 16:02:24 +00:00
|
|
|
FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
|
1997-11-30 17:45:40 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleQueryType [OLECLI32.14]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
2004-09-09 19:23:19 +00:00
|
|
|
OLESTATUS WINAPI OleQueryType(_LPOLEOBJECT oleob,LONG*xlong) {
|
1999-07-04 16:02:24 +00:00
|
|
|
FIXME("(%p,%p): stub!\n",oleob,xlong);
|
1997-11-30 17:45:40 +00:00
|
|
|
if (!oleob)
|
|
|
|
return 0x10;
|
1999-07-04 16:02:24 +00:00
|
|
|
TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
|
1998-03-29 19:44:57 +00:00
|
|
|
oleob->lpvtbl->QueryType,oleob,xlong);
|
1997-11-30 17:45:40 +00:00
|
|
|
return oleob->lpvtbl->QueryType(oleob,xlong);
|
|
|
|
}
|
|
|
|
|
1998-10-11 14:21:42 +00:00
|
|
|
/******************************************************************************
|
2000-03-28 20:22:59 +00:00
|
|
|
* OleCreateFromClip [OLECLI32.12]
|
1997-11-30 17:45:40 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
OLESTATUS WINAPI OleCreateFromClip(
|
1997-11-30 17:45:40 +00:00
|
|
|
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
2004-09-09 19:23:19 +00:00
|
|
|
_LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
|
1997-11-30 17:45:40 +00:00
|
|
|
) {
|
2006-10-07 22:51:18 +00:00
|
|
|
FIXME("(%s,%p,%08x,%s,%p,%d,%d): stub!\n",
|
1998-03-29 19:44:57 +00:00
|
|
|
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
1997-11-30 17:45:40 +00:00
|
|
|
/* clipb type, object kreieren entsprechend etc. */
|
|
|
|
return OLE_OK;
|
|
|
|
}
|