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
6279de21
Commit
6279de21
authored
May 01, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLImgElement stub implementation.
parent
033cade6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
544 additions
and
0 deletions
+544
-0
Makefile.in
dlls/mshtml/Makefile.in
+1
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+3
-0
htmlimg.c
dlls/mshtml/htmlimg.c
+539
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/Makefile.in
View file @
6279de21
...
@@ -21,6 +21,7 @@ C_SRCS = \
...
@@ -21,6 +21,7 @@ C_SRCS = \
htmlelem.c
\
htmlelem.c
\
htmlelem2.c
\
htmlelem2.c
\
htmlevent.c
\
htmlevent.c
\
htmlimg.c
\
htmlinput.c
\
htmlinput.c
\
htmllocation.c
\
htmllocation.c
\
htmlnode.c
\
htmlnode.c
\
...
...
dlls/mshtml/htmlelem.c
View file @
6279de21
...
@@ -1361,6 +1361,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
...
@@ -1361,6 +1361,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
static
const
WCHAR
wszA
[]
=
{
'A'
,
0
};
static
const
WCHAR
wszA
[]
=
{
'A'
,
0
};
static
const
WCHAR
wszBODY
[]
=
{
'B'
,
'O'
,
'D'
,
'Y'
,
0
};
static
const
WCHAR
wszBODY
[]
=
{
'B'
,
'O'
,
'D'
,
'Y'
,
0
};
static
const
WCHAR
wszIMG
[]
=
{
'I'
,
'M'
,
'G'
,
0
};
static
const
WCHAR
wszINPUT
[]
=
{
'I'
,
'N'
,
'P'
,
'U'
,
'T'
,
0
};
static
const
WCHAR
wszINPUT
[]
=
{
'I'
,
'N'
,
'P'
,
'U'
,
'T'
,
0
};
static
const
WCHAR
wszOPTION
[]
=
{
'O'
,
'P'
,
'T'
,
'I'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
wszOPTION
[]
=
{
'O'
,
'P'
,
'T'
,
'I'
,
'O'
,
'N'
,
0
};
static
const
WCHAR
wszSCRIPT
[]
=
{
'S'
,
'C'
,
'R'
,
'I'
,
'P'
,
'T'
,
0
};
static
const
WCHAR
wszSCRIPT
[]
=
{
'S'
,
'C'
,
'R'
,
'I'
,
'P'
,
'T'
,
0
};
...
@@ -1381,6 +1382,8 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
...
@@ -1381,6 +1382,8 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
ret
=
HTMLAnchorElement_Create
(
nselem
);
ret
=
HTMLAnchorElement_Create
(
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszBODY
))
else
if
(
!
strcmpW
(
class_name
,
wszBODY
))
ret
=
HTMLBodyElement_Create
(
nselem
);
ret
=
HTMLBodyElement_Create
(
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszIMG
))
ret
=
HTMLImgElement_Create
(
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszINPUT
))
else
if
(
!
strcmpW
(
class_name
,
wszINPUT
))
ret
=
HTMLInputElement_Create
(
nselem
);
ret
=
HTMLInputElement_Create
(
nselem
);
else
if
(
!
strcmpW
(
class_name
,
wszOPTION
))
else
if
(
!
strcmpW
(
class_name
,
wszOPTION
))
...
...
dlls/mshtml/htmlimg.c
0 → 100644
View file @
6279de21
/*
* Copyright 2008 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "wine/debug.h"
#include "mshtml_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
typedef
struct
{
HTMLElement
element
;
const
IHTMLImgElementVtbl
*
lpHTMLImgElementVtbl
;
}
HTMLImgElement
;
#define HTMLIMG(x) ((IHTMLImgElement*) &(x)->lpHTMLImgElementVtbl)
#define HTMLIMG_THIS(iface) DEFINE_THIS(HTMLImgElement, HTMLImgElement, iface)
static
HRESULT
WINAPI
HTMLImgElement_QueryInterface
(
IHTMLImgElement
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
return
IHTMLDOMNode_QueryInterface
(
HTMLDOMNODE
(
&
This
->
element
.
node
),
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLImgElement_AddRef
(
IHTMLImgElement
*
iface
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
return
IHTMLDOMNode_AddRef
(
HTMLDOMNODE
(
&
This
->
element
.
node
));
}
static
ULONG
WINAPI
HTMLImgElement_Release
(
IHTMLImgElement
*
iface
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
return
IHTMLDOMNode_Release
(
HTMLDOMNODE
(
&
This
->
element
.
node
));
}
static
HRESULT
WINAPI
HTMLImgElement_GetTypeInfoCount
(
IHTMLImgElement
*
iface
,
UINT
*
pctinfo
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pctinfo
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_GetTypeInfo
(
IHTMLImgElement
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_GetIDsOfNames
(
IHTMLImgElement
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s %p %u %u %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_Invoke
(
IHTMLImgElement
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%d %s %d %d %p %p %p %p)
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_isMap
(
IHTMLImgElement
*
iface
,
VARIANT_BOOL
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_isMap
(
IHTMLImgElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_useMap
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_useMap
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_mimeType
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_fileSize
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_fileCreatedDate
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_fileModifiedDate
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_fileUpdatedDate
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_protocol
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_href
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_nameProp
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_border
(
IHTMLImgElement
*
iface
,
VARIANT
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_border
(
IHTMLImgElement
*
iface
,
VARIANT
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_vspace
(
IHTMLImgElement
*
iface
,
long
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_vspace
(
IHTMLImgElement
*
iface
,
long
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_hspace
(
IHTMLImgElement
*
iface
,
long
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_hspace
(
IHTMLImgElement
*
iface
,
long
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_alt
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_alt
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_src
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_src
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_lowsrc
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_lowsrc
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_vrml
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_vrml
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_dynsrc
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_dynsrc
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_readyState
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_complete
(
IHTMLImgElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_loop
(
IHTMLImgElement
*
iface
,
VARIANT
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_loop
(
IHTMLImgElement
*
iface
,
VARIANT
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_align
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_align
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_onload
(
IHTMLImgElement
*
iface
,
VARIANT
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_onload
(
IHTMLImgElement
*
iface
,
VARIANT
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_onerror
(
IHTMLImgElement
*
iface
,
VARIANT
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_onerror
(
IHTMLImgElement
*
iface
,
VARIANT
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_onabort
(
IHTMLImgElement
*
iface
,
VARIANT
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_onabort
(
IHTMLImgElement
*
iface
,
VARIANT
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_name
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_name
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_width
(
IHTMLImgElement
*
iface
,
long
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_width
(
IHTMLImgElement
*
iface
,
long
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_height
(
IHTMLImgElement
*
iface
,
long
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_height
(
IHTMLImgElement
*
iface
,
long
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_put_start
(
IHTMLImgElement
*
iface
,
BSTR
v
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLImgElement_get_start
(
IHTMLImgElement
*
iface
,
BSTR
*
p
)
{
HTMLImgElement
*
This
=
HTMLIMG_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
#undef HTMLIMG_THIS
static
const
IHTMLImgElementVtbl
HTMLImgElementVtbl
=
{
HTMLImgElement_QueryInterface
,
HTMLImgElement_AddRef
,
HTMLImgElement_Release
,
HTMLImgElement_GetTypeInfoCount
,
HTMLImgElement_GetTypeInfo
,
HTMLImgElement_GetIDsOfNames
,
HTMLImgElement_Invoke
,
HTMLImgElement_put_isMap
,
HTMLImgElement_get_isMap
,
HTMLImgElement_put_useMap
,
HTMLImgElement_get_useMap
,
HTMLImgElement_get_mimeType
,
HTMLImgElement_get_fileSize
,
HTMLImgElement_get_fileCreatedDate
,
HTMLImgElement_get_fileModifiedDate
,
HTMLImgElement_get_fileUpdatedDate
,
HTMLImgElement_get_protocol
,
HTMLImgElement_get_href
,
HTMLImgElement_get_nameProp
,
HTMLImgElement_put_border
,
HTMLImgElement_get_border
,
HTMLImgElement_put_vspace
,
HTMLImgElement_get_vspace
,
HTMLImgElement_put_hspace
,
HTMLImgElement_get_hspace
,
HTMLImgElement_put_alt
,
HTMLImgElement_get_alt
,
HTMLImgElement_put_src
,
HTMLImgElement_get_src
,
HTMLImgElement_put_lowsrc
,
HTMLImgElement_get_lowsrc
,
HTMLImgElement_put_vrml
,
HTMLImgElement_get_vrml
,
HTMLImgElement_put_dynsrc
,
HTMLImgElement_get_dynsrc
,
HTMLImgElement_get_readyState
,
HTMLImgElement_get_complete
,
HTMLImgElement_put_loop
,
HTMLImgElement_get_loop
,
HTMLImgElement_put_align
,
HTMLImgElement_get_align
,
HTMLImgElement_put_onload
,
HTMLImgElement_get_onload
,
HTMLImgElement_put_onerror
,
HTMLImgElement_get_onerror
,
HTMLImgElement_put_onabort
,
HTMLImgElement_get_onabort
,
HTMLImgElement_put_name
,
HTMLImgElement_get_name
,
HTMLImgElement_put_width
,
HTMLImgElement_get_width
,
HTMLImgElement_put_height
,
HTMLImgElement_get_height
,
HTMLImgElement_put_start
,
HTMLImgElement_get_start
};
#define HTMLIMG_NODE_THIS(iface) DEFINE_THIS2(HTMLImgElement, element.node, iface)
static
HRESULT
HTMLImgElement_QI
(
HTMLDOMNode
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLImgElement
*
This
=
HTMLIMG_NODE_THIS
(
iface
);
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IHTMLImgElement
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLImgElement %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLIMG
(
This
);
}
else
{
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
void
HTMLImgElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLImgElement
*
This
=
HTMLIMG_NODE_THIS
(
iface
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
#undef HTMLIMG_NODE_THIS
static
const
NodeImplVtbl
HTMLImgElementImplVtbl
=
{
HTMLImgElement_QI
,
HTMLImgElement_destructor
};
HTMLElement
*
HTMLImgElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLImgElement
*
ret
=
heap_alloc_zero
(
sizeof
(
HTMLImgElement
));
ret
->
lpHTMLImgElementVtbl
=
&
HTMLImgElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLImgElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
);
return
&
ret
->
element
;
}
dlls/mshtml/mshtml_private.h
View file @
6279de21
...
@@ -519,6 +519,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode*);
...
@@ -519,6 +519,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode*);
HTMLElement
*
HTMLCommentElement_Create
(
nsIDOMNode
*
);
HTMLElement
*
HTMLCommentElement_Create
(
nsIDOMNode
*
);
HTMLElement
*
HTMLAnchorElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLAnchorElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLBodyElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLBodyElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLImgElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLInputElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLInputElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLOptionElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLOptionElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLScriptElement_Create
(
nsIDOMHTMLElement
*
);
HTMLElement
*
HTMLScriptElement_Create
(
nsIDOMHTMLElement
*
);
...
...
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