mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
sync mshtml and shdocvw with wine 1.1.20
svn path=/trunk/; revision=40735
This commit is contained in:
parent
37e57ebf2f
commit
f957e3e92f
48 changed files with 1875 additions and 889 deletions
|
@ -21,6 +21,8 @@
|
|||
|
||||
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
|
||||
|
||||
#pragma code_page(65001)
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
{
|
||||
IDS_HTMLDISABLED "Die HTML-Darstellung ist zur Zeit ausgeschaltet."
|
||||
|
@ -36,7 +38,7 @@ FONT 8, "MS Shell Dlg"
|
|||
{
|
||||
LTEXT "Diese Anwendung versucht, eine HTML-Seite anzuzeigen. Wine muss " \
|
||||
"Gecko (Mozilla HTML-Bibliothek) installieren um die Seite " \
|
||||
"anzuzeigen. Klicken Sie auf „Installieren“, um Gecko automatisch " \
|
||||
"anzuzeigen. Klicken Sie auf „Installieren“, um Gecko automatisch " \
|
||||
"herunterzuladen und zu installieren.", ID_DWL_STATUS, 10, 10, 240, 40, SS_LEFT
|
||||
CONTROL "Fortschritt", ID_DWL_PROGRESS, PROGRESS_CLASSA, WS_BORDER|PBS_SMOOTH, 10, 50, 240, 12
|
||||
DEFPUSHBUTTON "&Installieren", ID_DWL_INSTALL, 200, 70, 50, 15, WS_GROUP | WS_TABSTOP
|
||||
|
@ -56,3 +58,16 @@ FONT 8, "MS Shell Dlg"
|
|||
PUSHBUTTON "OK", IDOK, 200, 10, 45, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Abbrechen", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "OK", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Abbrechen", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
#pragma code_page(default)
|
||||
|
|
|
@ -53,3 +53,14 @@ FONT 8, "MS Shell Dlg"
|
|||
PUSHBUTTON "OK", IDOK, 200, 10, 45, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Cancel", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "OK", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Cancel", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
|
|
@ -32,10 +32,10 @@ STRINGTABLE DISCARDABLE
|
|||
|
||||
ID_DWL_DIALOG DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 260, 95
|
||||
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Programme d'installation de Gecko de Wine"
|
||||
CAPTION "Programme d'installation de Gecko pour Wine"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "Cette application essaie d'afficher une page HTML. Wine requiert la présence du moteur de rendu Gecko de Mozilla" \
|
||||
LTEXT "Cette application essaie d'afficher une page HTML. Wine requiert la présence du moteur de rendu Gecko de Mozilla " \
|
||||
"pour afficher cette page. Cliquez sur Installer si vous souhaitez que Wine " \
|
||||
"télécharge et installe automatiquement Gecko.", ID_DWL_STATUS, 10, 10, 240, 40, SS_LEFT
|
||||
CONTROL "Progression", ID_DWL_PROGRESS, PROGRESS_CLASSA, WS_BORDER|PBS_SMOOTH, 10, 50, 240, 12
|
||||
|
|
|
@ -54,3 +54,14 @@ FONT 9, "MS Shell Dlg"
|
|||
PUSHBUTTON "확인", IDOK, 200, 10, 45, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "취소", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "È®ÀÎ", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Ãë¼Ò", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
|
|
@ -56,4 +56,15 @@ FONT 8, "MS Shell Dlg"
|
|||
PUSHBUTTON "Atsisakyti", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Gerai", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Atsisakyti", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
#pragma code_page(default)
|
||||
|
|
|
@ -56,3 +56,14 @@ FONT 8, "MS Shell Dlg"
|
|||
PUSHBUTTON "OK", IDOK, 200, 10, 45, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Annuleren", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "OK", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Annuleren", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
|
|
@ -55,4 +55,15 @@ FONT 8, "MS Shell Dlg"
|
|||
PUSHBUTTON "Renunță", IDCANCEL, 200, 28, 45, 14, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
ID_PROMPT_DIALOG DIALOG 0, 0, 200, 90
|
||||
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION ""
|
||||
FONT 8, "MS Shell Dlg"
|
||||
{
|
||||
LTEXT "", ID_PROMPT_PROMPT, 10, 10, 180, 30
|
||||
EDITTEXT ID_PROMPT_EDIT, 10, 45, 180, 14, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "OK", IDOK, 40, 65, 45, 15, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
|
||||
PUSHBUTTON "Renunță", IDCANCEL, 115, 65, 45, 15, WS_GROUP | WS_TABSTOP
|
||||
}
|
||||
|
||||
#pragma code_page(default)
|
||||
|
|
|
@ -88,6 +88,9 @@ static REFIID tid_ids[] = {
|
|||
&IID_IHTMLBodyElement2,
|
||||
&IID_IHTMLCommentElement,
|
||||
&IID_IHTMLCurrentStyle,
|
||||
&IID_IHTMLCurrentStyle2,
|
||||
&IID_IHTMLCurrentStyle3,
|
||||
&IID_IHTMLCurrentStyle4,
|
||||
&IID_IHTMLDocument2,
|
||||
&IID_IHTMLDocument3,
|
||||
&IID_IHTMLDocument4,
|
||||
|
@ -111,6 +114,8 @@ static REFIID tid_ids[] = {
|
|||
&IID_IHTMLSelectElement,
|
||||
&IID_IHTMLStyle,
|
||||
&IID_IHTMLStyle2,
|
||||
&IID_IHTMLStyle3,
|
||||
&IID_IHTMLStyle4,
|
||||
&IID_IHTMLTable,
|
||||
&IID_IHTMLTableRow,
|
||||
&IID_IHTMLTextContainer,
|
||||
|
|
|
@ -107,14 +107,14 @@ static HRESULT WINAPI HTMLCommentElement_get_text(IHTMLCommentElement *iface, BS
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_put_atomic(IHTMLCommentElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLCommentElement_put_atomic(IHTMLCommentElement *iface, LONG v)
|
||||
{
|
||||
HTMLCommentElement *This = HTMLCOMMENT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCommentElement_get_atomic(IHTMLCommentElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLCommentElement_get_atomic(IHTMLCommentElement *iface, LONG *p)
|
||||
{
|
||||
HTMLCommentElement *This = HTMLCOMMENT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -216,8 +216,8 @@ static HRESULT WINAPI HTMLCurrentStyle_get_backgroundPositionY(IHTMLCurrentStyle
|
|||
static HRESULT WINAPI HTMLCurrentStyle_get_backgroundRepeat(IHTMLCurrentStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr(This->nsstyle, STYLEID_BACKGROUND_REPEAT, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCurrentStyle_get_borderLeftColor(IHTMLCurrentStyle *iface, VARIANT *p)
|
||||
|
@ -456,8 +456,8 @@ static HRESULT WINAPI HTMLCurrentStyle_get_marginBottom(IHTMLCurrentStyle *iface
|
|||
static HRESULT WINAPI HTMLCurrentStyle_get_marginLeft(IHTMLCurrentStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_MARGIN_LEFT, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCurrentStyle_get_clear(IHTMLCurrentStyle *iface, BSTR *p)
|
||||
|
@ -709,15 +709,15 @@ static HRESULT WINAPI HTMLCurrentStyle_get_layoutGridType(IHTMLCurrentStyle *ifa
|
|||
static HRESULT WINAPI HTMLCurrentStyle_get_borderStyle(IHTMLCurrentStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr(This->nsstyle, STYLEID_BORDER_STYLE, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCurrentStyle_get_borderColor(IHTMLCurrentStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLCurrentStyle *This = HTMLCURSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr(This->nsstyle, STYLEID_BORDER_COLOR, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLCurrentStyle_get_borderWidth(IHTMLCurrentStyle *iface, BSTR *p)
|
||||
|
@ -874,6 +874,9 @@ static const IHTMLCurrentStyleVtbl HTMLCurrentStyleVtbl = {
|
|||
|
||||
static const tid_t HTMLCurrentStyle_iface_tids[] = {
|
||||
IHTMLCurrentStyle_tid,
|
||||
IHTMLCurrentStyle2_tid,
|
||||
IHTMLCurrentStyle3_tid,
|
||||
IHTMLCurrentStyle4_tid,
|
||||
0
|
||||
};
|
||||
static dispex_static_data_t HTMLCurrentStyle_dispex = {
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "ole2.h"
|
||||
#include "perhist.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
||||
|
@ -132,6 +133,9 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
|
|||
}else if(IsEqualGUID(&IID_ISupportErrorInfo, riid)) {
|
||||
TRACE("(%p)->(IID_ISupportErrorInfo %p)\n", This, ppvObject);
|
||||
*ppvObject = SUPPERRINFO(This);
|
||||
}else if(IsEqualGUID(&IID_IPersistHistory, riid)) {
|
||||
TRACE("(%p)->(IID_IPersistHistory %p)\n", This, ppvObject);
|
||||
*ppvObject = PERSISTHIST(This);
|
||||
}else if(IsEqualGUID(&CLSID_CMarkup, riid)) {
|
||||
FIXME("(%p)->(CLSID_CMarkup %p)\n", This, ppvObject);
|
||||
return E_NOINTERFACE;
|
||||
|
@ -1362,11 +1366,11 @@ static HRESULT WINAPI HTMLDocument_get_onselectstart(IHTMLDocument2 *iface, VARI
|
|||
return get_doc_event(This, EVENTID_SELECTSTART, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, long x, long y,
|
||||
static HRESULT WINAPI HTMLDocument_elementFromPoint(IHTMLDocument2 *iface, LONG x, LONG y,
|
||||
IHTMLElement **elementHit)
|
||||
{
|
||||
HTMLDocument *This = HTMLDOC_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld %p)\n", This, x, y, elementHit);
|
||||
FIXME("(%p)->(%d %d %p)\n", This, x, y, elementHit);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1448,11 +1452,11 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
|
||||
long lIndex, IHTMLStyleSheet **ppnewStyleSheet)
|
||||
LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
|
||||
{
|
||||
HTMLDocument *This = HTMLDOC_THIS(iface);
|
||||
|
||||
FIXME("(%p)->(%s %ld %p) semi-stub\n", This, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
|
||||
FIXME("(%p)->(%s %d %p) semi-stub\n", This, debugstr_w(bstrHref), lIndex, ppnewStyleSheet);
|
||||
|
||||
*ppnewStyleSheet = HTMLStyleSheet_Create(NULL);
|
||||
return S_OK;
|
||||
|
|
|
@ -678,7 +678,7 @@ static HRESULT WINAPI HTMLElement_contains(IHTMLElement *iface, IHTMLElement *pC
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_get_sourceIndex(IHTMLElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement_get_sourceIndex(IHTMLElement *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -706,14 +706,14 @@ static HRESULT WINAPI HTMLElement_get_lang(IHTMLElement *iface, BSTR *p)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement_get_offsetLeft(IHTMLElement *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
nsIDOMNSHTMLElement *nselem;
|
||||
|
@ -739,7 +739,7 @@ static HRESULT WINAPI HTMLElement_get_offsetTop(IHTMLElement *iface, long *p)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
nsIDOMNSHTMLElement *nselem;
|
||||
|
@ -765,7 +765,7 @@ static HRESULT WINAPI HTMLElement_get_offsetWidth(IHTMLElement *iface, long *p)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement_get_offsetHeight(IHTMLElement *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
nsIDOMNSHTMLElement *nselem;
|
||||
|
@ -833,8 +833,37 @@ static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
|
|||
static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
nsIDOMNSHTMLElement *nselem;
|
||||
nsAString html_str;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
if(!This->nselem) {
|
||||
FIXME("NULL nselem\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
|
||||
if(NS_FAILED(nsres)) {
|
||||
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
nsAString_Init(&html_str, NULL);
|
||||
nsres = nsIDOMNSHTMLElement_GetInnerHTML(nselem, &html_str);
|
||||
if(NS_SUCCEEDED(nsres)) {
|
||||
const PRUnichar *html;
|
||||
|
||||
nsAString_GetData(&html_str, &html);
|
||||
*p = *html ? SysAllocString(html) : NULL;
|
||||
}else {
|
||||
FIXME("SetInnerHtml failed %08x\n", nsres);
|
||||
*p = NULL;
|
||||
}
|
||||
|
||||
nsAString_Finish(&html_str);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement_put_innerText(IHTMLElement *iface, BSTR v)
|
||||
|
|
|
@ -120,10 +120,10 @@ static HRESULT WINAPI HTMLElement2_get_onlosecapture(IHTMLElement2 *iface, VARIA
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_componentFromPoint(IHTMLElement2 *iface,
|
||||
long x, long y, BSTR *component)
|
||||
LONG x, LONG y, BSTR *component)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld %p)\n", This, x, y, component);
|
||||
FIXME("(%p)->(%d %d %p)\n", This, x, y, component);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ static HRESULT WINAPI HTMLElement2_removeFilter(IHTMLElement2 *iface, IUnknown *
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -566,7 +566,7 @@ static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, long *
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -587,14 +587,14 @@ static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, long *p
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -724,7 +724,7 @@ static HRESULT WINAPI HTMLElement2_createControlRange(IHTMLElement2 *iface, IDis
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -744,12 +744,12 @@ static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, long *
|
|||
}
|
||||
|
||||
*p = height == -1 ? 0 : height;
|
||||
TRACE("*p = %ld\n", *p);
|
||||
TRACE("*p = %d\n", *p);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -769,18 +769,18 @@ static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, long *p
|
|||
}
|
||||
|
||||
*p = width;
|
||||
TRACE("*p = %ld\n", *p);
|
||||
TRACE("*p = %d\n", *p);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, long v)
|
||||
static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, LONG v)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
if(!This->nselem) {
|
||||
FIXME("NULL nselem\n");
|
||||
|
@ -798,7 +798,7 @@ static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, long v)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -818,18 +818,18 @@ static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, long *p)
|
|||
}
|
||||
|
||||
*p = top;
|
||||
TRACE("*p = %ld\n", *p);
|
||||
TRACE("*p = %d\n", *p);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, long v)
|
||||
static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, LONG v)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
if(!This->nselem) {
|
||||
FIXME("NULL nselem\n");
|
||||
|
@ -847,7 +847,7 @@ static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, long v)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
nsIDOMNSElement *nselem;
|
||||
|
@ -875,7 +875,7 @@ static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, long *p)
|
|||
}
|
||||
|
||||
*p = left;
|
||||
TRACE("*p = %ld\n", *p);
|
||||
TRACE("*p = %d\n", *p);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -947,18 +947,18 @@ static HRESULT WINAPI HTMLElement2_get_canHandleChildren(IHTMLElement2 *iface, V
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_addBehavior(IHTMLElement2 *iface, BSTR bstrUrl,
|
||||
VARIANT *pvarFactory, long *pCookie)
|
||||
VARIANT *pvarFactory, LONG *pCookie)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(bstrUrl), pvarFactory, pCookie);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, long cookie,
|
||||
static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, LONG cookie,
|
||||
VARIANT_BOOL *pfResult)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %p)\n", This, cookie, pfResult);
|
||||
FIXME("(%p)->(%d %p)\n", This, cookie, pfResult);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1004,7 +1004,7 @@ static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus(IHTMLElement2 *iface, V
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, LONG *p)
|
||||
{
|
||||
HTMLElement *This = HTMLELEM2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -178,15 +178,15 @@ static HRESULT WINAPI HTMLElementCollection_toString(IHTMLElementCollection *ifa
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElementCollection_put_length(IHTMLElementCollection *iface,
|
||||
long v)
|
||||
LONG v)
|
||||
{
|
||||
HTMLElementCollection *This = ELEMCOL_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLElementCollection_get_length(IHTMLElementCollection *iface,
|
||||
long *p)
|
||||
LONG *p)
|
||||
{
|
||||
HTMLElementCollection *This = ELEMCOL_THIS(iface);
|
||||
|
||||
|
|
|
@ -289,21 +289,21 @@ static HRESULT WINAPI HTMLEventObj_get_toElement(IHTMLEventObj *iface, IHTMLElem
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_put_keyCode(IHTMLEventObj *iface, long v)
|
||||
static HRESULT WINAPI HTMLEventObj_put_keyCode(IHTMLEventObj *iface, LONG v)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -324,63 +324,63 @@ static HRESULT WINAPI HTMLEventObj_get_qualifier(IHTMLEventObj *iface, BSTR *p)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_reason(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_reason(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_x(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_x(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_y(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_y(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_clientX(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_clientX(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_clientY(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_clientY(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_offsetX(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_offsetX(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_offsetY(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_offsetY(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_screenX(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_screenX(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_screenY(IHTMLEventObj *iface, long *p)
|
||||
static HRESULT WINAPI HTMLEventObj_get_screenY(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -192,28 +192,28 @@ static HRESULT WINAPI HTMLImgElement_get_border(IHTMLImgElement *iface, VARIANT
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_put_vspace(IHTMLImgElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLImgElement_put_vspace(IHTMLImgElement *iface, LONG v)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_get_vspace(IHTMLImgElement *iface, long *p)
|
||||
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)
|
||||
static HRESULT WINAPI HTMLImgElement_put_hspace(IHTMLImgElement *iface, LONG v)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_get_hspace(IHTMLImgElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLImgElement_get_hspace(IHTMLImgElement *iface, LONG *p)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -441,28 +441,28 @@ static HRESULT WINAPI HTMLImgElement_get_name(IHTMLImgElement *iface, BSTR *p)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_put_width(IHTMLImgElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLImgElement_put_width(IHTMLImgElement *iface, LONG v)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_get_width(IHTMLImgElement *iface, long *p)
|
||||
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)
|
||||
static HRESULT WINAPI HTMLImgElement_put_height(IHTMLImgElement *iface, LONG v)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLImgElement_get_height(IHTMLImgElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLImgElement_get_height(IHTMLImgElement *iface, LONG *p)
|
||||
{
|
||||
HTMLImgElement *This = HTMLIMG_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -257,28 +257,28 @@ static HRESULT WINAPI HTMLInputElement_get_form(IHTMLInputElement *iface, IHTMLF
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_size(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_size(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_size(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_size(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_maxLength(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_maxLength(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_maxLength(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_maxLength(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -461,28 +461,28 @@ static HRESULT WINAPI HTMLInputElement_get_border(IHTMLInputElement *iface, VARI
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_vspace(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_vspace(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_vspace(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_vspace(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_hspace(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_hspace(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_hspace(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_hspace(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -643,28 +643,28 @@ static HRESULT WINAPI HTMLInputElement_get_onabort(IHTMLInputElement *iface, VAR
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_width(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_width(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_width(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_width(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_put_height(IHTMLInputElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputElement_put_height(IHTMLInputElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputElement_get_height(IHTMLInputElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputElement_get_height(IHTMLInputElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -919,16 +919,16 @@ static HRESULT WINAPI HTMLInputTextElement_get_defaultValue(IHTMLInputTextElemen
|
|||
return IHTMLInputElement_get_defaultValue(HTMLINPUT(This), p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputTextElement_put_size(IHTMLInputTextElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputTextElement_put_size(IHTMLInputTextElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUTTEXT_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
return IHTMLInputElement_put_size(HTMLINPUT(This), v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputTextElement_get_size(IHTMLInputTextElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputTextElement_get_size(IHTMLInputTextElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUTTEXT_THIS(iface);
|
||||
|
||||
|
@ -937,16 +937,16 @@ static HRESULT WINAPI HTMLInputTextElement_get_size(IHTMLInputTextElement *iface
|
|||
return IHTMLInputElement_get_size(HTMLINPUT(This), p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputTextElement_put_maxLength(IHTMLInputTextElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLInputTextElement_put_maxLength(IHTMLInputTextElement *iface, LONG v)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUTTEXT_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
return IHTMLInputElement_put_maxLength(HTMLINPUT(This), v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLInputTextElement_get_maxLength(IHTMLInputTextElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLInputTextElement_get_maxLength(IHTMLInputTextElement *iface, LONG *p)
|
||||
{
|
||||
HTMLInputElement *This = HTMLINPUTTEXT_THIS(iface);
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ static HRESULT WINAPI HTMLDOMChildrenCollection_Invoke(IHTMLDOMChildrenCollectio
|
|||
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMChildrenCollection_get_length(IHTMLDOMChildrenCollection *iface, long *p)
|
||||
static HRESULT WINAPI HTMLDOMChildrenCollection_get_length(IHTMLDOMChildrenCollection *iface, LONG *p)
|
||||
{
|
||||
HTMLDOMChildrenCollection *This = HTMLCHILDCOL_THIS(iface);
|
||||
PRUint32 length=0;
|
||||
|
@ -148,14 +148,14 @@ static HRESULT WINAPI HTMLDOMChildrenCollection__newEnum(IHTMLDOMChildrenCollect
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMChildrenCollection_item(IHTMLDOMChildrenCollection *iface, long index, IDispatch **ppItem)
|
||||
static HRESULT WINAPI HTMLDOMChildrenCollection_item(IHTMLDOMChildrenCollection *iface, LONG index, IDispatch **ppItem)
|
||||
{
|
||||
HTMLDOMChildrenCollection *This = HTMLCHILDCOL_THIS(iface);
|
||||
nsIDOMNode *nsnode = NULL;
|
||||
PRUint32 length=0;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld %p)\n", This, index, ppItem);
|
||||
TRACE("(%p)->(%d %p)\n", This, index, ppItem);
|
||||
|
||||
nsIDOMNodeList_GetLength(This->nslist, &length);
|
||||
if(index < 0 || index >= length)
|
||||
|
@ -338,7 +338,7 @@ static HRESULT WINAPI HTMLDOMNode_Invoke(IHTMLDOMNode *iface, DISPID dispIdMembe
|
|||
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, long *p)
|
||||
static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, LONG *p)
|
||||
{
|
||||
HTMLDOMNode *This = HTMLDOMNODE_THIS(iface);
|
||||
PRUint16 type = -1;
|
||||
|
|
|
@ -100,14 +100,14 @@ static HRESULT WINAPI HTMLSelectElement_Invoke(IHTMLSelectElement *iface, DISPID
|
|||
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_put_size(IHTMLSelectElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLSelectElement_put_size(IHTMLSelectElement *iface, LONG v)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_get_size(IHTMLSelectElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLSelectElement_get_size(IHTMLSelectElement *iface, LONG *p)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -190,12 +190,12 @@ static HRESULT WINAPI HTMLSelectElement_get_onchange(IHTMLSelectElement *iface,
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_put_selectedIndex(IHTMLSelectElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLSelectElement_put_selectedIndex(IHTMLSelectElement *iface, LONG v)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
nsres = nsIDOMHTMLSelectElement_SetSelectedIndex(This->nsselect, v);
|
||||
if(NS_FAILED(nsres))
|
||||
|
@ -204,7 +204,7 @@ static HRESULT WINAPI HTMLSelectElement_put_selectedIndex(IHTMLSelectElement *if
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_get_selectedIndex(IHTMLSelectElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLSelectElement_get_selectedIndex(IHTMLSelectElement *iface, LONG *p)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
PRInt32 idx = 0;
|
||||
|
@ -336,21 +336,21 @@ static HRESULT WINAPI HTMLSelectElement_add(IHTMLSelectElement *iface, IHTMLElem
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_remove(IHTMLSelectElement *iface, long index)
|
||||
static HRESULT WINAPI HTMLSelectElement_remove(IHTMLSelectElement *iface, LONG index)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, index);
|
||||
FIXME("(%p)->(%d)\n", This, index);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_put_length(IHTMLSelectElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLSelectElement_put_length(IHTMLSelectElement *iface, LONG v)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLSelectElement_get_length(IHTMLSelectElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLSelectElement_get_length(IHTMLSelectElement *iface, LONG *p)
|
||||
{
|
||||
HTMLSelectElement *This = HTMLSELECT_THIS(iface);
|
||||
PRUint32 length = 0;
|
||||
|
@ -364,7 +364,7 @@ static HRESULT WINAPI HTMLSelectElement_get_length(IHTMLSelectElement *iface, lo
|
|||
|
||||
*p = length;
|
||||
|
||||
TRACE("ret %ld\n", *p);
|
||||
TRACE("ret %d\n", *p);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,18 +41,34 @@ static const WCHAR attrBackgroundColor[] =
|
|||
{'b','a','c','k','g','r','o','u','n','d','-','c','o','l','o','r',0};
|
||||
static const WCHAR attrBackgroundImage[] =
|
||||
{'b','a','c','k','g','r','o','u','n','d','-','i','m','a','g','e',0};
|
||||
static const WCHAR attrBackgroundPositionX[] =
|
||||
{'b','a','c','k','g','r','o','u','n','d','-','p','o','s','i','t','i','o','n','-','x',0};
|
||||
static const WCHAR attrBackgroundPositionY[] =
|
||||
{'b','a','c','k','g','r','o','u','n','d','-','p','o','s','i','t','i','o','n','-','y',0};
|
||||
static const WCHAR attrBackgroundRepeat[] =
|
||||
{'b','a','c','k','g','r','o','u','n','d','-','r','e','p','e','a','t',0};
|
||||
static const WCHAR attrBorder[] =
|
||||
{'b','o','r','d','e','r',0};
|
||||
static const WCHAR attrBorderBottomStyle[] =
|
||||
{'b','o','r','d','e','r','-','b','o','t','t','o','m','-','s','t','y','l','e',0};
|
||||
static const WCHAR attrBorderBottomWidth[] =
|
||||
{'b','o','r','d','e','r','-','b','o','t','t','o','m','-','w','i','d','t','h',0};
|
||||
static const WCHAR attrBorderColor[] =
|
||||
{'b','o','r','d','e','r','-','c','o','l','o','r',0};
|
||||
static const WCHAR attrBorderLeft[] =
|
||||
{'b','o','r','d','e','r','-','l','e','f','t',0};
|
||||
static const WCHAR attrBorderLeftStyle[] =
|
||||
{'b','o','r','d','e','r','-','l','e','f','t','-','s','t','y','l','e',0};
|
||||
static const WCHAR attrBorderRightStyle[] =
|
||||
{'b','o','r','d','e','r','-','r','i','g','h','t','-','s','t','y','l','e',0};
|
||||
static const WCHAR attrBorderRightWidth[] =
|
||||
{'b','o','r','d','e','r','-','r','i','g','h','t','-','w','i','d','t','h',0};
|
||||
static const WCHAR attrBorderStyle[] =
|
||||
{'b','o','r','d','e','r','-','s','t','y','l','e',0};
|
||||
static const WCHAR attrBorderTopStyle[] =
|
||||
{'b','o','r','d','e','r','-','t','o','p','-','s','t','y','l','e',0};
|
||||
static const WCHAR attrBorderTopWidth[] =
|
||||
{'b','o','r','d','e','r','-','t','o','p','-','w','i','d','t','h',0};
|
||||
static const WCHAR attrBorderWidth[] =
|
||||
{'b','o','r','d','e','r','-','w','i','d','t','h',0};
|
||||
static const WCHAR attrColor[] =
|
||||
|
@ -113,12 +129,20 @@ static const struct{
|
|||
{attrBackground, DISPID_IHTMLSTYLE_BACKGROUND},
|
||||
{attrBackgroundColor, DISPID_IHTMLSTYLE_BACKGROUNDCOLOR},
|
||||
{attrBackgroundImage, DISPID_IHTMLSTYLE_BACKGROUNDIMAGE},
|
||||
{attrBackgroundPositionX, DISPID_IHTMLSTYLE_BACKGROUNDPOSITIONX},
|
||||
{attrBackgroundPositionY, DISPID_IHTMLSTYLE_BACKGROUNDPOSITIONY},
|
||||
{attrBackgroundRepeat, DISPID_IHTMLSTYLE_BACKGROUNDREPEAT},
|
||||
{attrBorder, DISPID_IHTMLSTYLE_BORDER},
|
||||
{attrBorderBottomStyle, DISPID_IHTMLSTYLE_BORDERBOTTOMSTYLE},
|
||||
{attrBorderBottomWidth, DISPID_IHTMLSTYLE_BORDERBOTTOMWIDTH},
|
||||
{attrBorderColor, DISPID_IHTMLSTYLE_BORDERCOLOR},
|
||||
{attrBorderLeft, DISPID_IHTMLSTYLE_BORDERLEFT},
|
||||
{attrBorderLeftStyle, DISPID_IHTMLSTYLE_BORDERLEFTSTYLE},
|
||||
{attrBorderRightStyle, DISPID_IHTMLSTYLE_BORDERRIGHTSTYLE},
|
||||
{attrBorderRightWidth, DISPID_IHTMLSTYLE_BORDERRIGHTWIDTH},
|
||||
{attrBorderStyle, DISPID_IHTMLSTYLE_BORDERSTYLE},
|
||||
{attrBorderTopStyle, DISPID_IHTMLSTYLE_BORDERTOPSTYLE},
|
||||
{attrBorderTopWidth, DISPID_IHTMLSTYLE_BORDERTOPWIDTH},
|
||||
{attrBorderWidth, DISPID_IHTMLSTYLE_BORDERWIDTH},
|
||||
{attrColor, DISPID_IHTMLSTYLE_COLOR},
|
||||
{attrCursor, DISPID_IHTMLSTYLE_CURSOR},
|
||||
|
@ -153,6 +177,12 @@ static const WCHAR valUnderline[] =
|
|||
{'u','n','d','e','r','l','i','n','e',0};
|
||||
static const WCHAR szNormal[] =
|
||||
{'n','o','r','m','a','l',0};
|
||||
static const WCHAR styleNone[] =
|
||||
{'n','o','n','e',0};
|
||||
static const WCHAR valOverline[] =
|
||||
{'o','v','e','r','l','i','n','e',0};
|
||||
static const WCHAR valBlink[] =
|
||||
{'b','l','i','n','k',0};
|
||||
|
||||
static const WCHAR px_formatW[] = {'%','d','p','x',0};
|
||||
static const WCHAR emptyW[] = {0};
|
||||
|
@ -433,7 +463,6 @@ static HRESULT get_nsstyle_pos(HTMLStyle *This, styleid_t sid, float *p)
|
|||
|
||||
static BOOL is_valid_border_style(BSTR v)
|
||||
{
|
||||
static const WCHAR styleNone[] = {'n','o','n','e',0};
|
||||
static const WCHAR styleDotted[] = {'d','o','t','t','e','d',0};
|
||||
static const WCHAR styleDashed[] = {'d','a','s','h','e','d',0};
|
||||
static const WCHAR styleSolid[] = {'s','o','l','i','d',0};
|
||||
|
@ -803,15 +832,30 @@ static HRESULT WINAPI HTMLStyle_get_backgroundImage(IHTMLStyle *iface, BSTR *p)
|
|||
static HRESULT WINAPI HTMLStyle_put_backgroundRepeat(IHTMLStyle *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
static const WCHAR styleRepeat[] = {'r','e','p','e','a','t',0};
|
||||
static const WCHAR styleNoRepeat[] = {'n','o','-','r','e','p','e','a','t',0};
|
||||
static const WCHAR styleRepeatX[] = {'r','e','p','e','a','t','-','x',0};
|
||||
static const WCHAR styleRepeatY[] = {'r','e','p','e','a','t','-','y',0};
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
/* fontWeight can only be one of the following */
|
||||
if(!v || strcmpiW(styleRepeat, v) == 0 || strcmpiW(styleNoRepeat, v) == 0 ||
|
||||
strcmpiW(styleRepeatX, v) == 0 || strcmpiW(styleRepeatY, v) == 0 )
|
||||
{
|
||||
return set_style_attr(This, STYLEID_BACKGROUND_REPEAT , v, 0);
|
||||
}
|
||||
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_backgroundRepeat(IHTMLStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_style_attr(This, STYLEID_BACKGROUND_REPEAT, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_backgroundAttachment(IHTMLStyle *iface, BSTR v)
|
||||
|
@ -845,29 +889,29 @@ static HRESULT WINAPI HTMLStyle_get_backgroundPosition(IHTMLStyle *iface, BSTR *
|
|||
static HRESULT WINAPI HTMLStyle_put_backgroundPositionX(IHTMLStyle *iface, VARIANT v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BACKGROUND_POSITION_X, &v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_backgroundPositionX(IHTMLStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BACKGROUND_POSITION_X, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_backgroundPositionY(IHTMLStyle *iface, VARIANT v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BACKGROUND_POSITION_Y, &v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_backgroundPositionY(IHTMLStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BACKGROUND_POSITION_Y, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_wordSpacing(IHTMLStyle *iface, VARIANT v)
|
||||
|
@ -901,8 +945,18 @@ static HRESULT WINAPI HTMLStyle_get_letterSpacing(IHTMLStyle *iface, VARIANT *p)
|
|||
static HRESULT WINAPI HTMLStyle_put_textDecoration(IHTMLStyle *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
/* textDecoration can only be one of the following */
|
||||
if(!v || strcmpiW(styleNone, v) == 0 || strcmpiW(valUnderline, v) == 0 ||
|
||||
strcmpiW(valOverline, v) == 0 || strcmpiW(valLineThrough, v) == 0 ||
|
||||
strcmpiW(valBlink, v) == 0)
|
||||
{
|
||||
return set_style_attr(This, STYLEID_TEXT_DECORATION , v, 0);
|
||||
}
|
||||
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
|
||||
|
@ -917,15 +971,19 @@ static HRESULT WINAPI HTMLStyle_get_textDecoration(IHTMLStyle *iface, BSTR *p)
|
|||
static HRESULT WINAPI HTMLStyle_put_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%x)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%x)\n", This, v);
|
||||
|
||||
return set_style_attr(This, STYLEID_TEXT_DECORATION, v ? styleNone : emptyW, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIANT_BOOL *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return check_style_attr_value(This, STYLEID_TEXT_DECORATION, styleNone, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||
|
@ -949,15 +1007,19 @@ static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, V
|
|||
static HRESULT WINAPI HTMLStyle_put_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%x)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%x)\n", This, v);
|
||||
|
||||
return set_style_attr(This, STYLEID_TEXT_DECORATION, v ? valOverline : emptyW, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_textDecorationOverline(IHTMLStyle *iface, VARIANT_BOOL *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valOverline, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_textDecorationLineThrough(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||
|
@ -981,15 +1043,19 @@ static HRESULT WINAPI HTMLStyle_get_textDecorationLineThrough(IHTMLStyle *iface,
|
|||
static HRESULT WINAPI HTMLStyle_put_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%x)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%x)\n", This, v);
|
||||
|
||||
return set_style_attr(This, STYLEID_TEXT_DECORATION, v ? valBlink : emptyW, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_textDecorationBlink(IHTMLStyle *iface, VARIANT_BOOL *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return check_style_attr_value(This, STYLEID_TEXT_DECORATION, valBlink, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_verticalAlign(IHTMLStyle *iface, VARIANT v)
|
||||
|
@ -1363,22 +1429,28 @@ static HRESULT WINAPI HTMLStyle_put_borderLeft(IHTMLStyle *iface, BSTR v)
|
|||
static HRESULT WINAPI HTMLStyle_get_borderLeft(IHTMLStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_style_attr(This, STYLEID_BORDER_LEFT, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderColor(IHTMLStyle *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
return set_style_attr(This, STYLEID_BORDER_COLOR, v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_borderColor(IHTMLStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_style_attr(This, STYLEID_BORDER_COLOR, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderTopColor(IHTMLStyle *iface, VARIANT v)
|
||||
|
@ -1454,43 +1526,46 @@ static HRESULT WINAPI HTMLStyle_get_borderWidth(IHTMLStyle *iface, BSTR *p)
|
|||
static HRESULT WINAPI HTMLStyle_put_borderTopWidth(IHTMLStyle *iface, VARIANT v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_TOP_WIDTH, &v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_borderTopWidth(IHTMLStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_TOP_WIDTH, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderRightWidth(IHTMLStyle *iface, VARIANT v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_RIGHT_WIDTH, &v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_borderRightWidth(IHTMLStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_RIGHT_WIDTH, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderBottomWidth(IHTMLStyle *iface, VARIANT v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(v%d)\n", This, V_VT(&v));
|
||||
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_BOTTOM_WIDTH, &v, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_borderBottomWidth(IHTMLStyle *iface, VARIANT *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_BOTTOM_WIDTH, p, 0);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderLeftWidth(IHTMLStyle *iface, VARIANT v)
|
||||
|
@ -1510,15 +1585,52 @@ static HRESULT WINAPI HTMLStyle_get_borderLeftWidth(IHTMLStyle *iface, VARIANT *
|
|||
static HRESULT WINAPI HTMLStyle_put_borderStyle(IHTMLStyle *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
static const WCHAR styleWindowInset[] = {'w','i','n','d','o','w','-','i','n','s','e','t',0};
|
||||
HRESULT hres = S_OK;
|
||||
BSTR pstyle;
|
||||
int i=0;
|
||||
int last = 0;
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
while(v[i] && hres == S_OK)
|
||||
{
|
||||
if(v[i] == (WCHAR)' ')
|
||||
{
|
||||
pstyle = SysAllocStringLen(&v[last], (i-last));
|
||||
if( !(is_valid_border_style(pstyle) || strcmpiW(styleWindowInset, pstyle) == 0))
|
||||
{
|
||||
TRACE("1. Invalid style (%s)\n", debugstr_w(pstyle));
|
||||
hres = E_INVALIDARG;
|
||||
}
|
||||
SysFreeString(pstyle);
|
||||
last = i+1;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
if(hres == S_OK)
|
||||
{
|
||||
pstyle = SysAllocStringLen(&v[last], i-last);
|
||||
if( !(is_valid_border_style(pstyle) || strcmpiW(styleWindowInset, pstyle) == 0))
|
||||
{
|
||||
TRACE("2. Invalid style (%s)\n", debugstr_w(pstyle));
|
||||
hres = E_INVALIDARG;
|
||||
}
|
||||
SysFreeString(pstyle);
|
||||
}
|
||||
|
||||
if(hres == S_OK)
|
||||
hres = set_nsstyle_attr(This->nsstyle, STYLEID_BORDER_STYLE, v, 0);
|
||||
|
||||
return hres;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_borderStyle(IHTMLStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
return get_style_attr(This, STYLEID_BORDER_STYLE, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_borderTopStyle(IHTMLStyle *iface, BSTR v)
|
||||
|
@ -1944,67 +2056,97 @@ static HRESULT WINAPI HTMLStyle_get_pageBreakAfter(IHTMLStyle *iface, BSTR *p)
|
|||
static HRESULT WINAPI HTMLStyle_put_cssText(IHTMLStyle *iface, BSTR v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
return E_NOTIMPL;
|
||||
nsAString text_str;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
||||
|
||||
nsAString_Init(&text_str, v);
|
||||
nsres = nsIDOMCSSStyleDeclaration_SetCssText(This->nsstyle, &text_str);
|
||||
nsAString_Finish(&text_str);
|
||||
if(NS_FAILED(nsres)) {
|
||||
FIXME("SetCssStyle failed: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_cssText(IHTMLStyle *iface, BSTR *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
nsAString text_str;
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
/* FIXME: Gecko style formatting is different than IE (uppercase). */
|
||||
nsAString_Init(&text_str, NULL);
|
||||
nsres = nsIDOMCSSStyleDeclaration_GetCssText(This->nsstyle, &text_str);
|
||||
if(NS_SUCCEEDED(nsres)) {
|
||||
const PRUnichar *text;
|
||||
|
||||
nsAString_GetData(&text_str, &text);
|
||||
*p = *text ? SysAllocString(text) : NULL;
|
||||
}else {
|
||||
FIXME("GetCssStyle failed: %08x\n", nsres);
|
||||
*p = NULL;
|
||||
}
|
||||
|
||||
nsAString_Finish(&text_str);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelTop(IHTMLStyle *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelTop(IHTMLStyle *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelLeft(IHTMLStyle *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelLeft(IHTMLStyle *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelWidth(IHTMLStyle *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelWidth(IHTMLStyle *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle_put_pixelHeight(IHTMLStyle *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle_get_pixelHeight(IHTMLStyle *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE_THIS(iface);
|
||||
FIXME("(%p)->()\n", This);
|
||||
|
@ -2463,6 +2605,8 @@ static const dispex_static_data_vtbl_t HTMLStyle_dispex_vtbl = {
|
|||
static const tid_t HTMLStyle_iface_tids[] = {
|
||||
IHTMLStyle_tid,
|
||||
IHTMLStyle2_tid,
|
||||
IHTMLStyle3_tid,
|
||||
IHTMLStyle4_tid,
|
||||
0
|
||||
};
|
||||
static dispex_static_data_t HTMLStyle_dispex = {
|
||||
|
|
|
@ -38,12 +38,20 @@ typedef enum {
|
|||
STYLEID_BACKGROUND,
|
||||
STYLEID_BACKGROUND_COLOR,
|
||||
STYLEID_BACKGROUND_IMAGE,
|
||||
STYLEID_BACKGROUND_POSITION_X,
|
||||
STYLEID_BACKGROUND_POSITION_Y,
|
||||
STYLEID_BACKGROUND_REPEAT,
|
||||
STYLEID_BORDER,
|
||||
STYLEID_BORDER_BOTTOM_STYLE,
|
||||
STYLEID_BORDER_BOTTOM_WIDTH,
|
||||
STYLEID_BORDER_COLOR,
|
||||
STYLEID_BORDER_LEFT,
|
||||
STYLEID_BORDER_LEFT_STYLE,
|
||||
STYLEID_BORDER_RIGHT_STYLE,
|
||||
STYLEID_BORDER_RIGHT_WIDTH,
|
||||
STYLEID_BORDER_STYLE,
|
||||
STYLEID_BORDER_TOP_STYLE,
|
||||
STYLEID_BORDER_TOP_WIDTH,
|
||||
STYLEID_BORDER_WIDTH,
|
||||
STYLEID_COLOR,
|
||||
STYLEID_CURSOR,
|
||||
|
|
|
@ -223,28 +223,28 @@ static HRESULT WINAPI HTMLStyle2_get_right(IHTMLStyle2 *iface, VARIANT *p)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle2_put_pixelBottom(IHTMLStyle2 *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle2_put_pixelBottom(IHTMLStyle2 *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE2_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle2_get_pixelBottom(IHTMLStyle2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle2_get_pixelBottom(IHTMLStyle2 *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle2_put_pixelRight(IHTMLStyle2 *iface, long v)
|
||||
static HRESULT WINAPI HTMLStyle2_put_pixelRight(IHTMLStyle2 *iface, LONG v)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE2_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyle2_get_pixelRight(IHTMLStyle2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLStyle2_get_pixelRight(IHTMLStyle2 *iface, LONG *p)
|
||||
{
|
||||
HTMLStyle *This = HTMLSTYLE2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -147,7 +147,7 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_Invoke(IHTMLStyleSheetRulesC
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRulesCollection *iface,
|
||||
long *p)
|
||||
LONG *p)
|
||||
{
|
||||
HTMLStyleSheetRulesCollection *This = HTMLSTYLERULESCOL_THIS(iface);
|
||||
PRUint32 len = 0;
|
||||
|
@ -167,10 +167,10 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRu
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheetRulesCollection_item(IHTMLStyleSheetRulesCollection *iface,
|
||||
long index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
|
||||
LONG index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule)
|
||||
{
|
||||
HTMLStyleSheetRulesCollection *This = HTMLSTYLERULESCOL_THIS(iface);
|
||||
FIXME("(%p)->(%ld %p)\n", This, index, ppHTMLStyleSheetRule);
|
||||
FIXME("(%p)->(%d %p)\n", This, index, ppHTMLStyleSheetRule);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ static HRESULT WINAPI HTMLStyleSheetsCollection_Invoke(IHTMLStyleSheetsCollectio
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheetsCollection_get_length(IHTMLStyleSheetsCollection *iface,
|
||||
long *p)
|
||||
LONG *p)
|
||||
{
|
||||
HTMLStyleSheetsCollection *This = HTMLSTYLESHEETSCOL_THIS(iface);
|
||||
PRUint32 len = 0;
|
||||
|
@ -557,33 +557,33 @@ static HRESULT WINAPI HTMLStyleSheet_get_id(IHTMLStyleSheet *iface, BSTR *p)
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheet_addImport(IHTMLStyleSheet *iface, BSTR bstrURL,
|
||||
long lIndex, long *plIndex)
|
||||
LONG lIndex, LONG *plIndex)
|
||||
{
|
||||
HTMLStyleSheet *This = HTMLSTYLESHEET_THIS(iface);
|
||||
FIXME("(%p)->(%s %ld %p)\n", This, debugstr_w(bstrURL), lIndex, plIndex);
|
||||
FIXME("(%p)->(%s %d %p)\n", This, debugstr_w(bstrURL), lIndex, plIndex);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheet_addRule(IHTMLStyleSheet *iface, BSTR bstrSelector,
|
||||
BSTR bstrStyle, long lIndex, long *plIndex)
|
||||
BSTR bstrStyle, LONG lIndex, LONG *plIndex)
|
||||
{
|
||||
HTMLStyleSheet *This = HTMLSTYLESHEET_THIS(iface);
|
||||
FIXME("(%p)->(%s %s %ld %p)\n", This, debugstr_w(bstrSelector), debugstr_w(bstrStyle),
|
||||
FIXME("(%p)->(%s %s %d %p)\n", This, debugstr_w(bstrSelector), debugstr_w(bstrStyle),
|
||||
lIndex, plIndex);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheet_removeImport(IHTMLStyleSheet *iface, long lIndex)
|
||||
static HRESULT WINAPI HTMLStyleSheet_removeImport(IHTMLStyleSheet *iface, LONG lIndex)
|
||||
{
|
||||
HTMLStyleSheet *This = HTMLSTYLESHEET_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, lIndex);
|
||||
FIXME("(%p)->(%d)\n", This, lIndex);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLStyleSheet_removeRule(IHTMLStyleSheet *iface, long lIndex)
|
||||
static HRESULT WINAPI HTMLStyleSheet_removeRule(IHTMLStyleSheet *iface, LONG lIndex)
|
||||
{
|
||||
HTMLStyleSheet *This = HTMLSTYLESHEET_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, lIndex);
|
||||
FIXME("(%p)->(%d)\n", This, lIndex);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,14 +31,14 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
||||
|
||||
typedef struct {
|
||||
struct HTMLTable {
|
||||
HTMLElement element;
|
||||
|
||||
const IHTMLTableVtbl *lpHTMLTableVtbl;
|
||||
|
||||
ConnectionPoint cp;
|
||||
nsIDOMHTMLTableElement *nstable;
|
||||
} HTMLTable;
|
||||
};
|
||||
|
||||
#define HTMLTABLE(x) (&(x)->lpHTMLTableVtbl)
|
||||
|
||||
|
@ -96,14 +96,14 @@ static HRESULT WINAPI HTMLTable_Invoke(IHTMLTable *iface, DISPID dispIdMember,
|
|||
pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_put_cols(IHTMLTable *iface, long v)
|
||||
static HRESULT WINAPI HTMLTable_put_cols(IHTMLTable *iface, LONG v)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_get_cols(IHTMLTable *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTable_get_cols(IHTMLTable *iface, LONG *p)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -319,14 +319,14 @@ static HRESULT WINAPI HTMLTable_get_height(IHTMLTable *iface, VARIANT *p)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_put_dataPageSize(IHTMLTable *iface, long v)
|
||||
static HRESULT WINAPI HTMLTable_put_dataPageSize(IHTMLTable *iface, LONG v)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_get_dataPageSize(IHTMLTable *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTable_get_dataPageSize(IHTMLTable *iface, LONG *p)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -417,17 +417,17 @@ static HRESULT WINAPI HTMLTable_deleteCaption(IHTMLTable *iface)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_insertRow(IHTMLTable *iface, long index, IDispatch **row)
|
||||
static HRESULT WINAPI HTMLTable_insertRow(IHTMLTable *iface, LONG index, IDispatch **row)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%ld %p)\n", This, index, row);
|
||||
FIXME("(%p)->(%d %p)\n", This, index, row);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTable_deleteRow(IHTMLTable *iface, long index)
|
||||
static HRESULT WINAPI HTMLTable_deleteRow(IHTMLTable *iface, LONG index)
|
||||
{
|
||||
HTMLTable *This = HTMLTABLE_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, index);
|
||||
FIXME("(%p)->(%d)\n", This, index);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -179,14 +179,14 @@ static HRESULT WINAPI HTMLTableRow_get_borderColorDark(IHTMLTableRow *iface, VAR
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTableRow_get_rowIndex(IHTMLTableRow *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTableRow_get_rowIndex(IHTMLTableRow *iface, LONG *p)
|
||||
{
|
||||
HTMLTableRow *This = HTMLTABLEROW_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTableRow_get_selectionRowIndex(IHTMLTableRow *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTableRow_get_selectionRowIndex(IHTMLTableRow *iface, LONG *p)
|
||||
{
|
||||
HTMLTableRow *This = HTMLTABLEROW_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -213,17 +213,17 @@ static HRESULT WINAPI HTMLTableRow_get_cells(IHTMLTableRow *iface, IHTMLElementC
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTableRow_insertCell(IHTMLTableRow *iface, long index, IDispatch **row)
|
||||
static HRESULT WINAPI HTMLTableRow_insertCell(IHTMLTableRow *iface, LONG index, IDispatch **row)
|
||||
{
|
||||
HTMLTableRow *This = HTMLTABLEROW_THIS(iface);
|
||||
FIXME("(%p)->(%ld %p)\n", This, index, row);
|
||||
FIXME("(%p)->(%d %p)\n", This, index, row);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTableRow_deleteCell(IHTMLTableRow *iface, long index)
|
||||
static HRESULT WINAPI HTMLTableRow_deleteCell(IHTMLTableRow *iface, LONG index)
|
||||
{
|
||||
HTMLTableRow *This = HTMLTABLEROW_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, index);
|
||||
FIXME("(%p)->(%d)\n", This, index);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -264,28 +264,28 @@ static HRESULT WINAPI HTMLTextAreaElement_get_readOnly(IHTMLTextAreaElement *ifa
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextAreaElement_put_rows(IHTMLTextAreaElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLTextAreaElement_put_rows(IHTMLTextAreaElement *iface, LONG v)
|
||||
{
|
||||
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextAreaElement_get_rows(IHTMLTextAreaElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextAreaElement_get_rows(IHTMLTextAreaElement *iface, LONG *p)
|
||||
{
|
||||
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextAreaElement_put_cols(IHTMLTextAreaElement *iface, long v)
|
||||
static HRESULT WINAPI HTMLTextAreaElement_put_cols(IHTMLTextAreaElement *iface, LONG v)
|
||||
{
|
||||
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, v);
|
||||
FIXME("(%p)->(%d)\n", This, v);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextAreaElement_get_cols(IHTMLTextAreaElement *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextAreaElement_get_cols(IHTMLTextAreaElement *iface, LONG *p)
|
||||
{
|
||||
HTMLTextAreaElement *This = HTMLTXTAREA_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -93,7 +93,7 @@ static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *i
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *iface, LONG *p)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
|
@ -102,7 +102,7 @@ static HRESULT WINAPI HTMLTextContainer_get_scrollHeight(IHTMLTextContainer *ifa
|
|||
return IHTMLElement2_get_scrollHeight(HTMLELEM2(&This->element), p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *iface, LONG *p)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
|
@ -111,16 +111,16 @@ static HRESULT WINAPI HTMLTextContainer_get_scrollWidth(IHTMLTextContainer *ifac
|
|||
return IHTMLElement2_get_scrollWidth(HTMLELEM2(&This->element), p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface, long v)
|
||||
static HRESULT WINAPI HTMLTextContainer_put_scrollTop(IHTMLTextContainer *iface, LONG v)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
return IHTMLElement2_put_scrollTop(HTMLELEM2(&This->element), v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface, LONG *p)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
|
@ -129,16 +129,16 @@ static HRESULT WINAPI HTMLTextContainer_get_scrollTop(IHTMLTextContainer *iface,
|
|||
return IHTMLElement2_get_scrollTop(HTMLELEM2(&This->element), p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_put_scrollLeft(IHTMLTextContainer *iface, long v)
|
||||
static HRESULT WINAPI HTMLTextContainer_put_scrollLeft(IHTMLTextContainer *iface, LONG v)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, v);
|
||||
TRACE("(%p)->(%d)\n", This, v);
|
||||
|
||||
return IHTMLElement2_put_scrollLeft(HTMLELEM2(&This->element), v);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollLeft(IHTMLTextContainer *iface, long *p)
|
||||
static HRESULT WINAPI HTMLTextContainer_get_scrollLeft(IHTMLTextContainer *iface, LONG *p)
|
||||
{
|
||||
HTMLTextContainer *This = HTMLTEXTCONT_THIS(iface);
|
||||
|
||||
|
|
|
@ -116,17 +116,17 @@ static HRESULT WINAPI HTMLDOMTextNode_toString(IHTMLDOMTextNode *iface, BSTR *St
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMTextNode_get_length(IHTMLDOMTextNode *iface, long *p)
|
||||
static HRESULT WINAPI HTMLDOMTextNode_get_length(IHTMLDOMTextNode *iface, LONG *p)
|
||||
{
|
||||
HTMLDOMTextNode *This = HTMLTEXT_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMTextNode_splitText(IHTMLDOMTextNode *iface, long offset, IHTMLDOMNode **pRetNode)
|
||||
static HRESULT WINAPI HTMLDOMTextNode_splitText(IHTMLDOMTextNode *iface, LONG offset, IHTMLDOMNode **pRetNode)
|
||||
{
|
||||
HTMLDOMTextNode *This = HTMLTEXT_THIS(iface);
|
||||
FIXME("(%p)->(%ld %p)\n", This, offset, pRetNode);
|
||||
FIXME("(%p)->(%d %p)\n", This, offset, pRetNode);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ static HRESULT WINAPI HTMLWindow2_item(IHTMLWindow2 *iface, VARIANT *pvarIndex,
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_get_length(IHTMLWindow2 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLWindow2_get_length(IHTMLWindow2 *iface, LONG *p)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -183,12 +183,12 @@ static HRESULT WINAPI HTMLWindow2_get_status(IHTMLWindow2 *iface, BSTR *p)
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_setTimeout(IHTMLWindow2 *iface, BSTR expression,
|
||||
long msec, VARIANT *language, long *timerID)
|
||||
LONG msec, VARIANT *language, LONG *timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
VARIANT expr_var;
|
||||
|
||||
TRACE("(%p)->(%s %ld %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
|
||||
TRACE("(%p)->(%s %d %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
|
||||
|
||||
V_VT(&expr_var) = VT_BSTR;
|
||||
V_BSTR(&expr_var) = expression;
|
||||
|
@ -196,11 +196,11 @@ static HRESULT WINAPI HTMLWindow2_setTimeout(IHTMLWindow2 *iface, BSTR expressio
|
|||
return IHTMLWindow3_setTimeout(HTMLWINDOW3(This), &expr_var, msec, language, timerID);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_clearTimeout(IHTMLWindow2 *iface, long timerID)
|
||||
static HRESULT WINAPI HTMLWindow2_clearTimeout(IHTMLWindow2 *iface, LONG timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, timerID);
|
||||
TRACE("(%p)->(%d)\n", This, timerID);
|
||||
|
||||
return clear_task_timer(This->doc, FALSE, timerID);
|
||||
}
|
||||
|
@ -226,16 +226,114 @@ static HRESULT WINAPI HTMLWindow2_confirm(IHTMLWindow2 *iface, BSTR message,
|
|||
VARIANT_BOOL *confirmed)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%s %p)\n", This, debugstr_w(message), confirmed);
|
||||
return E_NOTIMPL;
|
||||
WCHAR wszTitle[100];
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_w(message), confirmed);
|
||||
|
||||
if(!confirmed) return E_INVALIDARG;
|
||||
|
||||
if(!LoadStringW(get_shdoclc(), IDS_MESSAGE_BOX_TITLE, wszTitle,
|
||||
sizeof(wszTitle)/sizeof(WCHAR))) {
|
||||
WARN("Could not load message box title: %d\n", GetLastError());
|
||||
*confirmed = VARIANT_TRUE;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if(MessageBoxW(This->doc->hwnd, message, wszTitle,
|
||||
MB_OKCANCEL|MB_ICONQUESTION)==IDOK)
|
||||
*confirmed = VARIANT_TRUE;
|
||||
else *confirmed = VARIANT_FALSE;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
BSTR message;
|
||||
BSTR dststr;
|
||||
VARIANT *textdata;
|
||||
}prompt_arg;
|
||||
|
||||
static INT_PTR CALLBACK prompt_dlgproc(HWND hwnd, UINT msg,
|
||||
WPARAM wparam, LPARAM lparam)
|
||||
{
|
||||
switch(msg)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
prompt_arg *arg = (prompt_arg*)lparam;
|
||||
WCHAR wszTitle[100];
|
||||
|
||||
if(!LoadStringW(get_shdoclc(), IDS_MESSAGE_BOX_TITLE, wszTitle,
|
||||
sizeof(wszTitle)/sizeof(WCHAR))) {
|
||||
WARN("Could not load message box title: %d\n", GetLastError());
|
||||
EndDialog(hwnd, wparam);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
SetWindowLongPtrW(hwnd, DWLP_USER, lparam);
|
||||
SetWindowTextW(hwnd, wszTitle);
|
||||
SetWindowTextW(GetDlgItem(hwnd, ID_PROMPT_PROMPT), arg->message);
|
||||
SetWindowTextW(GetDlgItem(hwnd, ID_PROMPT_EDIT), arg->dststr);
|
||||
return FALSE;
|
||||
}
|
||||
case WM_COMMAND:
|
||||
switch(wparam)
|
||||
{
|
||||
case MAKEWPARAM(IDCANCEL, BN_CLICKED):
|
||||
EndDialog(hwnd, wparam);
|
||||
return TRUE;
|
||||
case MAKEWPARAM(IDOK, BN_CLICKED):
|
||||
{
|
||||
prompt_arg *arg =
|
||||
(prompt_arg*)GetWindowLongPtrW(hwnd, DWLP_USER);
|
||||
HWND hwndPrompt = GetDlgItem(hwnd, ID_PROMPT_EDIT);
|
||||
INT len = GetWindowTextLengthW(hwndPrompt);
|
||||
|
||||
if(!arg->textdata)
|
||||
{
|
||||
EndDialog(hwnd, wparam);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
V_VT(arg->textdata) = VT_BSTR;
|
||||
if(!len && !arg->dststr)
|
||||
V_BSTR(arg->textdata) = NULL;
|
||||
else
|
||||
{
|
||||
V_BSTR(arg->textdata) = SysAllocStringLen(NULL, len);
|
||||
GetWindowTextW(hwndPrompt, V_BSTR(arg->textdata), len+1);
|
||||
}
|
||||
EndDialog(hwnd, wparam);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
case WM_CLOSE:
|
||||
EndDialog(hwnd, IDCANCEL);
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_prompt(IHTMLWindow2 *iface, BSTR message,
|
||||
BSTR dststr, VARIANT *textdata)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(message), debugstr_w(dststr), textdata);
|
||||
return E_NOTIMPL;
|
||||
prompt_arg arg;
|
||||
|
||||
TRACE("(%p)->(%s %s %p)\n", This, debugstr_w(message), debugstr_w(dststr), textdata);
|
||||
|
||||
if(textdata) V_VT(textdata) = VT_NULL;
|
||||
|
||||
arg.message = message;
|
||||
arg.dststr = dststr;
|
||||
arg.textdata = textdata;
|
||||
|
||||
DialogBoxParamW(hInst, MAKEINTRESOURCEW(ID_PROMPT_DIALOG),
|
||||
This->doc->hwnd, prompt_dlgproc, (LPARAM)&arg);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_get_Image(IHTMLWindow2 *iface, IHTMLImageElementFactory **p)
|
||||
|
@ -586,10 +684,10 @@ static HRESULT WINAPI HTMLWindow2_blur(IHTMLWindow2 *iface)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_scroll(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_scroll(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -601,23 +699,23 @@ static HRESULT WINAPI HTMLWindow2_get_clientInformation(IHTMLWindow2 *iface, IOm
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_setInterval(IHTMLWindow2 *iface, BSTR expression,
|
||||
long msec, VARIANT *language, long *timerID)
|
||||
LONG msec, VARIANT *language, LONG *timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
VARIANT expr;
|
||||
|
||||
TRACE("(%p)->(%s %ld %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
|
||||
TRACE("(%p)->(%s %d %p %p)\n", This, debugstr_w(expression), msec, language, timerID);
|
||||
|
||||
V_VT(&expr) = VT_BSTR;
|
||||
V_BSTR(&expr) = expression;
|
||||
return IHTMLWindow3_setInterval(HTMLWINDOW3(This), &expr, msec, language, timerID);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_clearInterval(IHTMLWindow2 *iface, long timerID)
|
||||
static HRESULT WINAPI HTMLWindow2_clearInterval(IHTMLWindow2 *iface, LONG timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, timerID);
|
||||
TRACE("(%p)->(%d)\n", This, timerID);
|
||||
|
||||
return clear_task_timer(This->doc, TRUE, timerID);
|
||||
}
|
||||
|
@ -651,12 +749,12 @@ static HRESULT WINAPI HTMLWindow2_toString(IHTMLWindow2 *iface, BSTR *String)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_scrollBy(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_scrollBy(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld %ld)\n", This, x, y);
|
||||
TRACE("(%p)->(%d %d)\n", This, x, y);
|
||||
|
||||
nsres = nsIDOMWindow_ScrollBy(This->nswindow, x, y);
|
||||
if(NS_FAILED(nsres))
|
||||
|
@ -665,12 +763,12 @@ static HRESULT WINAPI HTMLWindow2_scrollBy(IHTMLWindow2 *iface, long x, long y)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_scrollTo(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_scrollTo(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
nsresult nsres;
|
||||
|
||||
TRACE("(%p)->(%ld %ld)\n", This, x, y);
|
||||
TRACE("(%p)->(%d %d)\n", This, x, y);
|
||||
|
||||
nsres = nsIDOMWindow_ScrollTo(This->nswindow, x, y);
|
||||
if(NS_FAILED(nsres))
|
||||
|
@ -679,31 +777,31 @@ static HRESULT WINAPI HTMLWindow2_scrollTo(IHTMLWindow2 *iface, long x, long y)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_moveTo(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_moveTo(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_moveBy(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_moveBy(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_resizeTo(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_resizeTo(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow2_resizeBy(IHTMLWindow2 *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLWindow2_resizeBy(IHTMLWindow2 *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW2_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -860,14 +958,14 @@ static HRESULT WINAPI HTMLWindow3_Invoke(IHTMLWindow3 *iface, DISPID dispIdMembe
|
|||
pVarResult, pExcepInfo, puArgErr);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow3_get_screenLeft(IHTMLWindow3 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLWindow3_get_screenLeft(IHTMLWindow3 *iface, LONG *p)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW3_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow3_get_screenTop(IHTMLWindow3 *iface, long *p)
|
||||
static HRESULT WINAPI HTMLWindow3_get_screenTop(IHTMLWindow3 *iface, LONG *p)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW3_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
@ -888,8 +986,8 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARIANT *language,
|
||||
BOOL interval, long *timer_id)
|
||||
static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, LONG msec, VARIANT *language,
|
||||
BOOL interval, LONG *timer_id)
|
||||
{
|
||||
IDispatch *disp = NULL;
|
||||
|
||||
|
@ -917,22 +1015,22 @@ static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, long msec, VARI
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expression, long msec,
|
||||
VARIANT *language, long *timerID)
|
||||
static HRESULT WINAPI HTMLWindow3_setTimeout(IHTMLWindow3 *iface, VARIANT *expression, LONG msec,
|
||||
VARIANT *language, LONG *timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW3_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%p(%d) %ld %p %p)\n", This, expression, V_VT(expression), msec, language, timerID);
|
||||
TRACE("(%p)->(%p(%d) %d %p %p)\n", This, expression, V_VT(expression), msec, language, timerID);
|
||||
|
||||
return window_set_timer(This, expression, msec, language, FALSE, timerID);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLWindow3_setInterval(IHTMLWindow3 *iface, VARIANT *expression, long msec,
|
||||
VARIANT *language, long *timerID)
|
||||
static HRESULT WINAPI HTMLWindow3_setInterval(IHTMLWindow3 *iface, VARIANT *expression, LONG msec,
|
||||
VARIANT *language, LONG *timerID)
|
||||
{
|
||||
HTMLWindow *This = HTMLWINDOW3_THIS(iface);
|
||||
|
||||
TRACE("(%p)->(%p %ld %p %p)\n", This, expression, msec, language, timerID);
|
||||
TRACE("(%p)->(%p %d %p %p)\n", This, expression, msec, language, timerID);
|
||||
|
||||
return window_set_timer(This, expression, msec, language, TRUE, timerID);
|
||||
}
|
||||
|
|
|
@ -425,6 +425,7 @@ static LPWSTR get_url(void)
|
|||
HKEY hkey;
|
||||
DWORD res, type;
|
||||
DWORD size = INTERNET_MAX_URL_LENGTH*sizeof(WCHAR);
|
||||
DWORD returned_size;
|
||||
LPWSTR url;
|
||||
|
||||
static const WCHAR wszGeckoUrl[] = {'G','e','c','k','o','U','r','l',0};
|
||||
|
@ -437,15 +438,16 @@ static LPWSTR get_url(void)
|
|||
return NULL;
|
||||
|
||||
url = heap_alloc(size);
|
||||
returned_size = size;
|
||||
|
||||
res = RegQueryValueExW(hkey, wszGeckoUrl, NULL, &type, (LPBYTE)url, &size);
|
||||
res = RegQueryValueExW(hkey, wszGeckoUrl, NULL, &type, (LPBYTE)url, &returned_size);
|
||||
RegCloseKey(hkey);
|
||||
if(res != ERROR_SUCCESS || type != REG_SZ) {
|
||||
heap_free(url);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(size > sizeof(httpW) && !memcmp(url, httpW, sizeof(httpW))) {
|
||||
if(returned_size > sizeof(httpW) && !memcmp(url, httpW, sizeof(httpW))) {
|
||||
strcatW(url, v_formatW);
|
||||
MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), size/sizeof(WCHAR)-strlenW(url));
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "mshtml.h"
|
||||
#include "mshtmhst.h"
|
||||
#include "hlink.h"
|
||||
#include "perhist.h"
|
||||
#include "dispex.h"
|
||||
|
||||
#include "wine/list.h"
|
||||
|
@ -84,6 +85,9 @@ typedef enum {
|
|||
IHTMLBodyElement2_tid,
|
||||
IHTMLCommentElement_tid,
|
||||
IHTMLCurrentStyle_tid,
|
||||
IHTMLCurrentStyle2_tid,
|
||||
IHTMLCurrentStyle3_tid,
|
||||
IHTMLCurrentStyle4_tid,
|
||||
IHTMLDocument2_tid,
|
||||
IHTMLDocument3_tid,
|
||||
IHTMLDocument4_tid,
|
||||
|
@ -107,6 +111,8 @@ typedef enum {
|
|||
IHTMLSelectElement_tid,
|
||||
IHTMLStyle_tid,
|
||||
IHTMLStyle2_tid,
|
||||
IHTMLStyle3_tid,
|
||||
IHTMLStyle4_tid,
|
||||
IHTMLTable_tid,
|
||||
IHTMLTableRow_tid,
|
||||
IHTMLTextContainer_tid,
|
||||
|
@ -224,6 +230,7 @@ struct HTMLDocument {
|
|||
const IHTMLDocument5Vtbl *lpHTMLDocument5Vtbl;
|
||||
const IPersistMonikerVtbl *lpPersistMonikerVtbl;
|
||||
const IPersistFileVtbl *lpPersistFileVtbl;
|
||||
const IPersistHistoryVtbl *lpPersistHistoryVtbl;
|
||||
const IMonikerPropVtbl *lpMonikerPropVtbl;
|
||||
const IOleObjectVtbl *lpOleObjectVtbl;
|
||||
const IOleDocumentVtbl *lpOleDocumentVtbl;
|
||||
|
@ -437,6 +444,7 @@ typedef struct {
|
|||
#define HLNKTARGET(x) ((IHlinkTarget*) &(x)->lpHlinkTargetVtbl)
|
||||
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
|
||||
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
|
||||
#define PERSISTHIST(x) ((IPersistHistory*) &(x)->lpPersistHistoryVtbl)
|
||||
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
|
||||
|
||||
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
|
||||
|
|
|
@ -270,7 +270,7 @@ static HRESULT WINAPI OmNavigator_get_appMinorVersion(IOmNavigator *iface, BSTR
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI OmNavigator_get_connectionSpeed(IOmNavigator *iface, long *p)
|
||||
static HRESULT WINAPI OmNavigator_get_connectionSpeed(IOmNavigator *iface, LONG *p)
|
||||
{
|
||||
OmNavigator *This = OMNAVIGATOR_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
|
|
|
@ -131,11 +131,15 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
|
|||
|
||||
static const char content_length[] = "Content-Length: %u\r\n\r\n";
|
||||
|
||||
data = heap_alloc(headers_len+post_len+sizeof(content_length)+8);
|
||||
data = heap_alloc(headers_len+post_len+sizeof(content_length)+10);
|
||||
|
||||
if(headers_len) {
|
||||
WideCharToMultiByte(CP_ACP, 0, headers, -1, data, headers_len, NULL, NULL);
|
||||
len = fix_headers(data, post_len);
|
||||
if(len >= 2 && (data[len-1] != '\n' || data[len-2] != '\r')) {
|
||||
data[len++] = '\r';
|
||||
data[len++] = '\n';
|
||||
}
|
||||
}
|
||||
|
||||
if(post_len) {
|
||||
|
@ -744,12 +748,84 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl = {
|
|||
PersistStreamInit_InitNew
|
||||
};
|
||||
|
||||
/**********************************************************
|
||||
* IPersistHistory implementation
|
||||
*/
|
||||
|
||||
#define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface)
|
||||
|
||||
static HRESULT WINAPI PersistHistory_QueryInterface(IPersistHistory *iface, REFIID riid, void **ppvObject)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject);
|
||||
}
|
||||
|
||||
static ULONG WINAPI PersistHistory_AddRef(IPersistHistory *iface)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
return IHTMLDocument2_AddRef(HTMLDOC(This));
|
||||
}
|
||||
|
||||
static ULONG WINAPI PersistHistory_Release(IPersistHistory *iface)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
return IHTMLDocument2_Release(HTMLDOC(This));
|
||||
}
|
||||
|
||||
static HRESULT WINAPI PersistHistory_GetClassID(IPersistHistory *iface, CLSID *pClassID)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
return IPersist_GetClassID(PERSIST(This), pClassID);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI PersistHistory_LoadHistory(IPersistHistory *iface, IStream *pStream, IBindCtx *pbc)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
FIXME("(%p)->(%p %p)\n", This, pStream, pbc);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI PersistHistory_SaveHistory(IPersistHistory *iface, IStream *pStream)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pStream);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI PersistHistory_SetPositionCookie(IPersistHistory *iface, DWORD dwPositioncookie)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
FIXME("(%p)->(%x)\n", This, dwPositioncookie);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI PersistHistory_GetPositionCookie(IPersistHistory *iface, DWORD *pdwPositioncookie)
|
||||
{
|
||||
HTMLDocument *This = PERSISTHIST_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pdwPositioncookie);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
#undef PERSISTHIST_THIS
|
||||
|
||||
static const IPersistHistoryVtbl PersistHistoryVtbl = {
|
||||
PersistHistory_QueryInterface,
|
||||
PersistHistory_AddRef,
|
||||
PersistHistory_Release,
|
||||
PersistHistory_GetClassID,
|
||||
PersistHistory_LoadHistory,
|
||||
PersistHistory_SaveHistory,
|
||||
PersistHistory_SetPositionCookie,
|
||||
PersistHistory_GetPositionCookie
|
||||
};
|
||||
|
||||
void HTMLDocument_Persist_Init(HTMLDocument *This)
|
||||
{
|
||||
This->lpPersistMonikerVtbl = &PersistMonikerVtbl;
|
||||
This->lpPersistFileVtbl = &PersistFileVtbl;
|
||||
This->lpMonikerPropVtbl = &MonikerPropVtbl;
|
||||
This->lpPersistStreamInitVtbl = &PersistStreamInitVtbl;
|
||||
This->lpPersistHistoryVtbl = &PersistHistoryVtbl;
|
||||
|
||||
This->bscallback = NULL;
|
||||
This->mon = NULL;
|
||||
|
|
|
@ -210,7 +210,7 @@ static ULONG WINAPI AboutProtocol_Release(IInternetProtocol *iface)
|
|||
|
||||
static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
|
||||
IInternetProtocolSink* pOIProtSink, IInternetBindInfo* pOIBindInfo,
|
||||
DWORD grfPI, DWORD dwReserved)
|
||||
DWORD grfPI, HANDLE_PTR dwReserved)
|
||||
{
|
||||
AboutProtocol *This = PROTOCOL_THIS(iface);
|
||||
BINDINFO bindinfo;
|
||||
|
@ -230,7 +230,7 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
|
|||
* when the url does not have "about:" in the beginning.
|
||||
*/
|
||||
|
||||
TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl), pOIProtSink,
|
||||
TRACE("(%p)->(%s %p %p %08x %lx)\n", This, debugstr_w(szUrl), pOIProtSink,
|
||||
pOIBindInfo, grfPI, dwReserved);
|
||||
|
||||
memset(&bindinfo, 0, sizeof(bindinfo));
|
||||
|
@ -575,7 +575,7 @@ static ULONG WINAPI ResProtocol_Release(IInternetProtocol *iface)
|
|||
|
||||
static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
|
||||
IInternetProtocolSink* pOIProtSink, IInternetBindInfo* pOIBindInfo,
|
||||
DWORD grfPI, DWORD dwReserved)
|
||||
DWORD grfPI, HANDLE_PTR dwReserved)
|
||||
{
|
||||
ResProtocol *This = PROTOCOL_THIS(iface);
|
||||
DWORD grfBINDF = 0, len;
|
||||
|
@ -587,7 +587,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
|
|||
|
||||
static const WCHAR wszRes[] = {'r','e','s',':','/','/'};
|
||||
|
||||
TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl), pOIProtSink,
|
||||
TRACE("(%p)->(%s %p %p %08x %lx)\n", This, debugstr_w(szUrl), pOIProtSink,
|
||||
pOIBindInfo, grfPI, dwReserved);
|
||||
|
||||
memset(&bindinfo, 0, sizeof(bindinfo));
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
#define ID_DWL_INSTALL 7602
|
||||
#define ID_DWL_STATUS 7603
|
||||
|
||||
#define ID_PROMPT_DIALOG 7700
|
||||
#define ID_PROMPT_PROMPT 7701
|
||||
#define ID_PROMPT_EDIT 7702
|
||||
|
||||
#define IDS_MESSAGE_BOX_TITLE 2213
|
||||
|
||||
#define IDS_PRINT_HEADER_TEMPLATE 8403
|
||||
|
|
|
@ -1372,12 +1372,12 @@ static HRESULT WINAPI HTMLTxtRange_expand(IHTMLTxtRange *iface, BSTR Unit, VARIA
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
|
||||
long Count, long *ActualCount)
|
||||
LONG Count, LONG *ActualCount)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
range_unit_t unit;
|
||||
|
||||
TRACE("(%p)->(%s %ld %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
TRACE("(%p)->(%s %d %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
|
||||
unit = string_to_unit(Unit);
|
||||
if(unit == RU_UNKNOWN)
|
||||
|
@ -1436,17 +1436,17 @@ static HRESULT WINAPI HTMLTxtRange_move(IHTMLTxtRange *iface, BSTR Unit,
|
|||
FIXME("unimplemented unit %s\n", debugstr_w(Unit));
|
||||
}
|
||||
|
||||
TRACE("ret %ld\n", *ActualCount);
|
||||
TRACE("ret %d\n", *ActualCount);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_moveStart(IHTMLTxtRange *iface, BSTR Unit,
|
||||
long Count, long *ActualCount)
|
||||
LONG Count, LONG *ActualCount)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
range_unit_t unit;
|
||||
|
||||
TRACE("(%p)->(%s %ld %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
TRACE("(%p)->(%s %d %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
|
||||
unit = string_to_unit(Unit);
|
||||
if(unit == RU_UNKNOWN)
|
||||
|
@ -1492,12 +1492,12 @@ static HRESULT WINAPI HTMLTxtRange_moveStart(IHTMLTxtRange *iface, BSTR Unit,
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_moveEnd(IHTMLTxtRange *iface, BSTR Unit,
|
||||
long Count, long *ActualCount)
|
||||
LONG Count, LONG *ActualCount)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
range_unit_t unit;
|
||||
|
||||
TRACE("(%p)->(%s %ld %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
TRACE("(%p)->(%s %d %p)\n", This, debugstr_w(Unit), Count, ActualCount);
|
||||
|
||||
unit = string_to_unit(Unit);
|
||||
if(unit == RU_UNKNOWN)
|
||||
|
@ -1588,7 +1588,7 @@ static HRESULT WINAPI HTMLTxtRange_setEndPoint(IHTMLTxtRange *iface, BSTR how,
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_compareEndPoints(IHTMLTxtRange *iface, BSTR how,
|
||||
IHTMLTxtRange *SourceRange, long *ret)
|
||||
IHTMLTxtRange *SourceRange, LONG *ret)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
HTMLTxtRange *src_range;
|
||||
|
@ -1615,17 +1615,17 @@ static HRESULT WINAPI HTMLTxtRange_compareEndPoints(IHTMLTxtRange *iface, BSTR h
|
|||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_findText(IHTMLTxtRange *iface, BSTR String,
|
||||
long count, long Flags, VARIANT_BOOL *Success)
|
||||
LONG count, LONG Flags, VARIANT_BOOL *Success)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
FIXME("(%p)->(%s %ld %08lx %p)\n", This, debugstr_w(String), count, Flags, Success);
|
||||
FIXME("(%p)->(%s %d %08x %p)\n", This, debugstr_w(String), count, Flags, Success);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLTxtRange_moveToPoint(IHTMLTxtRange *iface, long x, long y)
|
||||
static HRESULT WINAPI HTMLTxtRange_moveToPoint(IHTMLTxtRange *iface, LONG x, LONG y)
|
||||
{
|
||||
HTMLTxtRange *This = HTMLTXTRANGE_THIS(iface);
|
||||
FIXME("(%p)->(%ld %ld)\n", This, x, y);
|
||||
FIXME("(%p)->(%d %d)\n", This, x, y);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -135,6 +135,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
|||
static IClassFactoryImpl WB2ClassFactory = {&WBCF_Vtbl, WebBrowserV2_Create};
|
||||
static IClassFactoryImpl CUHClassFactory = {&WBCF_Vtbl, CUrlHistory_Create};
|
||||
static IClassFactoryImpl ISCClassFactory = {&WBCF_Vtbl, InternetShortcut_Create};
|
||||
static IClassFactoryImpl TBLClassFactory = {&WBCF_Vtbl, TaskbarList_Create};
|
||||
|
||||
TRACE("\n");
|
||||
|
||||
|
@ -150,6 +151,9 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
|
|||
if(IsEqualGUID(&CLSID_InternetShortcut, rclsid))
|
||||
return IClassFactory_QueryInterface(FACTORY(&ISCClassFactory), riid, ppv);
|
||||
|
||||
if(IsEqualGUID(&CLSID_TaskbarList, rclsid))
|
||||
return IClassFactory_QueryInterface(FACTORY(&TBLClassFactory), riid, ppv);
|
||||
|
||||
/* As a last resort, figure if the CLSID belongs to a 'Shell Instance Object' */
|
||||
return SHDOCVW_GetShellInstanceObjectClassObject(rclsid, riid, ppv);
|
||||
}
|
||||
|
@ -213,8 +217,8 @@ static const GUID CLSID_MruLongList =
|
|||
static HRESULT register_server(BOOL doregister)
|
||||
{
|
||||
STRTABLEA strtable;
|
||||
STRENTRYA pse[14];
|
||||
static CLSID const *clsids[14];
|
||||
STRENTRYA pse[15];
|
||||
static CLSID const *clsids[15];
|
||||
unsigned int i = 0;
|
||||
HRESULT hres;
|
||||
|
||||
|
@ -230,6 +234,7 @@ static HRESULT register_server(BOOL doregister)
|
|||
INF_SET_CLSID(ShellShellNameSpace);
|
||||
INF_SET_CLSID(ShellUIHelper);
|
||||
INF_SET_CLSID(ShellWindows);
|
||||
INF_SET_CLSID(TaskbarList);
|
||||
INF_SET_CLSID(WebBrowser);
|
||||
INF_SET_CLSID(WebBrowser_V1);
|
||||
|
||||
|
|
|
@ -220,59 +220,59 @@ static HRESULT WINAPI InternetExplorer_get_Type(IWebBrowser2 *iface, BSTR *Type)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI InternetExplorer_get_Left(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pl);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, long Left)
|
||||
static HRESULT WINAPI InternetExplorer_put_Left(IWebBrowser2 *iface, LONG Left)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, Left);
|
||||
FIXME("(%p)->(%d)\n", This, Left);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI InternetExplorer_get_Top(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pl);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, long Top)
|
||||
static HRESULT WINAPI InternetExplorer_put_Top(IWebBrowser2 *iface, LONG Top)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, Top);
|
||||
FIXME("(%p)->(%d)\n", This, Top);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI InternetExplorer_get_Width(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pl);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, long Width)
|
||||
static HRESULT WINAPI InternetExplorer_put_Width(IWebBrowser2 *iface, LONG Width)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, Width);
|
||||
FIXME("(%p)->(%d)\n", This, Width);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI InternetExplorer_get_Height(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pl);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, long Height)
|
||||
static HRESULT WINAPI InternetExplorer_put_Height(IWebBrowser2 *iface, LONG Height)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%ld)\n", This, Height);
|
||||
FIXME("(%p)->(%d)\n", This, Height);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -332,7 +332,7 @@ static HRESULT WINAPI InternetExplorer_get_Name(IWebBrowser2 *iface, BSTR *Name)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, long *pHWND)
|
||||
static HRESULT WINAPI InternetExplorer_get_HWND(IWebBrowser2 *iface, LONG *pHWND)
|
||||
{
|
||||
InternetExplorer *This = WEBBROWSER_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, pHWND);
|
||||
|
|
|
@ -227,6 +227,8 @@ HRESULT CUrlHistory_Create(IUnknown*,REFIID,void**);
|
|||
|
||||
HRESULT InternetShortcut_Create(IUnknown*,REFIID,void**);
|
||||
|
||||
HRESULT TaskbarList_Create(IUnknown*,REFIID,void**);
|
||||
|
||||
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
|
||||
|
||||
/**********************************************************************
|
||||
|
|
|
@ -126,6 +126,9 @@ HKCR,"InternetShortcut\shell\open\command",,,"rundll32.exe shdocvw.dll,OpenURL %
|
|||
HKCR,"InternetShortcut\shell\print\command",,,"rundll32.exe mshtml.dll,PrintHTML ""%1"""
|
||||
HKCR,"InternetShortcut\shell\printto\command",,,"rundll32.exe mshtml.dll,PrintHTML ""%1"" ""%2"" ""%3"" ""%4"""
|
||||
|
||||
HKCR,"CLSID\%CLSID_TaskbarList%",,,"Task Bar Communication"
|
||||
HKCR,"CLSID\%CLSID_TaskbarList%\InProcServer32",,,"%MODULE%"
|
||||
HKCR,"CLSID\%CLSID_TaskbarList%\InProcServer32","ThreadingModel",,"Apartment"
|
||||
|
||||
[URL.Reg]
|
||||
HKLM,"Software\Microsoft\Windows\CurrentVersion\URL\DefaultPrefix",,,"http://"
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
<file>persist.c</file>
|
||||
<file>shdocvw_main.c</file>
|
||||
<file>shlinstobj.c</file>
|
||||
<file>taskbarlist.c</file>
|
||||
<file>urlhist.c</file>
|
||||
<file>view.c</file>
|
||||
<file>webbrowser.c</file>
|
||||
|
|
157
reactos/dll/win32/shdocvw/taskbarlist.c
Normal file
157
reactos/dll/win32/shdocvw/taskbarlist.c
Normal file
|
@ -0,0 +1,157 @@
|
|||
/*
|
||||
* Copyright 2009 Henri Verbeet 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 "config.h"
|
||||
#include "wine/port.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
#include "shdocvw.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
||||
|
||||
struct taskbar_list
|
||||
{
|
||||
const struct ITaskbarListVtbl *lpVtbl;
|
||||
LONG refcount;
|
||||
};
|
||||
|
||||
/* IUnknown methods */
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_QueryInterface(ITaskbarList *iface, REFIID riid, void **object)
|
||||
{
|
||||
TRACE("iface %p, riid %s, object %p\n", iface, debugstr_guid(riid), object);
|
||||
|
||||
if (IsEqualGUID(riid, &IID_ITaskbarList)
|
||||
|| IsEqualGUID(riid, &IID_IUnknown))
|
||||
{
|
||||
IUnknown_AddRef(iface);
|
||||
*object = iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
WARN("%s not implemented, returning E_NOINTERFACE\n", debugstr_guid(riid));
|
||||
|
||||
*object = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
static ULONG STDMETHODCALLTYPE taskbar_list_AddRef(ITaskbarList *iface)
|
||||
{
|
||||
struct taskbar_list *This = (struct taskbar_list *)iface;
|
||||
ULONG refcount = InterlockedIncrement(&This->refcount);
|
||||
|
||||
TRACE("%p increasing refcount to %u\n", This, refcount);
|
||||
|
||||
return refcount;
|
||||
}
|
||||
|
||||
static ULONG STDMETHODCALLTYPE taskbar_list_Release(ITaskbarList *iface)
|
||||
{
|
||||
struct taskbar_list *This = (struct taskbar_list *)iface;
|
||||
ULONG refcount = InterlockedDecrement(&This->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u\n", This, refcount);
|
||||
|
||||
if (!refcount)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
}
|
||||
|
||||
return refcount;
|
||||
}
|
||||
|
||||
/* ITaskbarList methods */
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_HrInit(ITaskbarList *iface)
|
||||
{
|
||||
FIXME("iface %p stub!\n", iface);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_AddTab(ITaskbarList *iface, HWND hwnd)
|
||||
{
|
||||
FIXME("iface %p, hwnd %p stub!\n", iface, hwnd);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_DeleteTab(ITaskbarList *iface, HWND hwnd)
|
||||
{
|
||||
FIXME("iface %p, hwnd %p stub!\n", iface, hwnd);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_ActivateTab(ITaskbarList *iface, HWND hwnd)
|
||||
{
|
||||
FIXME("iface %p, hwnd %p stub!\n", iface, hwnd);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE taskbar_list_SetActiveAlt(ITaskbarList *iface, HWND hwnd)
|
||||
{
|
||||
FIXME("iface %p, hwnd %p stub!\n", iface, hwnd);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static const struct ITaskbarListVtbl taskbar_list_vtbl =
|
||||
{
|
||||
/* IUnknown methods */
|
||||
taskbar_list_QueryInterface,
|
||||
taskbar_list_AddRef,
|
||||
taskbar_list_Release,
|
||||
/* ITaskbarList methods */
|
||||
taskbar_list_HrInit,
|
||||
taskbar_list_AddTab,
|
||||
taskbar_list_DeleteTab,
|
||||
taskbar_list_ActivateTab,
|
||||
taskbar_list_SetActiveAlt,
|
||||
};
|
||||
|
||||
HRESULT TaskbarList_Create(IUnknown *outer, REFIID riid, void **taskbar_list)
|
||||
{
|
||||
struct taskbar_list *object;
|
||||
|
||||
TRACE("outer %p, riid %s, taskbar_list %p\n", outer, debugstr_guid(riid), taskbar_list);
|
||||
|
||||
if (outer)
|
||||
{
|
||||
WARN("Aggregation not supported\n");
|
||||
return CLASS_E_NOAGGREGATION;
|
||||
}
|
||||
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||
if (!object)
|
||||
{
|
||||
ERR("Failed to allocate taskbar list object memory\n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
object->lpVtbl = &taskbar_list_vtbl;
|
||||
object->refcount = 1;
|
||||
|
||||
*taskbar_list = object;
|
||||
|
||||
TRACE("Created ITaskbarList %p\n", object);
|
||||
|
||||
return S_OK;
|
||||
}
|
|
@ -351,7 +351,7 @@ static HRESULT WINAPI WebBrowser_get_Type(IWebBrowser2 *iface, BSTR *Type)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_get_Left(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI WebBrowser_get_Left(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
|
||||
|
@ -361,12 +361,12 @@ static HRESULT WINAPI WebBrowser_get_Left(IWebBrowser2 *iface, long *pl)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_put_Left(IWebBrowser2 *iface, long Left)
|
||||
static HRESULT WINAPI WebBrowser_put_Left(IWebBrowser2 *iface, LONG Left)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
RECT rect;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, Left);
|
||||
TRACE("(%p)->(%d)\n", This, Left);
|
||||
|
||||
if(!This->inplace)
|
||||
return E_UNEXPECTED;
|
||||
|
@ -379,7 +379,7 @@ static HRESULT WINAPI WebBrowser_put_Left(IWebBrowser2 *iface, long Left)
|
|||
return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_get_Top(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI WebBrowser_get_Top(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
|
||||
|
@ -389,12 +389,12 @@ static HRESULT WINAPI WebBrowser_get_Top(IWebBrowser2 *iface, long *pl)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_put_Top(IWebBrowser2 *iface, long Top)
|
||||
static HRESULT WINAPI WebBrowser_put_Top(IWebBrowser2 *iface, LONG Top)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
RECT rect;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, Top);
|
||||
TRACE("(%p)->(%d)\n", This, Top);
|
||||
|
||||
if(!This->inplace)
|
||||
return E_UNEXPECTED;
|
||||
|
@ -407,7 +407,7 @@ static HRESULT WINAPI WebBrowser_put_Top(IWebBrowser2 *iface, long Top)
|
|||
return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_get_Width(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI WebBrowser_get_Width(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
|
||||
|
@ -417,12 +417,12 @@ static HRESULT WINAPI WebBrowser_get_Width(IWebBrowser2 *iface, long *pl)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, long Width)
|
||||
static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, LONG Width)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
RECT rect;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, Width);
|
||||
TRACE("(%p)->(%d)\n", This, Width);
|
||||
|
||||
if(!This->inplace)
|
||||
return E_UNEXPECTED;
|
||||
|
@ -435,7 +435,7 @@ static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, long Width)
|
|||
return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_get_Height(IWebBrowser2 *iface, long *pl)
|
||||
static HRESULT WINAPI WebBrowser_get_Height(IWebBrowser2 *iface, LONG *pl)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
|
||||
|
@ -445,12 +445,12 @@ static HRESULT WINAPI WebBrowser_get_Height(IWebBrowser2 *iface, long *pl)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_put_Height(IWebBrowser2 *iface, long Height)
|
||||
static HRESULT WINAPI WebBrowser_put_Height(IWebBrowser2 *iface, LONG Height)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
RECT rect;
|
||||
|
||||
TRACE("(%p)->(%ld)\n", This, Height);
|
||||
TRACE("(%p)->(%d)\n", This, Height);
|
||||
|
||||
if(!This->inplace)
|
||||
return E_UNEXPECTED;
|
||||
|
@ -534,7 +534,7 @@ static HRESULT WINAPI WebBrowser_get_Name(IWebBrowser2 *iface, BSTR *Name)
|
|||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI WebBrowser_get_HWND(IWebBrowser2 *iface, long *pHWND)
|
||||
static HRESULT WINAPI WebBrowser_get_HWND(IWebBrowser2 *iface, LONG *pHWND)
|
||||
{
|
||||
WebBrowser *This = WEBBROWSER_THIS(iface);
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
30
reactos/include/psdk/shdispid.h
Normal file
30
reactos/include/psdk/shdispid.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* DispIds for Shell Interfaces
|
||||
*
|
||||
* Copyright (C) 2008 Robert Shearman
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#ifndef _SHDISPID_H_
|
||||
#define _SHDISPID_H_
|
||||
|
||||
#define DISPID_SELECTIONCHANGED 200
|
||||
#define DISPID_FILELISTENUMDONE 201
|
||||
#define DISPID_VERBINVOKED 202
|
||||
#define DISPID_DEFAULTVERBINVOKED 203
|
||||
#define DISPID_BEGINDRAG 204
|
||||
|
||||
#endif /* defined _SHDISPID_H_ */
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* COM interfaces for shell objects
|
||||
*
|
||||
* Copyright (C) 2004 Maxime Bellengé
|
||||
* Copyright (C) 2004 Maxime Bellengé
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -25,6 +25,8 @@ import "shtypes.idl";
|
|||
import "servprov.idl";
|
||||
import "comcat.idl";
|
||||
|
||||
#include <shdispid.h>
|
||||
|
||||
/*****************************************************************************
|
||||
* IAutoComplete interface
|
||||
*/
|
||||
|
@ -41,7 +43,7 @@ interface IAutoComplete : IUnknown
|
|||
[in] IUnknown *punkACL,
|
||||
[in] LPCOLESTR pwszRegKeyPath,
|
||||
[in] LPCOLESTR pwszQuickComplete);
|
||||
|
||||
|
||||
HRESULT Enable( [in] BOOL fEnable );
|
||||
}
|
||||
|
||||
|
@ -84,6 +86,29 @@ interface IFolderViewOC : IDispatch
|
|||
HRESULT SetFolderView( [in] IDispatch *pdisp );
|
||||
}
|
||||
|
||||
[
|
||||
uuid(62112aa2-ebe4-11cf-a5fb-0020afe7292d)
|
||||
]
|
||||
dispinterface DShellFolderViewEvents
|
||||
{
|
||||
properties:
|
||||
methods:
|
||||
[id(DISPID_SELECTIONCHANGED)]
|
||||
void SelectionChanged();
|
||||
|
||||
[id(DISPID_FILELISTENUMDONE)]
|
||||
void EnumDone();
|
||||
|
||||
[id(DISPID_VERBINVOKED)]
|
||||
VARIANT_BOOL VerbInvoked();
|
||||
|
||||
[id(DISPID_DEFAULTVERBINVOKED)]
|
||||
VARIANT_BOOL DefaultVerbInvoked();
|
||||
|
||||
[id(DISPID_BEGINDRAG)]
|
||||
VARIANT_BOOL BeginDrag();
|
||||
}
|
||||
|
||||
[
|
||||
uuid(9ba05971-f6a8-11cf-a442-00a0c90a8f39),
|
||||
hidden
|
||||
|
|
|
@ -1428,6 +1428,33 @@ interface IFileSystemBindData : IUnknown
|
|||
[out] WIN32_FIND_DATAW *pfd);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* ITaskbarList interface
|
||||
*/
|
||||
[
|
||||
object,
|
||||
uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
|
||||
pointer_default(unique)
|
||||
]
|
||||
interface ITaskbarList : IUnknown
|
||||
{
|
||||
HRESULT HrInit();
|
||||
|
||||
HRESULT AddTab(
|
||||
[in] HWND hwnd);
|
||||
|
||||
HRESULT DeleteTab(
|
||||
[in] HWND hwnd);
|
||||
|
||||
HRESULT ActivateTab(
|
||||
[in] HWND hwnd);
|
||||
|
||||
HRESULT SetActiveAlt(
|
||||
[in] HWND hwnd);
|
||||
}
|
||||
|
||||
cpp_quote("EXTERN_C const CLSID CLSID_TaskbarList;")
|
||||
|
||||
/*****************************************************************************
|
||||
* IContextMenuCB interface
|
||||
*/
|
||||
|
|
|
@ -75,6 +75,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
|||
#include "dimm.h"
|
||||
#include "isguids.h"
|
||||
#include "objsafe.h"
|
||||
#include "perhist.h"
|
||||
|
||||
/* FIXME: cguids declares GUIDs but does not define their values */
|
||||
|
||||
|
@ -146,6 +147,7 @@ DEFINE_GUID(CLSID_InProcFreeMarshaler, 0x0000033a,0x0000,0x0000,0xc0,0x00,0x0
|
|||
DEFINE_GUID(CLSID_TF_ThreadMgr, 0x529a9e6b,0x6587,0x4f23,0xab,0x9e,0x9c,0x7d,0x68,0x3e,0x3c,0x50);
|
||||
DEFINE_GUID(CLSID_TF_InputProcessorProfiles, 0x33c53a50,0xf456,0x4884,0xb0,0x49,0x85,0xfd,0x64,0x3e,0xcf,0xed);
|
||||
DEFINE_GUID(CLSID_TF_CategoryMgr, 0xA4B544A1,0x438D,0x4B41,0x93,0x25,0x86,0x95,0x23,0xE2,0xD6,0xC7);
|
||||
DEFINE_GUID(CLSID_TaskbarList, 0x56fdf344,0xfd6d,0x11d0,0x95,0x8a,0x00,0x60,0x97,0xc9,0xa0,0x90);
|
||||
DEFINE_GUID(GUID_TFCAT_TIP_KEYBOARD, 0x34745c63,0xb2f0,0x4784,0x8b,0x67,0x5e,0x12,0xc8,0x70,0x1a,0x31);
|
||||
DEFINE_GUID(GUID_TFCAT_TIP_SPEECH, 0xB5A73CD1,0x8355,0x426B,0xA1,0x61,0x25,0x98,0x08,0xF2,0x6B,0x14);
|
||||
DEFINE_GUID(GUID_TFCAT_TIP_HANDWRITING, 0x246ecb87,0xc2f2,0x4abe,0x90,0x5b,0xc8,0xb3,0x8a,0xdd,0x2c,0x43);
|
||||
|
|
Loading…
Reference in a new issue