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
0863625b
Commit
0863625b
authored
Nov 29, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added ICustomDoc::SetUIHandler implementation.
parent
5680cf62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+27
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
0863625b
...
@@ -2087,6 +2087,8 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
...
@@ -2087,6 +2087,8 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
IAdviseSink_Release
(
This
->
view_sink
);
IAdviseSink_Release
(
This
->
view_sink
);
if
(
This
->
client
)
if
(
This
->
client
)
IOleObject_SetClientSite
(
OLEOBJ
(
&
This
->
basedoc
),
NULL
);
IOleObject_SetClientSite
(
OLEOBJ
(
&
This
->
basedoc
),
NULL
);
if
(
This
->
hostui
)
ICustomDoc_SetUIHandler
(
CUSTOMDOC
(
This
),
NULL
);
if
(
This
->
in_place_active
)
if
(
This
->
in_place_active
)
IOleInPlaceObjectWindowless_InPlaceDeactivate
(
INPLACEWIN
(
&
This
->
basedoc
));
IOleInPlaceObjectWindowless_InPlaceDeactivate
(
INPLACEWIN
(
&
This
->
basedoc
));
if
(
This
->
ipsite
)
if
(
This
->
ipsite
)
...
@@ -2114,8 +2116,31 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
...
@@ -2114,8 +2116,31 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
static
HRESULT
WINAPI
CustomDoc_SetUIHandler
(
ICustomDoc
*
iface
,
IDocHostUIHandler
*
pUIHandler
)
static
HRESULT
WINAPI
CustomDoc_SetUIHandler
(
ICustomDoc
*
iface
,
IDocHostUIHandler
*
pUIHandler
)
{
{
HTMLDocumentObj
*
This
=
CUSTOMDOC_THIS
(
iface
);
HTMLDocumentObj
*
This
=
CUSTOMDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pUIHandler
);
IOleCommandTarget
*
cmdtrg
;
return
E_NOTIMPL
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pUIHandler
);
if
(
This
->
custom_hostui
&&
This
->
hostui
==
pUIHandler
)
return
S_OK
;
This
->
custom_hostui
=
TRUE
;
if
(
This
->
hostui
)
IDocHostUIHandler_Release
(
This
->
hostui
);
if
(
pUIHandler
)
IDocHostUIHandler_AddRef
(
pUIHandler
);
This
->
hostui
=
pUIHandler
;
if
(
!
pUIHandler
)
return
S_OK
;
hres
=
IDocHostUIHandler_QueryInterface
(
pUIHandler
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
if
(
SUCCEEDED
(
hres
))
{
FIXME
(
"custom UI handler supports IOleCommandTarget
\n
"
);
IOleCommandTarget_Release
(
cmdtrg
);
}
return
S_OK
;
}
}
#undef CUSTOMDOC_THIS
#undef CUSTOMDOC_THIS
...
...
dlls/mshtml/mshtml_private.h
View file @
0863625b
...
@@ -411,6 +411,7 @@ struct HTMLDocumentObj {
...
@@ -411,6 +411,7 @@ struct HTMLDocumentObj {
IOleClientSite
*
client
;
IOleClientSite
*
client
;
IDocHostUIHandler
*
hostui
;
IDocHostUIHandler
*
hostui
;
BOOL
custom_hostui
;
IOleInPlaceSite
*
ipsite
;
IOleInPlaceSite
*
ipsite
;
IOleInPlaceFrame
*
frame
;
IOleInPlaceFrame
*
frame
;
IOleInPlaceUIWindow
*
ip_window
;
IOleInPlaceUIWindow
*
ip_window
;
...
...
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