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
c63a5fa8
Commit
c63a5fa8
authored
Dec 16, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: IHTMLDocument2 iface handling clean up.
parent
aec376dc
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
224 additions
and
225 deletions
+224
-225
hlink.c
dlls/mshtml/hlink.c
+3
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+140
-139
htmldoc3.c
dlls/mshtml/htmldoc3.c
+7
-7
htmldoc5.c
dlls/mshtml/htmldoc5.c
+6
-6
htmlelem.c
dlls/mshtml/htmlelem.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+1
-1
htmlframe.c
dlls/mshtml/htmlframe.c
+1
-1
htmlframebase.c
dlls/mshtml/htmlframebase.c
+1
-1
htmliframe.c
dlls/mshtml/htmliframe.c
+1
-1
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-1
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-2
olecmd.c
dlls/mshtml/olecmd.c
+3
-3
oleobj.c
dlls/mshtml/oleobj.c
+18
-18
olewnd.c
dlls/mshtml/olewnd.c
+8
-8
persist.c
dlls/mshtml/persist.c
+19
-20
service.c
dlls/mshtml/service.c
+3
-3
view.c
dlls/mshtml/view.c
+9
-9
No files found.
dlls/mshtml/hlink.c
View file @
c63a5fa8
...
...
@@ -41,19 +41,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static
HRESULT
WINAPI
HlinkTarget_QueryInterface
(
IHlinkTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HLINKTRG_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HlinkTarget_AddRef
(
IHlinkTarget
*
iface
)
{
HTMLDocument
*
This
=
HLINKTRG_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HlinkTarget_Release
(
IHlinkTarget
*
iface
)
{
HTMLDocument
*
This
=
HLINKTRG_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HlinkTarget_SetBrowseContext
(
IHlinkTarget
*
iface
,
IHlinkBrowseContext
*
pihlbc
)
...
...
dlls/mshtml/htmldoc.c
View file @
c63a5fa8
...
...
@@ -39,32 +39,35 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
#define HTMLDOC_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument2, iface)
static
inline
HTMLDocument
*
impl_from_IHTMLDocument2
(
IHTMLDocument2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDocument
,
IHTMLDocument2_iface
);
}
static
HRESULT
WINAPI
HTMLDocument_QueryInterface
(
IHTMLDocument2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDocument_AddRef
(
IHTMLDocument2
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HTMLDocument_Release
(
IHTMLDocument2
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HTMLDocument_GetTypeInfoCount
(
IHTMLDocument2
*
iface
,
UINT
*
pctinfo
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
DISPATCHEX
(
This
),
pctinfo
);
}
...
...
@@ -72,7 +75,7 @@ static HRESULT WINAPI HTMLDocument_GetTypeInfoCount(IHTMLDocument2 *iface, UINT
static
HRESULT
WINAPI
HTMLDocument_GetTypeInfo
(
IHTMLDocument2
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
IDispatchEx_GetTypeInfo
(
DISPATCHEX
(
This
),
iTInfo
,
lcid
,
ppTInfo
);
}
...
...
@@ -81,7 +84,7 @@ static HRESULT WINAPI HTMLDocument_GetIDsOfNames(IHTMLDocument2 *iface, REFIID r
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
DISPATCHEX
(
This
),
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
...
...
@@ -90,7 +93,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
return
IDispatchEx_Invoke
(
DISPATCHEX
(
This
),
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
...
...
@@ -98,7 +101,7 @@ static HRESULT WINAPI HTMLDocument_Invoke(IHTMLDocument2 *iface, DISPID dispIdMe
static
HRESULT
WINAPI
HTMLDocument_get_Script
(
IHTMLDocument2
*
iface
,
IDispatch
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -109,7 +112,7 @@ static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch *
static
HRESULT
WINAPI
HTMLDocument_get_all
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMElement
*
nselem
=
NULL
;
HTMLDOMNode
*
node
;
nsresult
nsres
;
...
...
@@ -142,7 +145,7 @@ static HRESULT WINAPI HTMLDocument_get_all(IHTMLDocument2 *iface, IHTMLElementCo
static
HRESULT
WINAPI
HTMLDocument_get_body
(
IHTMLDocument2
*
iface
,
IHTMLElement
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLElement
*
nsbody
=
NULL
;
HTMLDOMNode
*
node
;
HRESULT
hres
;
...
...
@@ -174,14 +177,14 @@ static HRESULT WINAPI HTMLDocument_get_body(IHTMLDocument2 *iface, IHTMLElement
static
HRESULT
WINAPI
HTMLDocument_get_activeElement
(
IHTMLDocument2
*
iface
,
IHTMLElement
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_images
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
...
...
@@ -204,7 +207,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
HTMLDOC
(
This
)
,
nscoll
);
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
,
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
...
...
@@ -213,7 +216,7 @@ static HRESULT WINAPI HTMLDocument_get_images(IHTMLDocument2 *iface, IHTMLElemen
static
HRESULT
WINAPI
HTMLDocument_get_applets
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
...
...
@@ -236,7 +239,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
HTMLDOC
(
This
)
,
nscoll
);
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
,
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
...
...
@@ -245,7 +248,7 @@ static HRESULT WINAPI HTMLDocument_get_applets(IHTMLDocument2 *iface, IHTMLEleme
static
HRESULT
WINAPI
HTMLDocument_get_links
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
...
...
@@ -268,7 +271,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
HTMLDOC
(
This
)
,
nscoll
);
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
,
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
...
...
@@ -277,7 +280,7 @@ static HRESULT WINAPI HTMLDocument_get_links(IHTMLDocument2 *iface, IHTMLElement
static
HRESULT
WINAPI
HTMLDocument_get_forms
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
...
...
@@ -300,7 +303,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
HTMLDOC
(
This
)
,
nscoll
);
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
,
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
...
...
@@ -309,7 +312,7 @@ static HRESULT WINAPI HTMLDocument_get_forms(IHTMLDocument2 *iface, IHTMLElement
static
HRESULT
WINAPI
HTMLDocument_get_anchors
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
...
...
@@ -332,7 +335,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
HTMLDOC
(
This
)
,
nscoll
);
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
,
nscoll
);
nsIDOMElement_Release
(
nscoll
);
}
...
...
@@ -341,7 +344,7 @@ static HRESULT WINAPI HTMLDocument_get_anchors(IHTMLDocument2 *iface, IHTMLEleme
static
HRESULT
WINAPI
HTMLDocument_put_title
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsAString
nsstr
;
nsresult
nsres
;
...
...
@@ -363,7 +366,7 @@ static HRESULT WINAPI HTMLDocument_put_title(IHTMLDocument2 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLDocument_get_title
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
const
PRUnichar
*
ret
;
nsAString
nsstr
;
nsresult
nsres
;
...
...
@@ -394,21 +397,21 @@ static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_get_scripts
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_designMode
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_designMode
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
static
WCHAR
szOff
[]
=
{
'O'
,
'f'
,
'f'
,
0
};
FIXME
(
"(%p)->(%p) always returning Off
\n
"
,
This
,
p
);
...
...
@@ -422,7 +425,7 @@ static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p
static
HRESULT
WINAPI
HTMLDocument_get_selection
(
IHTMLDocument2
*
iface
,
IHTMLSelectionObject
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsISelection
*
nsselection
;
nsresult
nsres
;
...
...
@@ -439,7 +442,7 @@ static HRESULT WINAPI HTMLDocument_get_selection(IHTMLDocument2 *iface, IHTMLSel
static
HRESULT
WINAPI
HTMLDocument_get_readyState
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
static
const
WCHAR
wszUninitialized
[]
=
{
'u'
,
'n'
,
'i'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
wszLoading
[]
=
{
'l'
,
'o'
,
'a'
,
'd'
,
'i'
,
'n'
,
'g'
,
0
};
...
...
@@ -466,98 +469,98 @@ static HRESULT WINAPI HTMLDocument_get_readyState(IHTMLDocument2 *iface, BSTR *p
static
HRESULT
WINAPI
HTMLDocument_get_frames
(
IHTMLDocument2
*
iface
,
IHTMLFramesCollection2
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_embeds
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_plugins
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_alinkColor
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_alinkColor
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_bgColor
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_bgColor
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_fgColor
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_fgColor
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_linkColor
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_linkColor
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_vlinkColor
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_vlinkColor
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_referrer
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -567,7 +570,7 @@ static HRESULT WINAPI HTMLDocument_get_referrer(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_get_location
(
IHTMLDocument2
*
iface
,
IHTMLLocation
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -581,21 +584,21 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca
static
HRESULT
WINAPI
HTMLDocument_get_lastModified
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_URL
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_URL
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
static
const
WCHAR
about_blank_url
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
...
...
@@ -608,21 +611,21 @@ static HRESULT WINAPI HTMLDocument_get_URL(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_put_domain
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_domain
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_cookie
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
BOOL
bret
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
...
...
@@ -638,7 +641,7 @@ static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLDocument_get_cookie
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
DWORD
size
;
BOOL
bret
;
...
...
@@ -679,98 +682,98 @@ static HRESULT WINAPI HTMLDocument_get_cookie(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_put_expando
(
IHTMLDocument2
*
iface
,
VARIANT_BOOL
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_expando
(
IHTMLDocument2
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_charset
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_charset
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_defaultCharset
(
IHTMLDocument2
*
iface
,
BSTR
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_defaultCharset
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_mimeType
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_fileSize
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_fileCreatedDate
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_fileModifiedDate
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_fileUpdatedDate
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_security
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_protocol
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_nameProp
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
...
...
@@ -827,7 +830,7 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln)
static
HRESULT
WINAPI
HTMLDocument_write
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
psarray
);
...
...
@@ -836,7 +839,7 @@ static HRESULT WINAPI HTMLDocument_write(IHTMLDocument2 *iface, SAFEARRAY *psarr
static
HRESULT
WINAPI
HTMLDocument_writeln
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
psarray
);
...
...
@@ -846,7 +849,7 @@ static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psa
static
HRESULT
WINAPI
HTMLDocument_open
(
IHTMLDocument2
*
iface
,
BSTR
url
,
VARIANT
name
,
VARIANT
features
,
VARIANT
replace
,
IDispatch
**
pomWindowResult
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsresult
nsres
;
static
const
WCHAR
text_htmlW
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'h'
,
't'
,
'm'
,
'l'
,
0
};
...
...
@@ -876,7 +879,7 @@ static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT
static
HRESULT
WINAPI
HTMLDocument_close
(
IHTMLDocument2
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsresult
nsres
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -897,7 +900,7 @@ static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
static
HRESULT
WINAPI
HTMLDocument_clear
(
IHTMLDocument2
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMNSHTMLDocument
*
nsdoc
;
nsresult
nsres
;
...
...
@@ -922,7 +925,7 @@ static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
static
HRESULT
WINAPI
HTMLDocument_queryCommandSupported
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -930,7 +933,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandSupported(IHTMLDocument2 *iface,
static
HRESULT
WINAPI
HTMLDocument_queryCommandEnabled
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -938,7 +941,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandEnabled(IHTMLDocument2 *iface, BS
static
HRESULT
WINAPI
HTMLDocument_queryCommandState
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -946,7 +949,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandState(IHTMLDocument2 *iface, BSTR
static
HRESULT
WINAPI
HTMLDocument_queryCommandIndeterm
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -954,7 +957,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandIndeterm(IHTMLDocument2 *iface, B
static
HRESULT
WINAPI
HTMLDocument_queryCommandText
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
BSTR
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -962,7 +965,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandText(IHTMLDocument2 *iface, BSTR
static
HRESULT
WINAPI
HTMLDocument_queryCommandValue
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -970,7 +973,7 @@ static HRESULT WINAPI HTMLDocument_queryCommandValue(IHTMLDocument2 *iface, BSTR
static
HRESULT
WINAPI
HTMLDocument_execCommand
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
showUI
,
VARIANT
value
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %x %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
showUI
,
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -978,7 +981,7 @@ static HRESULT WINAPI HTMLDocument_execCommand(IHTMLDocument2 *iface, BSTR cmdID
static
HRESULT
WINAPI
HTMLDocument_execCommandShowHelp
(
IHTMLDocument2
*
iface
,
BSTR
cmdID
,
VARIANT_BOOL
*
pfRet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
cmdID
),
pfRet
);
return
E_NOTIMPL
;
}
...
...
@@ -986,7 +989,7 @@ static HRESULT WINAPI HTMLDocument_execCommandShowHelp(IHTMLDocument2 *iface, BS
static
HRESULT
WINAPI
HTMLDocument_createElement
(
IHTMLDocument2
*
iface
,
BSTR
eTag
,
IHTMLElement
**
newElem
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMHTMLElement
*
nselem
;
HTMLElement
*
elem
;
HRESULT
hres
;
...
...
@@ -1009,21 +1012,21 @@ static HRESULT WINAPI HTMLDocument_createElement(IHTMLDocument2 *iface, BSTR eTa
static
HRESULT
WINAPI
HTMLDocument_put_onhelp
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onhelp
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onclick
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1032,7 +1035,7 @@ static HRESULT WINAPI HTMLDocument_put_onclick(IHTMLDocument2 *iface, VARIANT v)
static
HRESULT
WINAPI
HTMLDocument_get_onclick
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1041,21 +1044,21 @@ static HRESULT WINAPI HTMLDocument_get_onclick(IHTMLDocument2 *iface, VARIANT *p
static
HRESULT
WINAPI
HTMLDocument_put_ondblclick
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_ondblclick
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onkeyup
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1064,7 +1067,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
static
HRESULT
WINAPI
HTMLDocument_get_onkeyup
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1073,7 +1076,7 @@ static HRESULT WINAPI HTMLDocument_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p
static
HRESULT
WINAPI
HTMLDocument_put_onkeydown
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1082,7 +1085,7 @@ static HRESULT WINAPI HTMLDocument_put_onkeydown(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_get_onkeydown
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1091,21 +1094,21 @@ static HRESULT WINAPI HTMLDocument_get_onkeydown(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_onkeypress
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onkeypress
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onmouseup
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1114,7 +1117,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseup(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_get_onmouseup
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1123,7 +1126,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseup(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_onmousedown
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->()
\n
"
,
This
);
...
...
@@ -1132,7 +1135,7 @@ static HRESULT WINAPI HTMLDocument_put_onmousedown(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_get_onmousedown
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1141,21 +1144,21 @@ static HRESULT WINAPI HTMLDocument_get_onmousedown(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_put_onmousemove
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onmousemove
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onmouseout
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1164,7 +1167,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseout(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_get_onmouseout
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1173,7 +1176,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseout(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_onmouseover
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -1182,7 +1185,7 @@ static HRESULT WINAPI HTMLDocument_put_onmouseover(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_get_onmouseover
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1191,7 +1194,7 @@ static HRESULT WINAPI HTMLDocument_get_onmouseover(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_put_onreadystatechange
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1200,7 +1203,7 @@ static HRESULT WINAPI HTMLDocument_put_onreadystatechange(IHTMLDocument2 *iface,
static
HRESULT
WINAPI
HTMLDocument_get_onreadystatechange
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1209,49 +1212,49 @@ static HRESULT WINAPI HTMLDocument_get_onreadystatechange(IHTMLDocument2 *iface,
static
HRESULT
WINAPI
HTMLDocument_put_onafterupdate
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onafterupdate
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onrowexit
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onrowexit
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onrowenter
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onrowenter
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_ondragstart
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1260,7 +1263,7 @@ static HRESULT WINAPI HTMLDocument_put_ondragstart(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_get_ondragstart
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1269,7 +1272,7 @@ static HRESULT WINAPI HTMLDocument_get_ondragstart(IHTMLDocument2 *iface, VARIAN
static
HRESULT
WINAPI
HTMLDocument_put_onselectstart
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
...
...
@@ -1278,7 +1281,7 @@ static HRESULT WINAPI HTMLDocument_put_onselectstart(IHTMLDocument2 *iface, VARI
static
HRESULT
WINAPI
HTMLDocument_get_onselectstart
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1288,14 +1291,14 @@ static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARI
static
HRESULT
WINAPI
HTMLDocument_elementFromPoint
(
IHTMLDocument2
*
iface
,
LONG
x
,
LONG
y
,
IHTMLElement
**
elementHit
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%d %d %p)
\n
"
,
This
,
x
,
y
,
elementHit
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_parentWindow
(
IHTMLDocument2
*
iface
,
IHTMLWindow2
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
...
...
@@ -1307,7 +1310,7 @@ static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTML
static
HRESULT
WINAPI
HTMLDocument_get_styleSheets
(
IHTMLDocument2
*
iface
,
IHTMLStyleSheetsCollection
**
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
nsIDOMStyleSheetList
*
nsstylelist
;
nsIDOMDocumentStyle
*
nsdocstyle
;
nsresult
nsres
;
...
...
@@ -1337,35 +1340,35 @@ static HRESULT WINAPI HTMLDocument_get_styleSheets(IHTMLDocument2 *iface,
static
HRESULT
WINAPI
HTMLDocument_put_onbeforeupdate
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onbeforeupdate
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_put_onerrorupdate
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_get_onerrorupdate
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDocument_toString
(
IHTMLDocument2
*
iface
,
BSTR
*
String
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
String
);
return
E_NOTIMPL
;
}
...
...
@@ -1373,7 +1376,7 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
static
HRESULT
WINAPI
HTMLDocument_createStyleSheet
(
IHTMLDocument2
*
iface
,
BSTR
bstrHref
,
LONG
lIndex
,
IHTMLStyleSheet
**
ppnewStyleSheet
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%s %d %p) semi-stub
\n
"
,
This
,
debugstr_w
(
bstrHref
),
lIndex
,
ppnewStyleSheet
);
...
...
@@ -1502,32 +1505,30 @@ static const IHTMLDocument2Vtbl HTMLDocumentVtbl = {
static
void
HTMLDocument_on_advise
(
IUnknown
*
iface
,
cp_static_data_t
*
cp
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
((
IHTMLDocument2
*
)
iface
);
if
(
This
->
window
)
update_cp_events
(
This
->
window
,
&
This
->
doc_node
->
node
.
event_target
,
cp
,
This
->
doc_node
->
node
.
nsnode
);
}
#undef HTMLDOC_THIS
#define SUPPINFO_THIS(iface) DEFINE_THIS(HTMLDocument, SupportErrorInfo, iface)
static
HRESULT
WINAPI
SupportErrorInfo_QueryInterface
(
ISupportErrorInfo
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
SUPPINFO_THIS
(
iface
);
return
IHTMLDocument_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
SupportErrorInfo_AddRef
(
ISupportErrorInfo
*
iface
)
{
HTMLDocument
*
This
=
SUPPINFO_THIS
(
iface
);
return
IHTMLDocument_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
SupportErrorInfo_Release
(
ISupportErrorInfo
*
iface
)
{
HTMLDocument
*
This
=
SUPPINFO_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
SupportErrorInfo_InterfaceSupportsErrorInfo
(
ISupportErrorInfo
*
iface
,
REFIID
riid
)
...
...
@@ -1549,21 +1550,21 @@ static HRESULT WINAPI DocDispatchEx_QueryInterface(IDispatchEx *iface, REFIID ri
{
HTMLDocument
*
This
=
DISPEX_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
DocDispatchEx_AddRef
(
IDispatchEx
*
iface
)
{
HTMLDocument
*
This
=
DISPEX_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
DocDispatchEx_Release
(
IDispatchEx
*
iface
)
{
HTMLDocument
*
This
=
DISPEX_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
DocDispatchEx_GetTypeInfoCount
(
IDispatchEx
*
iface
,
UINT
*
pctinfo
)
...
...
@@ -1703,7 +1704,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOC
(
This
)
;
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
This
);
...
...
@@ -1712,10 +1713,10 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*
ppv
=
DISPATCHEX
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDocument
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDocument, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOC
(
This
)
;
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDocument2
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDocument2, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOC
(
This
)
;
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDocument3
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDocument3, %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOC3
(
This
);
...
...
@@ -1790,7 +1791,7 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*
ppv
=
PERSTRINIT
(
This
);
}
else
if
(
IsEqualGUID
(
&
DIID_DispHTMLDocument
,
riid
))
{
TRACE
(
"(%p)->(DIID_DispHTMLDocument %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOC
(
This
)
;
*
ppv
=
&
This
->
IHTMLDocument2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_ISupportErrorInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_ISupportErrorInfo %p)
\n
"
,
This
,
ppv
);
*
ppv
=
SUPPERRINFO
(
This
);
...
...
@@ -1834,7 +1835,7 @@ static cp_static_data_t HTMLDocumentEvents_data = { HTMLDocumentEvents_tid, HTML
static
void
init_doc
(
HTMLDocument
*
doc
,
IUnknown
*
unk_impl
,
IDispatchEx
*
dispex
)
{
doc
->
lpHTMLDocument2
Vtbl
=
&
HTMLDocumentVtbl
;
doc
->
IHTMLDocument2_iface
.
lp
Vtbl
=
&
HTMLDocumentVtbl
;
doc
->
lpIDispatchExVtbl
=
&
DocDispatchExVtbl
;
doc
->
lpSupportErrorInfoVtbl
=
&
SupportErrorInfoVtbl
;
...
...
@@ -1852,7 +1853,7 @@ static void init_doc(HTMLDocument *doc, IUnknown *unk_impl, IDispatchEx *dispex)
HTMLDocument_Service_Init
(
doc
);
HTMLDocument_Hlink_Init
(
doc
);
ConnectionPointContainer_Init
(
&
doc
->
cp_container
,
(
IUnknown
*
)
HTMLDOC
(
doc
)
);
ConnectionPointContainer_Init
(
&
doc
->
cp_container
,
(
IUnknown
*
)
&
doc
->
IHTMLDocument2_iface
);
ConnectionPoint_Init
(
&
doc
->
cp_dispatch
,
&
doc
->
cp_container
,
&
IID_IDispatch
,
NULL
);
ConnectionPoint_Init
(
&
doc
->
cp_propnotif
,
&
doc
->
cp_container
,
&
IID_IPropertyNotifySink
,
NULL
);
ConnectionPoint_Init
(
&
doc
->
cp_htmldocevents
,
&
doc
->
cp_container
,
&
DIID_HTMLDocumentEvents
,
&
HTMLDocumentEvents_data
);
...
...
@@ -2089,7 +2090,7 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
if
(
!
ref
)
{
if
(
This
->
basedoc
.
doc_node
)
{
This
->
basedoc
.
doc_node
->
basedoc
.
doc_obj
=
NULL
;
IHTMLDocument2_Release
(
HTMLDOC
(
&
This
->
basedoc
.
doc_node
->
basedoc
)
);
htmldoc_release
(
&
This
->
basedoc
.
doc_node
->
basedoc
);
}
if
(
This
->
basedoc
.
window
)
{
This
->
basedoc
.
window
->
doc_obj
=
NULL
;
...
...
@@ -2224,7 +2225,7 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
if
(
nswindow
)
nsIDOMWindow_Release
(
nswindow
);
if
(
FAILED
(
hres
))
{
IHTMLDocument_Release
(
HTMLDOC
(
&
doc
->
basedoc
)
);
htmldoc_release
(
&
doc
->
basedoc
);
return
hres
;
}
...
...
dlls/mshtml/htmldoc3.c
View file @
c63a5fa8
...
...
@@ -41,19 +41,19 @@ static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDocument3_AddRef
(
IHTMLDocument3
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HTMLDocument3_Release
(
IHTMLDocument3
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HTMLDocument3_GetTypeInfoCount
(
IHTMLDocument3
*
iface
,
UINT
*
pctinfo
)
...
...
@@ -372,7 +372,7 @@ static HRESULT WINAPI HTMLDocument3_createDocumentFragment(IHTMLDocument3 *iface
if
(
FAILED
(
hres
))
return
hres
;
*
ppNewDoc
=
HTMLDOC
(
&
docnode
->
basedoc
)
;
*
ppNewDoc
=
&
docnode
->
basedoc
.
IHTMLDocument2_iface
;
return
S_OK
;
}
...
...
@@ -640,19 +640,19 @@ static HRESULT WINAPI HTMLDocument4_QueryInterface(IHTMLDocument4 *iface,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HTMLDOC4_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDocument4_AddRef
(
IHTMLDocument4
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC4_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HTMLDocument4_Release
(
IHTMLDocument4
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC4_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HTMLDocument4_GetTypeInfoCount
(
IHTMLDocument4
*
iface
,
UINT
*
pctinfo
)
...
...
dlls/mshtml/htmldoc5.c
View file @
c63a5fa8
...
...
@@ -40,19 +40,19 @@ static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HTMLDOC5_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDocument5_AddRef
(
IHTMLDocument5
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC5_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HTMLDocument5_Release
(
IHTMLDocument5
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC5_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HTMLDocument5_GetTypeInfoCount
(
IHTMLDocument5
*
iface
,
UINT
*
pctinfo
)
...
...
@@ -308,19 +308,19 @@ static HRESULT WINAPI HTMLDocument6_QueryInterface(IHTMLDocument6 *iface,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
HTMLDOC6_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDocument6_AddRef
(
IHTMLDocument6
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC6_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
HTMLDocument6_Release
(
IHTMLDocument6
*
iface
)
{
HTMLDocument
*
This
=
HTMLDOC6_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
HTMLDocument6_GetTypeInfoCount
(
IHTMLDocument6
*
iface
,
UINT
*
pctinfo
)
...
...
dlls/mshtml/htmlelem.c
View file @
c63a5fa8
...
...
@@ -651,7 +651,7 @@ static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch **
if
(
This
->
node
.
vtbl
->
get_document
)
return
This
->
node
.
vtbl
->
get_document
(
&
This
->
node
,
p
);
*
p
=
(
IDispatch
*
)
HTMLDOC
(
&
This
->
node
.
doc
->
basedoc
)
;
*
p
=
(
IDispatch
*
)
&
This
->
node
.
doc
->
basedoc
.
IHTMLDocument2_iface
;
IDispatch_AddRef
(
*
p
);
return
S_OK
;
}
...
...
dlls/mshtml/htmlevent.c
View file @
c63a5fa8
...
...
@@ -963,7 +963,7 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode
}
call_event_handlers
(
doc
,
event_obj
,
doc
->
node
.
event_target
,
&
doc
->
basedoc
.
cp_container
,
eid
,
(
IDispatch
*
)
HTMLDOC
(
&
doc
->
basedoc
)
);
(
IDispatch
*
)
&
doc
->
basedoc
.
IHTMLDocument2_iface
);
break
;
default:
...
...
dlls/mshtml/htmlframe.c
View file @
c63a5fa8
...
...
@@ -205,7 +205,7 @@ static HRESULT HTMLFrameElement_get_document(HTMLDOMNode *iface, IDispatch **p)
return
S_OK
;
}
*
p
=
(
IDispatch
*
)
HTMLDOC
(
&
This
->
framebase
.
content_window
->
doc
->
basedoc
)
;
*
p
=
(
IDispatch
*
)
&
This
->
framebase
.
content_window
->
doc
->
basedoc
.
IHTMLDocument2_iface
;
IDispatch_AddRef
(
*
p
);
return
S_OK
;
}
...
...
dlls/mshtml/htmlframebase.c
View file @
c63a5fa8
...
...
@@ -478,7 +478,7 @@ static HRESULT WINAPI HTMLFrameBase2_get_readyState(IHTMLFrameBase2 *iface, BSTR
return
E_FAIL
;
}
return
IHTMLDocument2_get_readyState
(
HTMLDOC
(
&
This
->
content_window
->
doc
->
basedoc
)
,
p
);
return
IHTMLDocument2_get_readyState
(
&
This
->
content_window
->
doc
->
basedoc
.
IHTMLDocument2_iface
,
p
);
}
static
HRESULT
WINAPI
HTMLFrameBase2_put_allowTransparency
(
IHTMLFrameBase2
*
iface
,
VARIANT_BOOL
v
)
...
...
dlls/mshtml/htmliframe.c
View file @
c63a5fa8
...
...
@@ -183,7 +183,7 @@ static HRESULT HTMLIFrame_get_document(HTMLDOMNode *iface, IDispatch **p)
return
S_OK
;
}
*
p
=
(
IDispatch
*
)
HTMLDOC
(
&
This
->
framebase
.
content_window
->
doc
->
basedoc
)
;
*
p
=
(
IDispatch
*
)
&
This
->
framebase
.
content_window
->
doc
->
basedoc
.
IHTMLDocument2_iface
;
IDispatch_AddRef
(
*
p
);
return
S_OK
;
}
...
...
dlls/mshtml/htmlnode.c
View file @
c63a5fa8
...
...
@@ -896,7 +896,7 @@ static HRESULT WINAPI HTMLDOMNode2_get_ownerDocument(IHTMLDOMNode2 *iface, IDisp
if
(
This
==
&
This
->
doc
->
node
)
{
*
p
=
NULL
;
}
else
{
*
p
=
(
IDispatch
*
)
HTMLDOC
(
&
This
->
doc
->
basedoc
)
;
*
p
=
(
IDispatch
*
)
&
This
->
doc
->
basedoc
.
IHTMLDocument2_iface
;
IDispatch_AddRef
(
*
p
);
}
return
S_OK
;
...
...
dlls/mshtml/htmlwindow.c
View file @
c63a5fa8
...
...
@@ -990,7 +990,7 @@ static HRESULT WINAPI HTMLWindow2_get_document(IHTMLWindow2 *iface, IHTMLDocumen
if
(
This
->
doc
)
{
/* FIXME: We should return a wrapper object here */
*
p
=
HTMLDOC
(
&
This
->
doc
->
basedoc
)
;
*
p
=
&
This
->
doc
->
basedoc
.
IHTMLDocument2_iface
;
IHTMLDocument2_AddRef
(
*
p
);
}
else
{
*
p
=
NULL
;
...
...
dlls/mshtml/mshtml_private.h
View file @
c63a5fa8
...
...
@@ -342,7 +342,7 @@ struct ConnectionPoint {
};
struct
HTMLDocument
{
const
IHTMLDocument2Vtbl
*
lpHTMLDocument2Vtbl
;
IHTMLDocument2
IHTMLDocument2_iface
;
const
IHTMLDocument3Vtbl
*
lpHTMLDocument3Vtbl
;
const
IHTMLDocument4Vtbl
*
lpHTMLDocument4Vtbl
;
const
IHTMLDocument5Vtbl
*
lpHTMLDocument5Vtbl
;
...
...
@@ -626,7 +626,6 @@ struct HTMLDocumentNode {
#define HTMLWINDOW3(x) ((IHTMLWindow3*) &(x)->lpHTMLWindow3Vtbl)
#define HTMLWINDOW4(x) ((IHTMLWindow4*) &(x)->lpHTMLWindow4Vtbl)
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
#define HTMLDOC3(x) ((IHTMLDocument3*) &(x)->lpHTMLDocument3Vtbl)
#define HTMLDOC4(x) ((IHTMLDocument4*) &(x)->lpHTMLDocument4Vtbl)
#define HTMLDOC5(x) ((IHTMLDocument5*) &(x)->lpHTMLDocument5Vtbl)
...
...
dlls/mshtml/olecmd.c
View file @
c63a5fa8
...
...
@@ -737,19 +737,19 @@ static const cmdtable_t base_cmds[] = {
static
HRESULT
WINAPI
OleCommandTarget_QueryInterface
(
IOleCommandTarget
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleCommandTarget_AddRef
(
IOleCommandTarget
*
iface
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleCommandTarget_Release
(
IOleCommandTarget
*
iface
)
{
HTMLDocument
*
This
=
CMDTARGET_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
query_from_table
(
HTMLDocument
*
This
,
const
cmdtable_t
*
cmdtable
,
OLECMD
*
cmd
)
...
...
dlls/mshtml/oleobj.c
View file @
c63a5fa8
...
...
@@ -47,22 +47,22 @@ DEFINE_OLEGUID(CGID_DocHostCmdPriv, 0x000214D4L, 0, 0);
#define OLEOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleObject, iface)
static
HRESULT
WINAPI
OleObject_QueryInterface
(
IOleObject
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
OleObject_QueryInterface
(
IOleObject
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleObject_AddRef
(
IOleObject
*
iface
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleObject_Release
(
IOleObject
*
iface
)
{
HTMLDocument
*
This
=
OLEOBJ_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
void
update_hostinfo
(
HTMLDocumentObj
*
This
,
DOCHOSTUIINFO
*
hostinfo
)
...
...
@@ -491,22 +491,22 @@ static const IOleObjectVtbl OleObjectVtbl = {
#define OLEDOC_THIS(iface) DEFINE_THIS(HTMLDocument, OleDocument, iface)
static
HRESULT
WINAPI
OleDocument_QueryInterface
(
IOleDocument
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
OleDocument_QueryInterface
(
IOleDocument
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
OLEDOC_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleDocument_AddRef
(
IOleDocument
*
iface
)
{
HTMLDocument
*
This
=
OLEDOC_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleDocument_Release
(
IOleDocument
*
iface
)
{
HTMLDocument
*
This
=
OLEDOC_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleDocument_CreateView
(
IOleDocument
*
iface
,
IOleInPlaceSite
*
pIPSite
,
IStream
*
pstm
,
...
...
@@ -576,19 +576,19 @@ static const IOleDocumentVtbl OleDocumentVtbl = {
static
HRESULT
WINAPI
OleControl_QueryInterface
(
IOleControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleControl_AddRef
(
IOleControl
*
iface
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleControl_Release
(
IOleControl
*
iface
)
{
HTMLDocument
*
This
=
CONTROL_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleControl_GetControlInfo
(
IOleControl
*
iface
,
CONTROLINFO
*
pCI
)
...
...
@@ -755,22 +755,22 @@ static const IOleControlVtbl OleControlVtbl = {
#define OBJSITE_THIS(iface) DEFINE_THIS(HTMLDocument, ObjectWithSite, iface)
static
HRESULT
WINAPI
ObjectWithSite_QueryInterface
(
IObjectWithSite
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
ObjectWithSite_QueryInterface
(
IObjectWithSite
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
OBJSITE_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ObjectWithSite_AddRef
(
IObjectWithSite
*
iface
)
{
HTMLDocument
*
This
=
OBJSITE_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
ObjectWithSite_Release
(
IObjectWithSite
*
iface
)
{
HTMLDocument
*
This
=
OBJSITE_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
ObjectWithSite_SetSite
(
IObjectWithSite
*
iface
,
IUnknown
*
pUnkSite
)
...
...
@@ -805,19 +805,19 @@ static inline HTMLDocument *impl_from_IOleContainer(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
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleContainer_AddRef
(
IOleContainer
*
iface
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleContainer_Release
(
IOleContainer
*
iface
)
{
HTMLDocument
*
This
=
impl_from_IOleContainer
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleContainer_ParseDisplayName
(
IOleContainer
*
iface
,
IBindCtx
*
pbc
,
LPOLESTR
pszDisplayName
,
...
...
dlls/mshtml/olewnd.c
View file @
c63a5fa8
...
...
@@ -41,22 +41,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define ACTOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceActiveObject, iface)
static
HRESULT
WINAPI
OleInPlaceActiveObject_QueryInterface
(
IOleInPlaceActiveObject
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
OleInPlaceActiveObject_QueryInterface
(
IOleInPlaceActiveObject
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
ACTOBJ_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleInPlaceActiveObject_AddRef
(
IOleInPlaceActiveObject
*
iface
)
{
HTMLDocument
*
This
=
ACTOBJ_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleInPlaceActiveObject_Release
(
IOleInPlaceActiveObject
*
iface
)
{
HTMLDocument
*
This
=
ACTOBJ_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleInPlaceActiveObject_GetWindow
(
IOleInPlaceActiveObject
*
iface
,
HWND
*
phwnd
)
...
...
@@ -148,22 +148,22 @@ static const IOleInPlaceActiveObjectVtbl OleInPlaceActiveObjectVtbl = {
#define OLEINPLACEWND_THIS(iface) DEFINE_THIS(HTMLDocument, OleInPlaceObjectWindowless, iface)
static
HRESULT
WINAPI
OleInPlaceObjectWindowless_QueryInterface
(
IOleInPlaceObjectWindowless
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
OLEINPLACEWND_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
OleInPlaceObjectWindowless_AddRef
(
IOleInPlaceObjectWindowless
*
iface
)
{
HTMLDocument
*
This
=
OLEINPLACEWND_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleInPlaceObjectWindowless_Release
(
IOleInPlaceObjectWindowless
*
iface
)
{
HTMLDocument
*
This
=
OLEINPLACEWND_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleInPlaceObjectWindowless_GetWindow
(
IOleInPlaceObjectWindowless
*
iface
,
...
...
dlls/mshtml/persist.c
View file @
c63a5fa8
...
...
@@ -341,23 +341,22 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
#define PERSISTMON_THIS(iface) DEFINE_THIS(HTMLDocument, PersistMoniker, iface)
static
HRESULT
WINAPI
PersistMoniker_QueryInterface
(
IPersistMoniker
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
static
HRESULT
WINAPI
PersistMoniker_QueryInterface
(
IPersistMoniker
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PersistMoniker_AddRef
(
IPersistMoniker
*
iface
)
{
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
PersistMoniker_Release
(
IPersistMoniker
*
iface
)
{
HTMLDocument
*
This
=
PERSISTMON_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
PersistMoniker_GetClassID
(
IPersistMoniker
*
iface
,
CLSID
*
pClassID
)
...
...
@@ -466,22 +465,22 @@ static const IPersistMonikerVtbl PersistMonikerVtbl = {
#define MONPROP_THIS(iface) DEFINE_THIS(HTMLDocument, MonikerProp, iface)
static
HRESULT
WINAPI
MonikerProp_QueryInterface
(
IMonikerProp
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
MonikerProp_QueryInterface
(
IMonikerProp
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
MONPROP_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
MonikerProp_AddRef
(
IMonikerProp
*
iface
)
{
HTMLDocument
*
This
=
MONPROP_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
MonikerProp_Release
(
IMonikerProp
*
iface
)
{
HTMLDocument
*
This
=
MONPROP_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
MonikerProp_PutProperty
(
IMonikerProp
*
iface
,
MONIKERPROPERTY
mkp
,
LPCWSTR
val
)
...
...
@@ -520,22 +519,22 @@ static const IMonikerPropVtbl MonikerPropVtbl = {
#define PERSISTFILE_THIS(iface) DEFINE_THIS(HTMLDocument, PersistFile, iface)
static
HRESULT
WINAPI
PersistFile_QueryInterface
(
IPersistFile
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
PersistFile_QueryInterface
(
IPersistFile
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
PERSISTFILE_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PersistFile_AddRef
(
IPersistFile
*
iface
)
{
HTMLDocument
*
This
=
PERSISTFILE_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
PersistFile_Release
(
IPersistFile
*
iface
)
{
HTMLDocument
*
This
=
PERSISTFILE_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
PersistFile_GetClassID
(
IPersistFile
*
iface
,
CLSID
*
pClassID
)
...
...
@@ -624,19 +623,19 @@ static HRESULT WINAPI PersistStreamInit_QueryInterface(IPersistStreamInit *iface
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PersistStreamInit_AddRef
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
PersistStreamInit_Release
(
IPersistStreamInit
*
iface
)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
PersistStreamInit_GetClassID
(
IPersistStreamInit
*
iface
,
CLSID
*
pClassID
)
...
...
@@ -759,22 +758,22 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl = {
#define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface)
static
HRESULT
WINAPI
PersistHistory_QueryInterface
(
IPersistHistory
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
PersistHistory_QueryInterface
(
IPersistHistory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
PersistHistory_AddRef
(
IPersistHistory
*
iface
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
PersistHistory_Release
(
IPersistHistory
*
iface
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
PersistHistory_GetClassID
(
IPersistHistory
*
iface
,
CLSID
*
pClassID
)
...
...
dlls/mshtml/service.c
View file @
c63a5fa8
...
...
@@ -211,19 +211,19 @@ static IOleUndoManager *create_undomgr(void)
static
HRESULT
WINAPI
ServiceProvider_QueryInterface
(
IServiceProvider
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
SERVPROV_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppv
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ServiceProvider_AddRef
(
IServiceProvider
*
iface
)
{
HTMLDocument
*
This
=
SERVPROV_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
ServiceProvider_Release
(
IServiceProvider
*
iface
)
{
HTMLDocument
*
This
=
SERVPROV_THIS
(
iface
);
return
IHTMLDocument_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
ServiceProvider_QueryService
(
IServiceProvider
*
iface
,
REFGUID
guidService
,
...
...
dlls/mshtml/view.c
View file @
c63a5fa8
...
...
@@ -450,19 +450,19 @@ HRESULT call_set_active_object(IOleInPlaceUIWindow *window, IOleInPlaceActiveObj
static
HRESULT
WINAPI
OleDocumentView_QueryInterface
(
IOleDocumentView
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
HTMLDocument
*
This
=
DOCVIEW_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
)
,
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
OleDocumentView_AddRef
(
IOleDocumentView
*
iface
)
{
HTMLDocument
*
This
=
DOCVIEW_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
OleDocumentView_Release
(
IOleDocumentView
*
iface
)
{
HTMLDocument
*
This
=
DOCVIEW_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
OleDocumentView_SetInPlaceSite
(
IOleDocumentView
*
iface
,
IOleInPlaceSite
*
pIPSite
)
...
...
@@ -504,8 +504,8 @@ static HRESULT WINAPI OleDocumentView_GetDocument(IOleDocumentView *iface, IUnkn
if
(
!
ppunk
)
return
E_INVALIDARG
;
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
*
ppunk
=
(
IUnknown
*
)
HTMLDOC
(
This
)
;
htmldoc_addref
(
This
);
*
ppunk
=
(
IUnknown
*
)
&
This
->
IHTMLDocument2_iface
;
return
S_OK
;
}
...
...
@@ -758,22 +758,22 @@ static const IOleDocumentViewVtbl OleDocumentViewVtbl = {
#define VIEWOBJ_THIS(iface) DEFINE_THIS(HTMLDocument, ViewObjectEx, iface)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObjectEx
*
iface
,
REFIID
riid
,
void
**
ppv
Object
)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObjectEx
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
return
htmldoc_query_interface
(
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ViewObject_AddRef
(
IViewObjectEx
*
iface
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
)
);
return
htmldoc_addref
(
This
);
}
static
ULONG
WINAPI
ViewObject_Release
(
IViewObjectEx
*
iface
)
{
HTMLDocument
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
)
);
return
htmldoc_release
(
This
);
}
static
HRESULT
WINAPI
ViewObject_Draw
(
IViewObjectEx
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
...
...
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