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
2cf2d8fe
Commit
2cf2d8fe
authored
Mar 03, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call Exec(DOCHOST_DOCCANNAVIGATE) from IOleObject::SetClientSite.
parent
80f8a0df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
oleobj.c
dlls/mshtml/oleobj.c
+15
-2
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+3
-3
No files found.
dlls/mshtml/mshtml_private.h
View file @
2cf2d8fe
...
...
@@ -398,7 +398,7 @@ struct HTMLDocumentObj {
BOOL
in_place_active
;
BOOL
ui_active
;
BOOL
window_active
;
BOOL
h
as_key_path
;
BOOL
h
ostui_setup
;
BOOL
container_locked
;
BOOL
focus
;
INT
download_state
;
...
...
dlls/mshtml/oleobj.c
View file @
2cf2d8fe
...
...
@@ -34,9 +34,13 @@
#include "wine/debug.h"
#include "mshtml_private.h"
#include "initguid.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
DEFINE_OLEGUID
(
CGID_DocHostCmdPriv
,
0x000214D4L
,
0
,
0
);
#define DOCHOST_DOCCANNAVIGATE 0
/**********************************************************
* IOleObject implementation
*/
...
...
@@ -92,6 +96,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
IDocHostUIHandler
*
pDocHostUIHandler
=
NULL
;
IOleCommandTarget
*
cmdtrg
=
NULL
;
BOOL
hostui_setup
;
VARIANT
silent
;
HRESULT
hres
;
...
...
@@ -116,6 +121,8 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
if
(
!
pClientSite
)
return
S_OK
;
hostui_setup
=
This
->
doc_obj
->
hostui_setup
;
hres
=
IOleObject_QueryInterface
(
pClientSite
,
&
IID_IDocHostUIHandler
,
(
void
**
)
&
pDocHostUIHandler
);
if
(
SUCCEEDED
(
hres
))
{
DOCHOSTUIINFO
hostinfo
;
...
...
@@ -133,7 +140,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
This
->
doc_obj
->
hostinfo
=
hostinfo
;
}
if
(
!
This
->
doc_obj
->
has_key_path
)
{
if
(
!
hostui_setup
)
{
hres
=
IDocHostUIHandler_GetOptionKeyPath
(
pDocHostUIHandler
,
&
key_path
,
0
);
if
(
hres
==
S_OK
&&
key_path
)
{
if
(
key_path
[
0
])
{
...
...
@@ -157,7 +164,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
IDocHostUIHandler2_Release
(
pDocHostUIHandler2
);
}
This
->
doc_obj
->
h
as_key_path
=
TRUE
;
This
->
doc_obj
->
h
ostui_setup
=
TRUE
;
}
}
...
...
@@ -179,6 +186,12 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
VARIANT
var
;
OLECMD
cmd
=
{
OLECMDID_SETPROGRESSTEXT
,
0
};
if
(
!
hostui_setup
)
{
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
HTMLWINDOW2
(
This
->
window
);
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_DocHostCmdPriv
,
DOCHOST_DOCCANNAVIGATE
,
0
,
&
var
,
NULL
);
}
IOleCommandTarget_QueryStatus
(
cmdtrg
,
NULL
,
1
,
&
cmd
,
NULL
);
V_VT
(
&
var
)
=
VT_I4
;
...
...
dlls/mshtml/tests/htmldoc.c
View file @
2cf2d8fe
...
...
@@ -3142,7 +3142,7 @@ static void test_Load(IPersistMoniker *persist, IMoniker *mon)
CHECK_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
(
GetOverrideKeyPath
);
CHECK_CALLED
(
GetWindow
);
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
@@ -3865,7 +3865,7 @@ static void test_ClientSite(IOleObject *oleobj, DWORD flags)
}
CHECK_CALLED
(
GetWindow
);
if
(
flags
&
CLIENTSITE_EXPECTPATH
)
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
@@ -4987,7 +4987,7 @@ static void test_UIActivate(BOOL do_load, BOOL use_ipsex, BOOL use_ipsw)
CHECK_CALLED
(
GetOptionKeyPath
);
CHECK_CALLED
(
GetOverrideKeyPath
);
CHECK_CALLED
(
GetWindow
);
todo_wine
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
Exec_DOCCANNAVIGATE
);
CHECK_CALLED
(
QueryStatus_SETPROGRESSTEXT
);
CHECK_CALLED
(
Exec_SETPROGRESSMAX
);
CHECK_CALLED
(
Exec_SETPROGRESSPOS
);
...
...
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