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
dc25bca4
Commit
dc25bca4
authored
Dec 15, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IOleContainer stub implementation.
parent
14f2d1b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
oleobj.c
dlls/mshtml/oleobj.c
+55
-0
dom.c
dlls/mshtml/tests/dom.c
+3
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
dc25bca4
...
...
@@ -1818,6 +1818,9 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IObjectWithSite
,
riid
))
{
TRACE
(
"(%p)->(IID_IObjectWithSite %p)
\n
"
,
This
,
ppv
);
*
ppv
=
OBJSITE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleContainer
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleContainer %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IOleContainer_iface
;
}
else
{
return
FALSE
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
dc25bca4
...
...
@@ -365,6 +365,7 @@ struct HTMLDocument {
const
IDispatchExVtbl
*
lpIDispatchExVtbl
;
const
ISupportErrorInfoVtbl
*
lpSupportErrorInfoVtbl
;
const
IObjectWithSiteVtbl
*
lpObjectWithSiteVtbl
;
IOleContainer
IOleContainer_iface
;
IUnknown
*
unk_impl
;
IDispatchEx
*
dispex
;
...
...
dlls/mshtml/oleobj.c
View file @
dc25bca4
...
...
@@ -797,6 +797,60 @@ static const IObjectWithSiteVtbl ObjectWithSiteVtbl = {
ObjectWithSite_GetSite
};
static
inline
HTMLDocument
*
impl_from_IOleContainer
(
IOleContainer
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDocument
,
IOleContainer_iface
);
}
static
HRESULT
WINAPI
OleContainer_QueryInterface
(
IOleContainer
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
OleContainer_AddRef
(
IOleContainer
*
iface
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
OleContainer_Release
(
IOleContainer
*
iface
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
OleContainer_ParseDisplayName
(
IOleContainer
*
iface
,
IBindCtx
*
pbc
,
LPOLESTR
pszDisplayName
,
ULONG
*
pchEaten
,
IMoniker
**
ppmkOut
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
FIXME
(
"(%p)->(%p %s %p %p)
\n
"
,
This
,
pbc
,
debugstr_w
(
pszDisplayName
),
pchEaten
,
ppmkOut
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleContainer_EnumObjects
(
IOleContainer
*
iface
,
DWORD
grfFlags
,
IEnumUnknown
**
ppenum
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
FIXME
(
"(%p)->(%x %p)
\n
"
,
This
,
grfFlags
,
ppenum
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
OleContainer_LockContainer
(
IOleContainer
*
iface
,
BOOL
fLock
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
fLock
);
return
E_NOTIMPL
;
}
static
const
IOleContainerVtbl
OleContainerVtbl
=
{
OleContainer_QueryInterface
,
OleContainer_AddRef
,
OleContainer_Release
,
OleContainer_ParseDisplayName
,
OleContainer_EnumObjects
,
OleContainer_LockContainer
};
void
HTMLDocument_LockContainer
(
HTMLDocumentObj
*
This
,
BOOL
fLock
)
{
IOleContainer
*
container
;
...
...
@@ -819,4 +873,5 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
lpObjectWithSiteVtbl
=
&
ObjectWithSiteVtbl
;
This
->
IOleContainer_iface
.
lpVtbl
=
&
OleContainerVtbl
;
}
dlls/mshtml/tests/dom.c
View file @
dc25bca4
...
...
@@ -125,6 +125,7 @@ static const IID * const doc_node_iids[] = {
&
IID_IDispatchEx
,
&
IID_IConnectionPointContainer
,
&
IID_IInternetHostSecurityManager
,
&
IID_IOleContainer
,
NULL
};
...
...
@@ -137,6 +138,7 @@ static const IID * const doc_obj_iids[] = {
&
IID_IDispatchEx
,
&
IID_IConnectionPointContainer
,
&
IID_ICustomDoc
,
&
IID_IOleContainer
,
NULL
};
...
...
@@ -267,6 +269,7 @@ static const IID * const window_iids[] = {
&
IID_IHTMLWindow2
,
&
IID_IHTMLWindow3
,
&
IID_IDispatchEx
,
&
IID_IServiceProvider
,
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