Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
62aa916b
Commit
62aa916b
authored
Apr 18, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Move IOleCommandTarget to DocHost object.
parent
72c53293
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
client.c
dlls/shdocvw/client.c
+1
-1
dochost.c
dlls/shdocvw/dochost.c
+10
-10
shdocvw.h
dlls/shdocvw/shdocvw.h
+2
-2
No files found.
dlls/shdocvw/client.c
View file @
62aa916b
...
...
@@ -52,7 +52,7 @@ static HRESULT WINAPI ClientSite_QueryInterface(IOleClientSite *iface, REFIID ri
*
ppv
=
DOCSITE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCommandTarget %p)
\n
"
,
This
,
ppv
);
*
ppv
=
CLOLECMD
(
This
->
wb
);
*
ppv
=
CLOLECMD
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
CLDISP
(
This
->
wb
);
...
...
dlls/shdocvw/dochost.c
View file @
62aa916b
...
...
@@ -206,31 +206,31 @@ void deactivate_document(WebBrowser *This)
This
->
doc_host
.
document
=
NULL
;
}
#define OLECMD_THIS(iface) DEFINE_THIS(
WebBrowser, Cl
OleCommandTarget, iface)
#define OLECMD_THIS(iface) DEFINE_THIS(
DocHost,
OleCommandTarget, iface)
static
HRESULT
WINAPI
ClOleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
IOleClientSite_QueryInterface
(
CLIENTSITE
(
&
This
->
doc_host
),
riid
,
ppv
);
DocHost
*
This
=
OLECMD_THIS
(
iface
);
return
IOleClientSite_QueryInterface
(
CLIENTSITE
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
ClOleCommandTarget_AddRef
(
IOleCommandTarget
*
iface
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
I
WebBrowser2_AddRef
(
WEBBROWSER
(
This
));
DocHost
*
This
=
OLECMD_THIS
(
iface
);
return
I
OleClientSite_AddRef
(
CLIENTSITE
(
This
));
}
static
ULONG
WINAPI
ClOleCommandTarget_Release
(
IOleCommandTarget
*
iface
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
return
I
WebBrowser2_Release
(
WEBBROWSER
(
This
));
DocHost
*
This
=
OLECMD_THIS
(
iface
);
return
I
OleClientSite_Release
(
CLIENTSITE
(
This
));
}
static
HRESULT
WINAPI
ClOleCommandTarget_QueryStatus
(
IOleCommandTarget
*
iface
,
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
DocHost
*
This
=
OLECMD_THIS
(
iface
);
FIXME
(
"(%p)->(%s %lu %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
cCmds
,
prgCmds
,
pCmdText
);
return
E_NOTIMPL
;
...
...
@@ -240,7 +240,7 @@ static HRESULT WINAPI ClOleCommandTarget_Exec(IOleCommandTarget *iface,
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
{
WebBrowser
*
This
=
OLECMD_THIS
(
iface
);
DocHost
*
This
=
OLECMD_THIS
(
iface
);
FIXME
(
"(%p)->(%s %ld %ld %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
nCmdID
,
nCmdexecopt
,
pvaIn
,
pvaOut
);
return
E_NOTIMPL
;
...
...
@@ -481,7 +481,7 @@ static const IDocHostUIHandler2Vtbl DocHostUIHandler2Vtbl = {
void
WebBrowser_DocHost_Init
(
WebBrowser
*
This
)
{
This
->
doc_host
.
lpDocHostUIHandlerVtbl
=
&
DocHostUIHandler2Vtbl
;
This
->
lpCl
OleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
doc_host
.
lp
OleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
doc_host
.
document
=
NULL
;
This
->
doc_host
.
hostui
=
NULL
;
...
...
dlls/shdocvw/shdocvw.h
View file @
62aa916b
...
...
@@ -58,6 +58,7 @@ typedef struct {
const
IOleInPlaceSiteVtbl
*
lpOleInPlaceSiteVtbl
;
const
IDocHostUIHandler2Vtbl
*
lpDocHostUIHandlerVtbl
;
const
IOleDocumentSiteVtbl
*
lpOleDocumentSiteVtbl
;
const
IOleCommandTargetVtbl
*
lpOleCommandTargetVtbl
;
IDispatch
*
disp
;
...
...
@@ -89,7 +90,6 @@ typedef struct WebBrowser {
/* Interfaces available for embeded document */
const
IOleCommandTargetVtbl
*
lpClOleCommandTargetVtbl
;
const
IDispatchVtbl
*
lpDispatchVtbl
;
const
IServiceProviderVtbl
*
lpClServiceProviderVtbl
;
...
...
@@ -146,7 +146,7 @@ typedef struct WebBrowser {
#define DOCHOSTUI(x) ((IDocHostUIHandler*) &(x)->lpDocHostUIHandlerVtbl)
#define DOCHOSTUI2(x) ((IDocHostUIHandler2*) &(x)->lpDocHostUIHandlerVtbl)
#define DOCSITE(x) ((IOleDocumentSite*) &(x)->lpOleDocumentSiteVtbl)
#define CLOLECMD(x) ((IOleCommandTarget*) &(x)->lp
Cl
OleCommandTargetVtbl)
#define CLOLECMD(x) ((IOleCommandTarget*) &(x)->lpOleCommandTargetVtbl)
#define CLDISP(x) ((IDispatch*) &(x)->lpDispatchVtbl)
#define CLSERVPROV(x) ((IServiceProvider*) &(x)->lpClServiceProviderVtbl)
...
...
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