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
1b966122
Commit
1b966122
authored
Jan 26, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added WebBrowser's IOleCommandTarget stub implementation.
parent
254bdf08
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
oleobject.c
dlls/shdocvw/oleobject.c
+51
-0
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+3
-0
No files found.
dlls/shdocvw/oleobject.c
View file @
1b966122
...
...
@@ -691,12 +691,63 @@ static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = {
InPlaceActiveObject_EnableModeless
};
#define OLECMD_THIS(iface) DEFINE_THIS(WebBrowser, WBOleCommandTarget, iface)
static
HRESULT
WINAPI
WBOleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
IWebBrowser2_QueryInterface
(
WEBBROWSER
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
WBOleCommandTarget_AddRef
(
IOleCommandTarget
*
iface
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
IWebBrowser2_AddRef
(
WEBBROWSER
(
This
));
}
static
ULONG
WINAPI
WBOleCommandTarget_Release
(
IOleCommandTarget
*
iface
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
IWebBrowser2_Release
(
WEBBROWSER
(
This
));
}
static
HRESULT
WINAPI
WBOleCommandTarget_QueryStatus
(
IOleCommandTarget
*
iface
,
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
FIXME
(
"(%p)->(%s %lu %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
cCmds
,
prgCmds
,
pCmdText
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WBOleCommandTarget_Exec
(
IOleCommandTarget
*
iface
,
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
FIXME
(
"(%p)->(%s %ld %ld %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
nCmdID
,
nCmdexecopt
,
pvaIn
,
pvaOut
);
return
E_NOTIMPL
;
}
#undef OLECMD_THIS
static
const
IOleCommandTargetVtbl
OleCommandTargetVtbl
=
{
WBOleCommandTarget_QueryInterface
,
WBOleCommandTarget_AddRef
,
WBOleCommandTarget_Release
,
WBOleCommandTarget_QueryStatus
,
WBOleCommandTarget_Exec
};
void
WebBrowser_OleObject_Init
(
WebBrowser
*
This
)
{
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
This
->
lpOleInPlaceObjectVtbl
=
&
OleInPlaceObjectVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
lpOleInPlaceActiveObjectVtbl
=
&
OleInPlaceActiveObjectVtbl
;
This
->
lpWBOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
client
=
NULL
;
This
->
container
=
NULL
;
...
...
dlls/shdocvw/shdocvw.h
View file @
1b966122
...
...
@@ -76,6 +76,7 @@ typedef struct {
const
IConnectionPointContainerVtbl
*
lpConnectionPointContainerVtbl
;
const
IViewObject2Vtbl
*
lpViewObjectVtbl
;
const
IOleInPlaceActiveObjectVtbl
*
lpOleInPlaceActiveObjectVtbl
;
const
IOleCommandTargetVtbl
*
lpWBOleCommandTargetVtbl
;
/* Interfaces available for embeded document */
...
...
@@ -133,6 +134,7 @@ typedef struct {
#define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
#define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
#define WBOLECMD(x) ((IOleCommandTarget*) &(x)->lpWBOleCommandTargetVtbl)
#define CLIENTSITE(x) ((IOleClientSite*) &(x)->lpOleClientSiteVtbl)
#define INPLACESITE(x) ((IOleInPlaceSite*) &(x)->lpOleInPlaceSiteVtbl)
...
...
dlls/shdocvw/webbrowser.c
View file @
1b966122
...
...
@@ -97,6 +97,9 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IOleInPlaceActiveObject
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleInPlaceActiveObject %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ACTIVEOBJ
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCommandTarget %p)
\n
"
,
This
,
ppv
);
*
ppv
=
WBOLECMD
(
This
);
}
if
(
*
ppv
)
{
...
...
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