Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9f077e55
Commit
9f077e55
authored
Aug 08, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stub implementation of IOleControl.
parent
02ad6e72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
oleobj.c
dlls/mshtml/oleobj.c
+67
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
9f077e55
...
...
@@ -102,6 +102,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
}
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCommandTarget, %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
CMDTARGET
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleControl
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleControl, %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
CONTROL
(
This
);
}
if
(
*
ppvObject
)
{
...
...
dlls/mshtml/mshtml_private.h
View file @
9f077e55
...
...
@@ -40,6 +40,7 @@ typedef struct {
const
IOleInPlaceObjectWindowlessVtbl
*
lpOleInPlaceObjectWindowlessVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IOleCommandTargetVtbl
*
lpOleCommandTargetVtbl
;
const
IOleControlVtbl
*
lpOleControlVtbl
;
LONG
ref
;
...
...
@@ -84,6 +85,7 @@ struct NSContainer {
#define INPLACEWIN(x) ((IOleInPlaceObjectWindowless*) &(x)->lpOleInPlaceObjectWindowlessVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
#define CMDTARGET(x) ((IOleCommandTarget*) &(x)->lpOleCommandTargetVtbl)
#define CONTROL(x) ((IOleControl*) &(x)->lpOleControlVtbl)
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
...
...
dlls/mshtml/oleobj.c
View file @
9f077e55
...
...
@@ -764,6 +764,8 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
return
OLECMDERR_E_UNKNOWNGROUP
;
}
#undef CMDTARGET_THIS
static
const
IOleCommandTargetVtbl
OleCommandTargetVtbl
=
{
OleCommandTarget_QueryInterface
,
OleCommandTarget_AddRef
,
...
...
@@ -772,11 +774,76 @@ static const IOleCommandTargetVtbl OleCommandTargetVtbl = {
OleCommandTarget_Exec
};
/**********************************************************
* IOleControl implementation
*/
#define CONTROL_THIS(iface) DEFINE_THIS(HTMLDocument, OleControl, iface)
static
HRESULT
WINAPI
OleControl_QueryInterface
(
IOleControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
OleControl_AddRef
(
IOleControl
*
iface
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
OleControl_Release
(
IOleControl
*
iface
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
OleControl_GetControlInfo
(
IOleControl
*
iface
,
CONTROLINFO
*
pCI
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pCI
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_OnMnemonic
(
IOleControl
*
iface
,
MSG
*
pMsg
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pMsg
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_OnAmbientPropertyChange
(
IOleControl
*
iface
,
DISPID
dispID
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
dispID
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleControl_FreezeEvents
(
IOleControl
*
iface
,
BOOL
bFreeze
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
bFreeze
);
return
E_NOTIMPL
;
}
#undef CONTROL_THIS
static
const
IOleControlVtbl
OleControlVtbl
=
{
OleControl_QueryInterface
,
OleControl_AddRef
,
OleControl_Release
,
OleControl_GetControlInfo
,
OleControl_OnMnemonic
,
OleControl_OnAmbientPropertyChange
,
OleControl_FreezeEvents
};
void
HTMLDocument_OleObj_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
client
=
NULL
;
This
->
hostui
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment