winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
June 2011
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
809 discussions
Start a n
N
ew thread
Aric Stewart : usp10: Correct ralf glyph offset calculation in PostBase.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 3d56d674aa32e9b8f092695190315652fdb94950 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3d56d674aa32e9b8f09269519…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Tue Jun 21 10:07:53 2011 -0500 usp10: Correct ralf glyph offset calculation in PostBase. --- dlls/usp10/shape.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 104757c..e0b32c9 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -2096,19 +2096,21 @@ static inline INT find_halant_consonant(WCHAR* pwChars, INT index, INT end, lexi static void Apply_Indic_PostBase(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WCHAR* pwChars, INT cChars, IndicSyllable *syllable, WORD *pwOutGlyphs, INT* pcGlyphs, WORD *pwLogClust, lexical_function lexical, IndicSyllable *glyph_index, const char* feat) { INT index, nextIndex; - INT count, g_offset; + INT count, g_offset=0; + INT ralf = syllable->ralf; count = syllable->end - syllable->base; - if (syllable->ralf >= syllable->base) - g_offset = -1; - else - g_offset = 0; index = find_halant_consonant(&pwChars[syllable->base], 0, count, lexical); while (index >= 0) { INT prevCount = *pcGlyphs; + if (ralf >=0 && ralf < index) + { + g_offset--; + ralf = -1; + } nextIndex = apply_GSUB_feature_to_glyph(hdc, psa, psc, pwOutGlyphs, index+glyph_index->base+g_offset, 1, pcGlyphs, feat); if (nextIndex > GSUB_E_NOGLYPH) {
1
0
0
0
Aric Stewart : usp10: Correct Post Base glyph index shifting.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 648b7f2afa2afe114a381f0c9a2e18319cc218ff URL:
http://source.winehq.org/git/wine.git/?a=commit;h=648b7f2afa2afe114a381f0c9…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Tue Jun 21 10:07:49 2011 -0500 usp10: Correct Post Base glyph index shifting. --- dlls/usp10/shape.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index cbe186a..104757c 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -2097,7 +2097,6 @@ static void Apply_Indic_PostBase(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa { INT index, nextIndex; INT count, g_offset; - INT prevCount = *pcGlyphs; count = syllable->end - syllable->base; @@ -2109,12 +2108,13 @@ static void Apply_Indic_PostBase(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa while (index >= 0) { + INT prevCount = *pcGlyphs; nextIndex = apply_GSUB_feature_to_glyph(hdc, psa, psc, pwOutGlyphs, index+glyph_index->base+g_offset, 1, pcGlyphs, feat); if (nextIndex > GSUB_E_NOGLYPH) { UpdateClusters(nextIndex, *pcGlyphs - prevCount, 1, cChars, pwLogClust); + shift_syllable_glyph_indexs(glyph_index,index+glyph_index->start+g_offset, (*pcGlyphs - prevCount)); g_offset += (*pcGlyphs - prevCount); - shift_syllable_glyph_indexs(glyph_index,index+glyph_index->start, g_offset); } index+=2;
1
0
0
0
Jacek Caban : vbscript: Added VBScript class factory implementation.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 0ac5c7d5d270c9a7724ab23d933bed1605d5cfb1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0ac5c7d5d270c9a7724ab23d9…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 16:14:37 2011 +0200 vbscript: Added VBScript class factory implementation. --- .gitignore | 1 + dlls/vbscript/Makefile.in | 1 + dlls/vbscript/vbscript_main.c | 63 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 6f999e1..aa3abb0 100644 --- a/.gitignore +++ b/.gitignore @@ -137,6 +137,7 @@ dlls/sti/sti_wia.h dlls/sti/sti_wia_p.c dlls/urlmon/urlmon_urlmon.h dlls/urlmon/urlmon_urlmon_p.c +dlls/vbscript/vbscript_classes.h dlls/windowscodecs/windowscodecs_wincodec.h dlls/windowscodecs/windowscodecs_wincodec_p.c dlls/wuapi/wuapi_tlb.tlb diff --git a/dlls/vbscript/Makefile.in b/dlls/vbscript/Makefile.in index c319b7d..3e8a3eb 100644 --- a/dlls/vbscript/Makefile.in +++ b/dlls/vbscript/Makefile.in @@ -5,6 +5,7 @@ C_SRCS = \ RC_SRCS = vbscript.rc +IDL_H_SRCS = vbscript_classes.idl IDL_R_SRCS = vbscript_classes.idl @MAKE_DLL_RULES@ diff --git a/dlls/vbscript/vbscript_main.c b/dlls/vbscript/vbscript_main.c index fed2317..ab2d3ef 100644 --- a/dlls/vbscript/vbscript_main.c +++ b/dlls/vbscript/vbscript_main.c @@ -24,8 +24,11 @@ #include "windef.h" #include "winbase.h" +#include "initguid.h" + #include "ole2.h" #include "rpcproxy.h" +#include "vbscript_classes.h" #include "wine/debug.h" @@ -33,6 +36,61 @@ WINE_DEFAULT_DEBUG_CHANNEL(vbscript); static HINSTANCE vbscript_hinstance; +HRESULT WINAPI VBScriptFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppv) +{ + FIXME("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppv); + return E_NOINTERFACE; +} + +static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv) +{ + *ppv = NULL; + + if(IsEqualGUID(&IID_IUnknown, riid)) { + TRACE("(%p)->(IID_IUnknown %p)\n", iface, ppv); + *ppv = iface; + }else if(IsEqualGUID(&IID_IClassFactory, riid)) { + TRACE("(%p)->(IID_IClassFactory %p)\n", iface, ppv); + *ppv = iface; + } + + if(*ppv) { + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; + } + + FIXME("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv); + return E_NOINTERFACE; +} + +static ULONG WINAPI ClassFactory_AddRef(IClassFactory *iface) +{ + TRACE("(%p)\n", iface); + return 2; +} + +static ULONG WINAPI ClassFactory_Release(IClassFactory *iface) +{ + TRACE("(%p)\n", iface); + return 1; +} + +static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock) +{ + TRACE("(%p)->(%x)\n", iface, fLock); + return S_OK; +} + +static const IClassFactoryVtbl VBScriptFactoryVtbl = { + ClassFactory_QueryInterface, + ClassFactory_AddRef, + ClassFactory_Release, + VBScriptFactory_CreateInstance, + ClassFactory_LockServer +}; + +static IClassFactory VBScriptFactory = { &VBScriptFactoryVtbl }; + /****************************************************************** * DllMain (vbscript.@) */ @@ -58,6 +116,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) */ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { + if(IsEqualGUID(&CLSID_VBScript, rclsid)) { + TRACE("(CLSID_VBScript %s %p)\n", debugstr_guid(riid), ppv); + return IClassFactory_QueryInterface(&VBScriptFactory, riid, ppv); + } + FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv); return CLASS_E_CLASSNOTAVAILABLE; }
1
0
0
0
Jacek Caban : vbscript: Added Dll[Un]RegisterServer implementation.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: bab84c0ebed3221a29d4960e705cd66577337eba URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bab84c0ebed3221a29d4960e7…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 16:14:26 2011 +0200 vbscript: Added Dll[Un]RegisterServer implementation. --- dlls/vbscript/Makefile.in | 4 ++ dlls/vbscript/vbscript.rc | 24 +++++++++++++ dlls/vbscript/vbscript.rgs | 64 ++++++++++++++++++++++++++++++++++++ dlls/vbscript/vbscript_classes.idl | 50 ++++++++++++++++++++++++++++ dlls/vbscript/vbscript_main.c | 15 ++++++--- tools/wine.inf.in | 1 + 6 files changed, 153 insertions(+), 5 deletions(-) diff --git a/dlls/vbscript/Makefile.in b/dlls/vbscript/Makefile.in index 7b05715..c319b7d 100644 --- a/dlls/vbscript/Makefile.in +++ b/dlls/vbscript/Makefile.in @@ -3,4 +3,8 @@ MODULE = vbscript.dll C_SRCS = \ vbscript_main.c +RC_SRCS = vbscript.rc + +IDL_R_SRCS = vbscript_classes.idl + @MAKE_DLL_RULES@ diff --git a/dlls/vbscript/vbscript.rc b/dlls/vbscript/vbscript.rc new file mode 100644 index 0000000..311804f --- /dev/null +++ b/dlls/vbscript/vbscript.rc @@ -0,0 +1,24 @@ +/* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <windef.h> + +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL + +/* @makedep: vbscript.rgs */ +2 WINE_REGISTRY vbscript.rgs diff --git a/dlls/vbscript/vbscript.rgs b/dlls/vbscript/vbscript.rgs new file mode 100644 index 0000000..7834e3e --- /dev/null +++ b/dlls/vbscript/vbscript.rgs @@ -0,0 +1,64 @@ +HKCR +{ + NoRemove CLSID + { + '{B54F3741-5B07-11CF-A4B0-00AA004A55E8}' + { + 'Implemented Categories' + { + '{f0b7a1a1-9847-11cf-8f20-00805f2cd064}' + '{f0b7a1a2-9847-11cf-8f20-00805f2cd064}' + } + OLEScript + } + '{B54F3742-5B07-11CF-A4B0-00AA004A55E8}' + { + 'Implemented Categories' + { + '{0aee2a92-bcbb-11d0-8c72-00c04fc2b085}' + } + OLEScript + } + '{B54F3743-5B07-11CF-A4B0-00AA004A55E8}' + { + 'Implemented Categories' + { + '{f0b7a1a1-9847-11cf-8f20-00805f2cd064}' + '{f0b7a1a2-9847-11cf-8f20-00805f2cd064}' + '{f0b7a1a3-9847-11cf-8f20-00805f2cd064}' + } + OLEScript + } + } + 'VBS' = s 'VB Script Language' + { + CLSID = s '{B54F3741-5B07-11CF-A4B0-00AA004A55E8}' + OLEScript + } + 'VBS Author' = s 'VB Script Language Authoring' + { + CLSID = s '{B54F3742-5B07-11CF-A4B0-00AA004A55E8}' + OLEScript + } + 'VBScript' + { + OLEScript + } + 'VBScript Author' + { + OLEScript + } + 'VBScript.Encode' + { + OLEScript + } + 'VBScript.RegExp' + { + OLEScript + } + ForceRemove '.vbs' = s 'VBSFile' + ForceRemove VBSFile = s 'VBScript Script File' + { + ScriptEngine = s 'VBScript' + } +} diff --git a/dlls/vbscript/vbscript_classes.idl b/dlls/vbscript/vbscript_classes.idl new file mode 100644 index 0000000..c800e1b --- /dev/null +++ b/dlls/vbscript/vbscript_classes.idl @@ -0,0 +1,50 @@ +/* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +[ + helpstring("VBScript Regular Expression"), + threading(apartment), + progid("VBScript.RegExp"), + version(5.5), + uuid(3f4daca4-160d-11d2-a8e9-00104b365c9f) +] +coclass VBScriptRegExp {} + +[ + helpstring("VB Script Language"), + threading(both), + progid("VBScript"), + uuid(b54f3741-5b07-11cf-a4b0-00aa004a55e8) +] +coclass VBScript {} + +[ + helpstring("VB Script Language Authoring"), + threading(both), + progid("VBScript Author"), + uuid(b54f3742-5b07-11cf-a4b0-00aa004a55e8) +] +coclass VBScriptAuthor {} + +[ + helpstring("VB Script Language Encoding"), + threading(both), + progid("VBScript.Encode"), + uuid(b54f3743-5b07-11cf-a4b0-00aa004a55e8) +] +coclass VBScriptEncode {} diff --git a/dlls/vbscript/vbscript_main.c b/dlls/vbscript/vbscript_main.c index f8b760e..fed2317 100644 --- a/dlls/vbscript/vbscript_main.c +++ b/dlls/vbscript/vbscript_main.c @@ -24,11 +24,15 @@ #include "windef.h" #include "winbase.h" +#include "ole2.h" +#include "rpcproxy.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(vbscript); +static HINSTANCE vbscript_hinstance; + /****************************************************************** * DllMain (vbscript.@) */ @@ -41,7 +45,8 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) case DLL_WINE_PREATTACH: return FALSE; /* prefer native version */ case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hInstDLL); + DisableThreadLibraryCalls(hInstDLL); + vbscript_hinstance = hInstDLL; break; } @@ -71,8 +76,8 @@ HRESULT WINAPI DllCanUnloadNow(void) */ HRESULT WINAPI DllRegisterServer(void) { - FIXME("()\n"); - return S_OK; + TRACE("()\n"); + return __wine_register_resources(vbscript_hinstance, NULL); } /*********************************************************************** @@ -80,6 +85,6 @@ HRESULT WINAPI DllRegisterServer(void) */ HRESULT WINAPI DllUnregisterServer(void) { - FIXME("()\n"); - return S_OK; + TRACE("()\n"); + return __wine_unregister_resources(vbscript_hinstance, NULL); } diff --git a/tools/wine.inf.in b/tools/wine.inf.in index 8e8eba8..5493f60 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -2558,6 +2558,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,shdocvw.dll,1 11,,sti.dll,1 11,,urlmon.dll,1 +11,,vbscript.dll,1 11,,wbemprox.dll,1 11,,wiaservc.dll,1 11,,windowscodecs.dll,1
1
0
0
0
Jacek Caban : vbscript: Added new DLL.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: c35aa01caabd59ba17e482da7c00dd2e338f041c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c35aa01caabd59ba17e482da7…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 16:14:04 2011 +0200 vbscript: Added new DLL. --- configure | 1 + configure.ac | 1 + dlls/vbscript/Makefile.in | 6 +++ dlls/vbscript/vbscript.spec | 4 ++ dlls/vbscript/vbscript_main.c | 85 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 92586f2..e6baa28 100755 --- a/configure +++ b/configure @@ -15373,6 +15373,7 @@ wine_fn_config_test dlls/usp10/tests usp10_test wine_fn_config_lib uuid wine_fn_config_dll uxtheme enable_uxtheme implib wine_fn_config_test dlls/uxtheme/tests uxtheme_test +wine_fn_config_dll vbscript enable_vbscript wine_fn_config_dll vcomp enable_vcomp wine_fn_config_dll vdhcp.vxd enable_win16 wine_fn_config_dll vdmdbg enable_vdmdbg implib diff --git a/configure.ac b/configure.ac index 2e20f24..b50d5ed 100644 --- a/configure.ac +++ b/configure.ac @@ -2846,6 +2846,7 @@ WINE_CONFIG_TEST(dlls/usp10/tests) WINE_CONFIG_LIB(uuid) WINE_CONFIG_DLL(uxtheme,,[implib]) WINE_CONFIG_TEST(dlls/uxtheme/tests) +WINE_CONFIG_DLL(vbscript) WINE_CONFIG_DLL(vcomp) WINE_CONFIG_DLL(vdhcp.vxd,enable_win16) WINE_CONFIG_DLL(vdmdbg,,[implib]) diff --git a/dlls/vbscript/Makefile.in b/dlls/vbscript/Makefile.in new file mode 100644 index 0000000..7b05715 --- /dev/null +++ b/dlls/vbscript/Makefile.in @@ -0,0 +1,6 @@ +MODULE = vbscript.dll + +C_SRCS = \ + vbscript_main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/vbscript/vbscript.spec b/dlls/vbscript/vbscript.spec new file mode 100644 index 0000000..b16365d --- /dev/null +++ b/dlls/vbscript/vbscript.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer() diff --git a/dlls/vbscript/vbscript_main.c b/dlls/vbscript/vbscript_main.c new file mode 100644 index 0000000..f8b760e --- /dev/null +++ b/dlls/vbscript/vbscript_main.c @@ -0,0 +1,85 @@ +/* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include <stdarg.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(vbscript); + +/****************************************************************** + * DllMain (vbscript.@) + */ +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) +{ + TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv); + + switch(fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstDLL); + break; + } + + return TRUE; +} + +/*********************************************************************** + * DllGetClassObject (vbscript.@) + */ +HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) +{ + FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv); + return CLASS_E_CLASSNOTAVAILABLE; +} + +/*********************************************************************** + * DllCanUnloadNow (vbscript.@) + */ +HRESULT WINAPI DllCanUnloadNow(void) +{ + FIXME("()\n"); + return S_FALSE; +} + +/*********************************************************************** + * DllRegisterServer (vbscript.@) + */ +HRESULT WINAPI DllRegisterServer(void) +{ + FIXME("()\n"); + return S_OK; +} + +/*********************************************************************** + * DllUnregisterServer (vbscript.@) + */ +HRESULT WINAPI DllUnregisterServer(void) +{ + FIXME("()\n"); + return S_OK; +}
1
0
0
0
Jacek Caban : mshtml: Added IDispatchEx support to HTMLTitleElement object.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 0227bf69a9d007318d667eb550e70e388271d7ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0227bf69a9d007318d667eb55…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 13:48:12 2011 +0200 mshtml: Added IDispatchEx support to HTMLTitleElement object. --- dlls/mshtml/htmlhead.c | 14 +++++++++++++- dlls/mshtml/mshtml_private.h | 2 ++ dlls/mshtml/tests/dom.c | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c index 181d0dd..51095ee 100644 --- a/dlls/mshtml/htmlhead.c +++ b/dlls/mshtml/htmlhead.c @@ -158,6 +158,18 @@ static const NodeImplVtbl HTMLTitleElementImplVtbl = { HTMLElement_clone, }; +static const tid_t HTMLTitleElement_iface_tids[] = { + HTMLELEMENT_TIDS, + IHTMLTitleElement_tid, + 0 +}; +static dispex_static_data_t HTMLTitleElement_dispex = { + NULL, + DispHTMLTitleElement_tid, + NULL, + HTMLTitleElement_iface_tids +}; + HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem) { HTMLTitleElement *ret; @@ -169,7 +181,7 @@ HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem ret->IHTMLTitleElement_iface.lpVtbl = &HTMLTitleElementVtbl; ret->element.node.vtbl = &HTMLTitleElementImplVtbl; - HTMLElement_Init(&ret->element, doc, nselem, NULL); + HTMLElement_Init(&ret->element, doc, nselem, &HTMLTitleElement_dispex); *elem = &ret->element; return S_OK; diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 1e6b139..c98f0af 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -101,6 +101,7 @@ typedef struct event_target_t event_target_t; XDIID(DispHTMLTable) \ XDIID(DispHTMLTableRow) \ XDIID(DispHTMLTextAreaElement) \ + XDIID(DispHTMLTitleElement) \ XDIID(DispHTMLUnknownElement) \ XDIID(DispHTMLWindow2) \ XDIID(HTMLDocumentEvents) \ @@ -158,6 +159,7 @@ typedef struct event_target_t event_target_t; XIID(IHTMLTableRow) \ XIID(IHTMLTextAreaElement) \ XIID(IHTMLTextContainer) \ + XIID(IHTMLTitleElement) \ XIID(IHTMLUniqueName) \ XIID(IHTMLWindow2) \ XIID(IHTMLWindow3) \ diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index da890a0..cd4dad9 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -376,7 +376,7 @@ static const elem_type_info_t elem_type_infos[] = { {"", none_iids, NULL}, {"HTML", elem_iids, NULL}, {"HEAD", head_iids, &DIID_DispHTMLHeadElement}, - {"TITLE", title_iids, NULL}, + {"TITLE", title_iids, &DIID_DispHTMLTitleElement}, {"BODY", body_iids, &DIID_DispHTMLBody}, {"A", anchor_iids, &DIID_DispHTMLAnchorElement}, {"INPUT", input_iids, &DIID_DispHTMLInputElement},
1
0
0
0
Jacek Caban : mshtml: Added IHTMLTitleElement stub implementation.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: ff7e0417164f7267bcdb0c3296218c83cf6d7865 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ff7e0417164f7267bcdb0c329…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 13:48:00 2011 +0200 mshtml: Added IHTMLTitleElement stub implementation. --- dlls/mshtml/htmlelem.c | 2 + dlls/mshtml/htmlhead.c | 144 ++++++++++++++++++++++++++++++++++++++++++ dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/tests/dom.c | 9 +++- 4 files changed, 155 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 24d7b08..40c8ff5 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -53,6 +53,7 @@ static const WCHAR selectW[] = {'S','E','L','E','C','T',0}; static const WCHAR styleW[] = {'S','T','Y','L','E',0}; static const WCHAR tableW[] = {'T','A','B','L','E',0}; static const WCHAR textareaW[] = {'T','E','X','T','A','R','E','A',0}; +static const WCHAR title_tagW[]= {'T','I','T','L','E',0}; static const WCHAR trW[] = {'T','R',0}; typedef struct { @@ -77,6 +78,7 @@ static const tag_desc_t tag_descs[] = { {styleW, HTMLStyleElement_Create}, {tableW, HTMLTable_Create}, {textareaW, HTMLTextAreaElement_Create}, + {title_tagW, HTMLTitleElement_Create}, {trW, HTMLTableRow_Create} }; diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c index eacbcd4..181d0dd 100644 --- a/dlls/mshtml/htmlhead.c +++ b/dlls/mshtml/htmlhead.c @@ -34,6 +34,150 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml); typedef struct { HTMLElement element; + IHTMLTitleElement IHTMLTitleElement_iface; +} HTMLTitleElement; + +static inline HTMLTitleElement *impl_from_IHTMLTitleElement(IHTMLTitleElement *iface) +{ + return CONTAINING_RECORD(iface, HTMLTitleElement, IHTMLTitleElement_iface); +} + +static HRESULT WINAPI HTMLTitleElement_QueryInterface(IHTMLTitleElement *iface, + REFIID riid, void **ppv) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv); +} + +static ULONG WINAPI HTMLTitleElement_AddRef(IHTMLTitleElement *iface) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface); +} + +static ULONG WINAPI HTMLTitleElement_Release(IHTMLTitleElement *iface) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface); +} + +static HRESULT WINAPI HTMLTitleElement_GetTypeInfoCount(IHTMLTitleElement *iface, UINT *pctinfo) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IDispatchEx_GetTypeInfoCount(&This->element.node.dispex.IDispatchEx_iface, pctinfo); +} + +static HRESULT WINAPI HTMLTitleElement_GetTypeInfo(IHTMLTitleElement *iface, UINT iTInfo, + LCID lcid, ITypeInfo **ppTInfo) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IDispatchEx_GetTypeInfo(&This->element.node.dispex.IDispatchEx_iface, iTInfo, lcid, + ppTInfo); +} + +static HRESULT WINAPI HTMLTitleElement_GetIDsOfNames(IHTMLTitleElement *iface, REFIID riid, + LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IDispatchEx_GetIDsOfNames(&This->element.node.dispex.IDispatchEx_iface, riid, rgszNames, + cNames, lcid, rgDispId); +} + +static HRESULT WINAPI HTMLTitleElement_Invoke(IHTMLTitleElement *iface, DISPID dispIdMember, + REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, + VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + + return IDispatchEx_Invoke(&This->element.node.dispex.IDispatchEx_iface, dispIdMember, riid, + lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); +} + +static HRESULT WINAPI HTMLTitleElement_put_text(IHTMLTitleElement *iface, BSTR v) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + FIXME("(%p)->(%s)\n", This, debugstr_w(v)); + return E_NOTIMPL; +} + +static HRESULT WINAPI HTMLTitleElement_get_text(IHTMLTitleElement *iface, BSTR *p) +{ + HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface); + FIXME("(%p)->(%p)\n", This, p); + return E_NOTIMPL; +} + +static const IHTMLTitleElementVtbl HTMLTitleElementVtbl = { + HTMLTitleElement_QueryInterface, + HTMLTitleElement_AddRef, + HTMLTitleElement_Release, + HTMLTitleElement_GetTypeInfoCount, + HTMLTitleElement_GetTypeInfo, + HTMLTitleElement_GetIDsOfNames, + HTMLTitleElement_Invoke, + HTMLTitleElement_put_text, + HTMLTitleElement_get_text +}; + +static inline HTMLTitleElement *HTMLTitleElement_from_HTMLDOMNode(HTMLDOMNode *iface) +{ + return CONTAINING_RECORD(iface, HTMLTitleElement, element.node); +} + +static HRESULT HTMLTitleElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv) +{ + HTMLTitleElement *This = HTMLTitleElement_from_HTMLDOMNode(iface); + + if(IsEqualGUID(&IID_IHTMLTitleElement, riid)) { + TRACE("(%p)->(IID_IHTMLTitleElement %p)\n", This, ppv); + *ppv = &This->IHTMLTitleElement_iface; + }else { + return HTMLElement_QI(&This->element.node, riid, ppv); + } + + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; +} + +static void HTMLTitleElement_destructor(HTMLDOMNode *iface) +{ + HTMLTitleElement *This = HTMLTitleElement_from_HTMLDOMNode(iface); + + HTMLElement_destructor(&This->element.node); +} + +static const NodeImplVtbl HTMLTitleElementImplVtbl = { + HTMLTitleElement_QI, + HTMLTitleElement_destructor, + HTMLElement_clone, +}; + +HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem) +{ + HTMLTitleElement *ret; + + ret = heap_alloc_zero(sizeof(*ret)); + if(!ret) + return E_OUTOFMEMORY; + + ret->IHTMLTitleElement_iface.lpVtbl = &HTMLTitleElementVtbl; + ret->element.node.vtbl = &HTMLTitleElementImplVtbl; + + HTMLElement_Init(&ret->element, doc, nselem, NULL); + + *elem = &ret->element; + return S_OK; +} + +typedef struct { + HTMLElement element; + IHTMLHeadElement IHTMLHeadElement_iface; } HTMLHeadElement; diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 0b0b6b0..1e6b139 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -793,6 +793,7 @@ HRESULT HTMLSelectElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElemen HRESULT HTMLTable_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLTableRow_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; +HRESULT HTMLTitleElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLGenericElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; void HTMLDOMNode_Init(HTMLDocumentNode*,HTMLDOMNode*,nsIDOMNode*) DECLSPEC_HIDDEN; diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index a637a3f..da890a0 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -288,6 +288,13 @@ static const IID * const head_iids[] = { NULL }; +static const IID * const title_iids[] = { + ELEM_IFACES, + &IID_IHTMLTitleElement, + &IID_IConnectionPointContainer, + NULL +}; + static const IID * const object_iids[] = { ELEM_IFACES, &IID_IHTMLObjectElement, @@ -369,7 +376,7 @@ static const elem_type_info_t elem_type_infos[] = { {"", none_iids, NULL}, {"HTML", elem_iids, NULL}, {"HEAD", head_iids, &DIID_DispHTMLHeadElement}, - {"TITLE", elem_iids, NULL}, + {"TITLE", title_iids, NULL}, {"BODY", body_iids, &DIID_DispHTMLBody}, {"A", anchor_iids, &DIID_DispHTMLAnchorElement}, {"INPUT", input_iids, &DIID_DispHTMLInputElement},
1
0
0
0
Jacek Caban : mshtml.idl: Added title element interfaces.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: f494de40877cffc1a4546577512ad433bb7b02ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f494de40877cffc1a45465775…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 13:47:40 2011 +0200 mshtml.idl: Added title element interfaces. --- include/mshtmdid.h | 3 +++ include/mshtml.idl | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 0 deletions(-) diff --git a/include/mshtmdid.h b/include/mshtmdid.h index ad09bdb..6eaf7cd 100644 --- a/include/mshtmdid.h +++ b/include/mshtmdid.h @@ -2288,6 +2288,9 @@ /* IHTMLHeadElement2 */ #define DISPID_IHTMLHEADELEMENT2_IE8_PROFILE DISPID_IE8_HEAD +/* IHTMLTitleElement */ +#define DISPID_IHTMLTITLEELEMENT_TEXT DISPID_A_VALUE + /* IHTMLRect */ #define DISPID_IHTMLRECT_LEFT DISPID_OMRECT+1 #define DISPID_IHTMLRECT_TOP DISPID_OMRECT+2 diff --git a/include/mshtml.idl b/include/mshtml.idl index 575f15f..a70f165 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -9223,6 +9223,24 @@ interface IHTMLHeadElement2 : IDispatch } /***************************************************************************** + * IHTMLTitleElement interface + */ +[ + odl, + oleautomation, + dual, + uuid(3050f322-98b5-11cf-bb82-00aa00bdce0b) +] +interface IHTMLTitleElement : IDispatch +{ + [propput, id(DISPID_IHTMLTITLEELEMENT_TEXT), bindable] + HRESULT text([in] BSTR v); + + [propget, id(DISPID_IHTMLTITLEELEMENT_TEXT), bindable] + HRESULT text([retval, out] BSTR *p); +} + +/***************************************************************************** * DispHTMLHeadElement interface */ [ @@ -9249,6 +9267,26 @@ methods: } /***************************************************************************** + * DispHTMLTitleElement interface + */ +[ + hidden, + uuid(3050f516-98b5-11cf-bb82-00aa00bdce0b) +] +dispinterface DispHTMLTitleElement +{ +properties: +methods: + WINE_HTMLELEMENT_DISPINTERFACE_DECL; + + [propput, id(DISPID_IHTMLTITLEELEMENT_TEXT), bindable] + void text(BSTR v); + + [propget, id(DISPID_IHTMLTITLEELEMENT_TEXT), bindable] + BSTR text(); +} + +/***************************************************************************** * DispHTMLUnknownElement interface */ [
1
0
0
0
Jacek Caban : mshtml: Added IDispatchEx support to HTMLHeadElement object.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 0912436e6e2555c85f5f77a748f6b5bfad546bf6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0912436e6e2555c85f5f77a74…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 13:47:20 2011 +0200 mshtml: Added IDispatchEx support to HTMLHeadElement object. --- dlls/mshtml/htmlhead.c | 14 +++++++++++++- dlls/mshtml/mshtml_private.h | 2 ++ dlls/mshtml/tests/dom.c | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c index aee2157..eacbcd4 100644 --- a/dlls/mshtml/htmlhead.c +++ b/dlls/mshtml/htmlhead.c @@ -159,6 +159,18 @@ static const NodeImplVtbl HTMLHeadElementImplVtbl = { HTMLElement_clone }; +static const tid_t HTMLHeadElement_iface_tids[] = { + HTMLELEMENT_TIDS, + IHTMLHeadElement_tid, + 0 +}; +static dispex_static_data_t HTMLHeadElement_dispex = { + NULL, + DispHTMLHeadElement_tid, + NULL, + HTMLHeadElement_iface_tids +}; + HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem) { HTMLHeadElement *ret; @@ -170,7 +182,7 @@ HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl; ret->element.node.vtbl = &HTMLHeadElementImplVtbl; - HTMLElement_Init(&ret->element, doc, nselem, NULL); + HTMLElement_Init(&ret->element, doc, nselem, &HTMLHeadElement_dispex); *elem = &ret->element; return S_OK; diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index ea62a46..0b0b6b0 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -84,6 +84,7 @@ typedef struct event_target_t event_target_t; XDIID(DispHTMLFormElement) \ XDIID(DispHTMLGenericElement) \ XDIID(DispHTMLFrameElement) \ + XDIID(DispHTMLHeadElement) \ XDIID(DispHTMLIFrame) \ XDIID(DispHTMLImg) \ XDIID(DispHTMLInputElement) \ @@ -133,6 +134,7 @@ typedef struct event_target_t event_target_t; XIID(IHTMLFrameBase2) \ XIID(IHTMLFrameElement3) \ XIID(IHTMLGenericElement) \ + XIID(IHTMLHeadElement) \ XIID(IHTMLIFrameElement) \ XIID(IHTMLImageElementFactory) \ XIID(IHTMLImgElement) \ diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 9672943..a637a3f 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -368,7 +368,7 @@ typedef struct { static const elem_type_info_t elem_type_infos[] = { {"", none_iids, NULL}, {"HTML", elem_iids, NULL}, - {"HEAD", head_iids, NULL}, + {"HEAD", head_iids, &DIID_DispHTMLHeadElement}, {"TITLE", elem_iids, NULL}, {"BODY", body_iids, &DIID_DispHTMLBody}, {"A", anchor_iids, &DIID_DispHTMLAnchorElement},
1
0
0
0
Jacek Caban : mshtml: Added IHTMLHeadElement stub implementation.
by Alexandre Julliard
21 Jun '11
21 Jun '11
Module: wine Branch: master Commit: 74e95a13b302a2c63d73609a546078a0d7a020f5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74e95a13b302a2c63d73609a5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jun 21 13:47:09 2011 +0200 mshtml: Added IHTMLHeadElement stub implementation. --- dlls/mshtml/Makefile.in | 1 + dlls/mshtml/htmlelem.c | 2 + dlls/mshtml/htmlhead.c | 177 ++++++++++++++++++++++++++++++++++++++++++ dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/tests/dom.c | 9 ++- 5 files changed, 189 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/Makefile.in b/dlls/mshtml/Makefile.in index ea716fb..1732951 100644 --- a/dlls/mshtml/Makefile.in +++ b/dlls/mshtml/Makefile.in @@ -27,6 +27,7 @@ C_SRCS = \ htmlframe.c \ htmlframebase.c \ htmlgeneric.c \ + htmlhead.c \ htmliframe.c \ htmlimg.c \ htmlinput.c \ diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 603ae9b..24d7b08 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -42,6 +42,7 @@ static const WCHAR bodyW[] = {'B','O','D','Y',0}; static const WCHAR embedW[] = {'E','M','B','E','D',0}; static const WCHAR formW[] = {'F','O','R','M',0}; static const WCHAR frameW[] = {'F','R','A','M','E',0}; +static const WCHAR headW[] = {'H','E','A','D',0}; static const WCHAR iframeW[] = {'I','F','R','A','M','E',0}; static const WCHAR imgW[] = {'I','M','G',0}; static const WCHAR inputW[] = {'I','N','P','U','T',0}; @@ -65,6 +66,7 @@ static const tag_desc_t tag_descs[] = { {embedW, HTMLEmbedElement_Create}, {formW, HTMLFormElement_Create}, {frameW, HTMLFrameElement_Create}, + {headW, HTMLHeadElement_Create}, {iframeW, HTMLIFrame_Create}, {imgW, HTMLImgElement_Create}, {inputW, HTMLInputElement_Create}, diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c new file mode 100644 index 0000000..aee2157 --- /dev/null +++ b/dlls/mshtml/htmlhead.c @@ -0,0 +1,177 @@ + /* + * Copyright 2011 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "ole2.h" + +#include "wine/debug.h" + +#include "mshtml_private.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mshtml); + +typedef struct { + HTMLElement element; + + IHTMLHeadElement IHTMLHeadElement_iface; +} HTMLHeadElement; + +static inline HTMLHeadElement *impl_from_IHTMLHeadElement(IHTMLHeadElement *iface) +{ + return CONTAINING_RECORD(iface, HTMLHeadElement, IHTMLHeadElement_iface); +} + +static HRESULT WINAPI HTMLHeadElement_QueryInterface(IHTMLHeadElement *iface, + REFIID riid, void **ppv) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv); +} + +static ULONG WINAPI HTMLHeadElement_AddRef(IHTMLHeadElement *iface) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface); +} + +static ULONG WINAPI HTMLHeadElement_Release(IHTMLHeadElement *iface) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface); +} + +static HRESULT WINAPI HTMLHeadElement_GetTypeInfoCount(IHTMLHeadElement *iface, UINT *pctinfo) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IDispatchEx_GetTypeInfoCount(&This->element.node.dispex.IDispatchEx_iface, pctinfo); +} + +static HRESULT WINAPI HTMLHeadElement_GetTypeInfo(IHTMLHeadElement *iface, UINT iTInfo, + LCID lcid, ITypeInfo **ppTInfo) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IDispatchEx_GetTypeInfo(&This->element.node.dispex.IDispatchEx_iface, iTInfo, lcid, + ppTInfo); +} + +static HRESULT WINAPI HTMLHeadElement_GetIDsOfNames(IHTMLHeadElement *iface, REFIID riid, + LPOLESTR *rgszNames, UINT cNames, + LCID lcid, DISPID *rgDispId) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IDispatchEx_GetIDsOfNames(&This->element.node.dispex.IDispatchEx_iface, riid, rgszNames, + cNames, lcid, rgDispId); +} + +static HRESULT WINAPI HTMLHeadElement_Invoke(IHTMLHeadElement *iface, DISPID dispIdMember, + REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, + VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + + return IDispatchEx_Invoke(&This->element.node.dispex.IDispatchEx_iface, dispIdMember, riid, + lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); +} + +static HRESULT WINAPI HTMLHeadElement_put_profile(IHTMLHeadElement *iface, BSTR v) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + FIXME("(%p)->(%s)\n", This, debugstr_w(v)); + return E_NOTIMPL; +} + +static HRESULT WINAPI HTMLHeadElement_get_profile(IHTMLHeadElement *iface, BSTR *p) +{ + HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface); + FIXME("(%p)->(%p)\n", This, p); + return E_NOTIMPL; +} + +static const IHTMLHeadElementVtbl HTMLHeadElementVtbl = { + HTMLHeadElement_QueryInterface, + HTMLHeadElement_AddRef, + HTMLHeadElement_Release, + HTMLHeadElement_GetTypeInfoCount, + HTMLHeadElement_GetTypeInfo, + HTMLHeadElement_GetIDsOfNames, + HTMLHeadElement_Invoke, + HTMLHeadElement_put_profile, + HTMLHeadElement_get_profile +}; + +static inline HTMLHeadElement *impl_from_HTMLDOMNode(HTMLDOMNode *iface) +{ + return CONTAINING_RECORD(iface, HTMLHeadElement, element.node); +} + +static HRESULT HTMLHeadElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv) +{ + HTMLHeadElement *This = impl_from_HTMLDOMNode(iface); + + if(IsEqualGUID(&IID_IHTMLHeadElement, riid)) { + TRACE("(%p)->(IID_IHTMLHeadElement %p)\n", This, ppv); + *ppv = &This->IHTMLHeadElement_iface; + }else { + HTMLElement_QI(&This->element.node, riid, ppv); + } + + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; +} + +static void HTMLHeadElement_destructor(HTMLDOMNode *iface) +{ + HTMLHeadElement *This = impl_from_HTMLDOMNode(iface); + + HTMLElement_destructor(&This->element.node); +} + +static const NodeImplVtbl HTMLHeadElementImplVtbl = { + HTMLHeadElement_QI, + HTMLHeadElement_destructor, + HTMLElement_clone +}; + +HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem) +{ + HTMLHeadElement *ret; + + ret = heap_alloc_zero(sizeof(*ret)); + if(!ret) + return E_OUTOFMEMORY; + + ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl; + ret->element.node.vtbl = &HTMLHeadElementImplVtbl; + + HTMLElement_Init(&ret->element, doc, nselem, NULL); + + *elem = &ret->element; + return S_OK; +} diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index cc17a64..ea62a46 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -779,6 +779,7 @@ HRESULT HTMLBodyElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement* HRESULT HTMLEmbedElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLFormElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLFrameElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; +HRESULT HTMLHeadElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLIFrame_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLStyleElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; HRESULT HTMLImgElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN; diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 414da44..9672943 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -281,6 +281,13 @@ static const IID * const frame_iids[] = { NULL }; +static const IID * const head_iids[] = { + ELEM_IFACES, + &IID_IHTMLHeadElement, + &IID_IConnectionPointContainer, + NULL +}; + static const IID * const object_iids[] = { ELEM_IFACES, &IID_IHTMLObjectElement, @@ -361,7 +368,7 @@ typedef struct { static const elem_type_info_t elem_type_infos[] = { {"", none_iids, NULL}, {"HTML", elem_iids, NULL}, - {"HEAD", elem_iids, NULL}, + {"HEAD", head_iids, NULL}, {"TITLE", elem_iids, NULL}, {"BODY", body_iids, &DIID_DispHTMLBody}, {"A", anchor_iids, &DIID_DispHTMLAnchorElement},
1
0
0
0
← Newer
1
...
19
20
21
22
23
24
25
...
81
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Results per page:
10
25
50
100
200