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
4f619626
Commit
4f619626
authored
Jul 12, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added stub implementation of IOleCommandTarget.
- Store IDocHostUIHandler in HTMLDocument. - ActivateMe should be called even if GetContainer failed.
parent
1e6fe179
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
4 deletions
+72
-4
htmldoc.c
dlls/mshtml/htmldoc.c
+6
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-0
oleobj.c
dlls/mshtml/oleobj.c
+58
-3
olewnd.c
dlls/mshtml/olewnd.c
+1
-0
persist.c
dlls/mshtml/persist.c
+1
-0
protocol.c
dlls/mshtml/protocol.c
+1
-0
service.c
dlls/mshtml/service.c
+1
-0
view.c
dlls/mshtml/view.c
+1
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
4f619626
...
...
@@ -30,7 +30,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtm
did
.h"
#include "mshtm
hst
.h"
#include "wine/debug.h"
...
...
@@ -97,6 +97,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
}
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
{
TRACE
(
"(%p)->(IID_IServiceProvider, %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
SERVPROV
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleCommandTarget
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCommandTarget, %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
CMDTARGET
(
This
);
}
if
(
*
ppvObject
)
{
...
...
@@ -126,6 +129,8 @@ static ULONG WINAPI HTMLDocument_Release(IHTMLDocument2 *iface)
if
(
!
ref
)
{
if
(
This
->
client
)
IOleClientSite_Release
(
This
->
client
);
if
(
This
->
hostui
)
IDocHostUIHandler_Release
(
This
->
hostui
);
if
(
This
->
ipsite
)
IOleInPlaceSite_Release
(
This
->
ipsite
);
if
(
This
->
frame
)
...
...
dlls/mshtml/mshtml_private.h
View file @
4f619626
...
...
@@ -28,10 +28,12 @@ typedef struct {
const
IViewObject2Vtbl
*
lpViewObject2Vtbl
;
const
IOleInPlaceObjectWindowlessVtbl
*
lpOleInPlaceObjectWindowlessVtbl
;
const
IServiceProviderVtbl
*
lpServiceProviderVtbl
;
const
IOleCommandTargetVtbl
*
lpOleCommandTargetVtbl
;
LONG
ref
;
IOleClientSite
*
client
;
IDocHostUIHandler
*
hostui
;
IOleInPlaceSite
*
ipsite
;
IOleInPlaceFrame
*
frame
;
...
...
@@ -53,6 +55,7 @@ typedef struct {
#define INPLACEOBJ(x) ((IOleInPlaceObject*) &(x)->lpOleInPlaceObjectWindowlessVtbl)
#define INPLACEWIN(x) ((IOleInPlaceObjectWindowless*) &(x)->lpOleInPlaceObjectWindowlessVtbl)
#define SERVPROV(x) ((IServiceProvider*) &(x)->lpServiceProviderVtbl)
#define CMDTARGET(x) ((IOleCommandTarget*) &(x)->lpOleCommandTargetVtbl)
#define DEFINE_THIS(cls,ifc) cls* const This=(cls*)((char*)(iface)-offsetof(cls,lp ## ifc ## Vtbl));
...
...
dlls/mshtml/oleobj.c
View file @
4f619626
...
...
@@ -65,7 +65,7 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
static
HRESULT
WINAPI
OleObject_SetClientSite
(
IOleObject
*
iface
,
IOleClientSite
*
pClientSite
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
IDocHostUIHandler
*
pDocHostUIHandler
;
IDocHostUIHandler
*
pDocHostUIHandler
=
NULL
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClientSite
);
...
...
@@ -73,6 +73,9 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
if
(
This
->
client
)
IOleClientSite_Release
(
This
->
client
);
if
(
This
->
hostui
)
IDocHostUIHandler_Release
(
This
->
hostui
);
if
(
!
pClientSite
)
{
This
->
client
=
NULL
;
return
S_OK
;
...
...
@@ -110,6 +113,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
IOleClientSite_AddRef
(
pClientSite
);
This
->
client
=
pClientSite
;
This
->
hostui
=
pDocHostUIHandler
;
return
S_OK
;
}
...
...
@@ -196,10 +200,10 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
hres
=
IOleClientSite_GetContainer
(
pActiveSite
,
&
pContainer
);
if
(
SUCCEEDED
(
hres
))
{
IOleContainer_LockContainer
(
pContainer
,
TRUE
);
/* FIXME: Create new IOleDocumentView. See CreateView for more info. */
hres
=
IOleDocumentSite_ActivateMe
(
pDocSite
,
DOCVIEW
(
This
));
IOleContainer_Release
(
pContainer
);
}
/* FIXME: Create new IOleDocumentView. See CreateView for more info. */
hres
=
IOleDocumentSite_ActivateMe
(
pDocSite
,
DOCVIEW
(
This
));
IOleDocumentSite_Release
(
pDocSite
);
}
else
{
hres
=
IOleDocumentView_UIActivate
(
DOCVIEW
(
This
),
TRUE
);
...
...
@@ -417,10 +421,61 @@ static const IOleDocumentVtbl OleDocumentVtbl = {
OleDocument_EnumViews
};
/**********************************************************
* IOleCommandTarget implementation
*/
#define CMDTARGET_THIS(iface) (HTMLDocument*)((char*)(iface)-offsetof(HTMLDocument,lpOleCommandTargetVtbl))
static
HRESULT
WINAPI
OleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
OleCommandTarget_AddRef
(
IOleCommandTarget
*
iface
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
OleCommandTarget_Release
(
IOleCommandTarget
*
iface
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
OleCommandTarget_QueryStatus
(
IOleCommandTarget
*
iface
,
const
GUID
*
pguidCmdGroup
,
ULONG
cCmds
,
OLECMD
prgCmds
[],
OLECMDTEXT
*
pCmdText
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
FIXME
(
"(%p)->(%s %ld %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
cCmds
,
prgCmds
,
pCmdText
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleCommandTarget_Exec
(
IOleCommandTarget
*
iface
,
const
GUID
*
pguidCmdGroup
,
DWORD
nCmdID
,
DWORD
nCmdexecopt
,
VARIANT
*
pvaIn
,
VARIANT
*
pvaOut
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
FIXME
(
"(%p)->(%s %ld %ld %p %p)
\n
"
,
This
,
debugstr_guid
(
pguidCmdGroup
),
nCmdID
,
nCmdexecopt
,
pvaIn
,
pvaOut
);
return
E_NOTIMPL
;
}
static
const
IOleCommandTargetVtbl
OleCommandTargetVtbl
=
{
OleCommandTarget_QueryInterface
,
OleCommandTarget_AddRef
,
OleCommandTarget_Release
,
OleCommandTarget_QueryStatus
,
OleCommandTarget_Exec
};
void
HTMLDocument_OleObj_Init
(
HTMLDocument
*
This
)
{
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
client
=
NULL
;
This
->
hostui
=
NULL
;
}
dlls/mshtml/olewnd.c
View file @
4f619626
...
...
@@ -30,6 +30,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
dlls/mshtml/persist.c
View file @
4f619626
...
...
@@ -30,6 +30,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
dlls/mshtml/protocol.c
View file @
4f619626
...
...
@@ -30,6 +30,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtmhst.h"
#include "wine/debug.h"
#include "wine/unicode.h"
...
...
dlls/mshtml/service.c
View file @
4f619626
...
...
@@ -30,6 +30,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
dlls/mshtml/view.c
View file @
4f619626
...
...
@@ -31,6 +31,7 @@
#include "docobj.h"
#include "mshtml.h"
#include "mshtmhst.h"
#include "wine/debug.h"
...
...
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