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
03585070
Commit
03585070
authored
Aug 13, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added ICustomDoc stub implementation.
parent
b4bbffc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
oleobj.c
dlls/mshtml/oleobj.c
+41
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
03585070
...
...
@@ -113,6 +113,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStreamInit %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
PERSTRINIT
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_ICustomDoc
,
riid
))
{
TRACE
(
"(%p)->(IID_ICustomDoc %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
CUSTOMDOC
(
This
);
}
else
if
(
IsEqualGUID
(
&
DIID_DispHTMLDocument
,
riid
))
{
TRACE
(
"(%p)->(DIID_DispHTMLDocument %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
HTMLDOC
(
This
);
...
...
dlls/mshtml/mshtml_private.h
View file @
03585070
...
...
@@ -112,6 +112,7 @@ struct HTMLDocument {
const
IOleControlVtbl
*
lpOleControlVtbl
;
const
IHlinkTargetVtbl
*
lpHlinkTargetVtbl
;
const
IPersistStreamInitVtbl
*
lpPersistStreamInitVtbl
;
const
ICustomDocVtbl
*
lpCustomDocVtbl
;
LONG
ref
;
...
...
@@ -305,6 +306,7 @@ typedef struct {
#define HLNKTARGET(x) ((IHlinkTarget*) &(x)->lpHlinkTargetVtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
...
...
dlls/mshtml/oleobj.c
View file @
03585070
...
...
@@ -676,6 +676,46 @@ static const IOleControlVtbl OleControlVtbl = {
OleControl_FreezeEvents
};
/**********************************************************
* ICustomDoc implementation
*/
#define CUSTOMDOC_THIS(iface) DEFINE_THIS(HTMLDocument, CustomDoc, iface)
static
HRESULT
WINAPI
CustomDoc_QueryInterface
(
ICustomDoc
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
CUSTOMDOC_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
CustomDoc_AddRef
(
ICustomDoc
*
iface
)
{
HTMLDocument
*
This
=
CUSTOMDOC_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
CustomDoc_Release
(
ICustomDoc
*
iface
)
{
HTMLDocument
*
This
=
CUSTOMDOC_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
CustomDoc_SetUIHandler
(
ICustomDoc
*
iface
,
IDocHostUIHandler
*
pUIHandler
)
{
HTMLDocument
*
This
=
CUSTOMDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pUIHandler
);
return
E_NOTIMPL
;
}
#undef CUSTOMDOC_THIS
static
const
ICustomDocVtbl
CustomDocVtbl
=
{
CustomDoc_QueryInterface
,
CustomDoc_AddRef
,
CustomDoc_Release
,
CustomDoc_SetUIHandler
};
void
HTMLDocument_LockContainer
(
HTMLDocument
*
This
,
BOOL
fLock
)
{
IOleContainer
*
container
;
...
...
@@ -697,6 +737,7 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
This
->
lpOleObjectVtbl
=
&
OleObjectVtbl
;
This
->
lpOleDocumentVtbl
=
&
OleDocumentVtbl
;
This
->
lpOleControlVtbl
=
&
OleControlVtbl
;
This
->
lpCustomDocVtbl
=
&
CustomDocVtbl
;
This
->
usermode
=
UNKNOWN_USERMODE
;
...
...
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