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
346d5bc7
Commit
346d5bc7
authored
Jun 30, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added beginning IDM_BROWSEMODE implementation.
parent
a9cdb5b8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+7
-0
olecmd.c
dlls/mshtml/olecmd.c
+15
-0
oleobj.c
dlls/mshtml/oleobj.c
+9
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
346d5bc7
...
@@ -47,6 +47,12 @@ typedef struct HTMLDOMNode HTMLDOMNode;
...
@@ -47,6 +47,12 @@ typedef struct HTMLDOMNode HTMLDOMNode;
typedef
struct
ConnectionPoint
ConnectionPoint
;
typedef
struct
ConnectionPoint
ConnectionPoint
;
typedef
struct
BSCallback
BSCallback
;
typedef
struct
BSCallback
BSCallback
;
typedef
enum
{
UNKNOWN_USERMODE
,
BROWSEMODE
,
EDITMODE
}
USERMODE
;
typedef
struct
{
typedef
struct
{
const
IHTMLDocument2Vtbl
*
lpHTMLDocument2Vtbl
;
const
IHTMLDocument2Vtbl
*
lpHTMLDocument2Vtbl
;
const
IHTMLDocument3Vtbl
*
lpHTMLDocument3Vtbl
;
const
IHTMLDocument3Vtbl
*
lpHTMLDocument3Vtbl
;
...
@@ -78,6 +84,7 @@ typedef struct {
...
@@ -78,6 +84,7 @@ typedef struct {
HWND
hwnd
;
HWND
hwnd
;
HWND
tooltips_hwnd
;
HWND
tooltips_hwnd
;
USERMODE
usermode
;
BOOL
in_place_active
;
BOOL
in_place_active
;
BOOL
ui_active
;
BOOL
ui_active
;
BOOL
window_active
;
BOOL
window_active
;
...
...
dlls/mshtml/olecmd.c
View file @
346d5bc7
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "shlguid.h"
#include "shlguid.h"
#include "mshtmdid.h"
#include "mshtmdid.h"
#include "idispids.h"
#include "idispids.h"
#include "mshtmcid.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -237,6 +238,15 @@ static HRESULT exec_get_print_template(HTMLDocument *This, DWORD nCmdexecopt, VA
...
@@ -237,6 +238,15 @@ static HRESULT exec_get_print_template(HTMLDocument *This, DWORD nCmdexecopt, VA
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
exec_browsemode
(
HTMLDocument
*
This
)
{
WARN
(
"(%p)
\n
"
,
This
);
This
->
usermode
=
BROWSEMODE
;
return
S_OK
;
}
static
const
struct
{
static
const
struct
{
OLECMDF
cmdf
;
OLECMDF
cmdf
;
HRESULT
(
*
func
)(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
(
*
func
)(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
...
@@ -374,9 +384,14 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
...
@@ -374,9 +384,14 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
FIXME
(
"unsupported nCmdID %ld of CGID_ShellDocView group
\n
"
,
nCmdID
);
FIXME
(
"unsupported nCmdID %ld of CGID_ShellDocView group
\n
"
,
nCmdID
);
return
OLECMDERR_E_NOTSUPPORTED
;
return
OLECMDERR_E_NOTSUPPORTED
;
}
else
if
(
IsEqualGUID
(
&
CGID_MSHTML
,
pguidCmdGroup
))
{
}
else
if
(
IsEqualGUID
(
&
CGID_MSHTML
,
pguidCmdGroup
))
{
switch
(
nCmdID
)
{
case
IDM_BROWSEMODE
:
return
exec_browsemode
(
This
);
default:
FIXME
(
"unsupported nCmdID %ld of CGID_MSHTML group
\n
"
,
nCmdID
);
FIXME
(
"unsupported nCmdID %ld of CGID_MSHTML group
\n
"
,
nCmdID
);
return
OLECMDERR_E_NOTSUPPORTED
;
return
OLECMDERR_E_NOTSUPPORTED
;
}
}
}
FIXME
(
"Unsupported pguidCmdGroup %s
\n
"
,
debugstr_guid
(
pguidCmdGroup
));
FIXME
(
"Unsupported pguidCmdGroup %s
\n
"
,
debugstr_guid
(
pguidCmdGroup
));
return
OLECMDERR_E_UNKNOWNGROUP
;
return
OLECMDERR_E_UNKNOWNGROUP
;
...
...
dlls/mshtml/oleobj.c
View file @
346d5bc7
...
@@ -76,6 +76,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
...
@@ -76,6 +76,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
if
(
This
->
client
)
{
if
(
This
->
client
)
{
IOleClientSite_Release
(
This
->
client
);
IOleClientSite_Release
(
This
->
client
);
This
->
client
=
NULL
;
This
->
client
=
NULL
;
This
->
usermode
=
UNKNOWN_USERMODE
;
}
}
if
(
This
->
hostui
)
{
if
(
This
->
hostui
)
{
...
@@ -161,7 +162,9 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
...
@@ -161,7 +162,9 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
This
->
client
=
pClientSite
;
This
->
client
=
pClientSite
;
This
->
hostui
=
pDocHostUIHandler
;
This
->
hostui
=
pDocHostUIHandler
;
if
(
This
->
usermode
==
UNKNOWN_USERMODE
)
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_USERMODE
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_USERMODE
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_OFFLINEIFNOTCONNECTED
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_OFFLINEIFNOTCONNECTED
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_SILENT
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_SILENT
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_USERAGENT
);
IOleControl_OnAmbientPropertyChange
(
CONTROL
(
This
),
DISPID_AMBIENT_USERAGENT
);
...
@@ -571,9 +574,11 @@ static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DIS
...
@@ -571,9 +574,11 @@ static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DIS
return
S_OK
;
return
S_OK
;
if
(
V_VT
(
&
res
)
==
VT_BOOL
)
{
if
(
V_VT
(
&
res
)
==
VT_BOOL
)
{
if
(
!
V_BOOL
(
&
res
))
{
if
(
V_BOOL
(
&
res
))
{
This
->
usermode
=
BROWSEMODE
;
}
else
{
FIXME
(
"edit mode is not supported
\n
"
);
FIXME
(
"edit mode is not supported
\n
"
);
hres
=
E_FAIL
;
This
->
usermode
=
EDITMODE
;
}
}
}
else
{
}
else
{
FIXME
(
"V_VT(res)=%d
\n
"
,
V_VT
(
&
res
));
FIXME
(
"V_VT(res)=%d
\n
"
,
V_VT
(
&
res
));
...
@@ -679,6 +684,8 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
...
@@ -679,6 +684,8 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
usermode
=
UNKNOWN_USERMODE
;
This
->
client
=
NULL
;
This
->
client
=
NULL
;
This
->
hostui
=
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