Add stub implementation of the Uniscribe Script Processor.
diff --git a/dlls/Makefile.in b/dlls/Makefile.in index d64485a..7121c16 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in
@@ -137,6 +137,7 @@ url \ urlmon \ user \ + usp10 \ uxtheme \ vdhcp.vxd \ vdmdbg \ @@ -385,6 +386,7 @@ url.dll.so \ urlmon.dll.so \ user32.dll.so \ + usp10.dll.so \ uxtheme.dll.so \ vdhcp.vxd.so \ vdmdbg.dll.so \ @@ -892,6 +894,9 @@ mouse.drv.so user.exe.so : user32.dll.so $(RM) $@ && $(LN_S) user32.dll.so $@ +usp10.dll.so: usp10/usp10.dll.so + $(RM) $@ && $(LN_S) usp10/usp10.dll.so $@ + uxtheme.dll.so: uxtheme/uxtheme.dll.so $(RM) $@ && $(LN_S) uxtheme/uxtheme.dll.so $@ @@ -1166,6 +1171,7 @@ url/liburl.$(IMPLIBEXT) \ urlmon/liburlmon.$(IMPLIBEXT) \ user/libuser32.$(IMPLIBEXT) \ + usp10/libusp10.$(IMPLIBEXT) \ uxtheme/libuxtheme.$(IMPLIBEXT) \ vdmdbg/libvdmdbg.$(IMPLIBEXT) \ version/libversion.$(IMPLIBEXT) \ @@ -1484,6 +1490,9 @@ user/libuser32.$(IMPLIBEXT): user/user32.spec $(WINEBUILD) @cd user && $(MAKE) libuser32.$(IMPLIBEXT) +usp10/libusp10.$(IMPLIBEXT): usp10/usp10.spec $(WINEBUILD) + @cd usp10 && $(MAKE) libusp10.$(IMPLIBEXT) + uxtheme/libuxtheme.$(IMPLIBEXT): uxtheme/uxtheme.spec $(WINEBUILD) @cd uxtheme && $(MAKE) libuxtheme.$(IMPLIBEXT) @@ -1727,6 +1736,7 @@ url/url.dll.so: url urlmon/urlmon.dll.so: urlmon user/user32.dll.so: user +usp10/usp10.dll.so: usp10 uxtheme/uxtheme.dll.so: uxtheme vdhcp.vxd/vdhcp.vxd.so: vdhcp.vxd vdmdbg/vdmdbg.dll.so: vdmdbg
diff --git a/dlls/usp10/.cvsignore b/dlls/usp10/.cvsignore new file mode 100644 index 0000000..ee49f33 --- /dev/null +++ b/dlls/usp10/.cvsignore
@@ -0,0 +1,3 @@ +Makefile +libusp10.def +usp10.dll.dbg.c
diff --git a/dlls/usp10/Makefile.in b/dlls/usp10/Makefile.in new file mode 100644 index 0000000..0b99a8f --- /dev/null +++ b/dlls/usp10/Makefile.in
@@ -0,0 +1,14 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = usp10.dll +IMPORTLIB = libusp10.$(IMPLIBEXT) +IMPORTS = kernel32 + +C_SRCS = \ + usp10.c + +@MAKE_DLL_RULES@ + +### Dependencies:
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c new file mode 100644 index 0000000..096f626 --- /dev/null +++ b/dlls/usp10/usp10.c
@@ -0,0 +1,74 @@ +/* + * Implementation of Uniscribe Script Processor (usp10.dll) + * + * Copyright 2005 Steven Edwards 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Notes: + * Uniscribe allows for processing of complex scripts such as joining + * and filtering characters and bi-directional text with custom line breaks. + */ + +#include <stdarg.h> + +#include <windef.h> +#include <winbase.h> +#include <winuser.h> +#include <usp10.h> + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(uniscribe); + +BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) +{ + switch(fdwReason) { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hInstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + +HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts) +{ + FIXME("%p,%p\n",ppSp,piNumScripts); + return E_NOTIMPL; +} + +HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale,SCRIPT_DIGITSUBSTITUTE *psds) +{ + FIXME("%ld,%p\n",Locale,psds); + return E_NOTIMPL; +} + +HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE* psds, + SCRIPT_CONTROL* psc, SCRIPT_STATE* pss) +{ + FIXME("%p,%p,%p\n",psds,psc,pss); + return E_NOTIMPL; +} + +HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItems, + const SCRIPT_CONTROL *psControl, const SCRIPT_STATE *psState, + SCRIPT_ITEM *pItems, int *pcItems) +{ + FIXME("%s,%d,%d,%p,%p,%p,%p\n", debugstr_w(pwcInChars), cInChars, cMaxItems, + psControl, psState, pItems, pcItems); + return E_INVALIDARG; +}
diff --git a/dlls/usp10/usp10.spec b/dlls/usp10/usp10.spec new file mode 100644 index 0000000..eafa16e --- /dev/null +++ b/dlls/usp10/usp10.spec
@@ -0,0 +1,35 @@ +@ stub LpkPresent +@ stdcall ScriptApplyDigitSubstitution(ptr ptr ptr) +@ stub ScriptApplyLogicalWidth +@ stub ScriptBreak +@ stub ScriptCacheGetHeight +@ stub ScriptCPtoX +@ stub ScriptFreeCache +@ stub ScriptGetCMap +@ stub ScriptGetFontProperties +@ stub ScriptGetGlyphABCWidth +@ stub ScriptGetLogicalWidths +@ stdcall ScriptGetProperties(ptr long) +@ stub ScriptIsComplex +@ stdcall ScriptItemize(wstr long long ptr ptr ptr ptr) +@ stub ScriptJustify +@ stub ScriptLayout +@ stub ScriptPlace +@ stdcall ScriptRecordDigitSubstitution(ptr ptr) +@ stub ScriptShape +@ stub ScriptString_pcOutChars +@ stub ScriptString_pLogAttr +@ stub ScriptString_pSize +@ stub ScriptStringAnalyse +@ stub ScriptStringCPtoX +@ stub ScriptStringFree +@ stub ScriptStringGetLogicalWidths +@ stub ScriptStringGetOrder +@ stub ScriptStringOut +@ stub ScriptStringValidate +@ stub ScriptStringXtoCP +@ stub ScriptTextOut +@ stub ScriptXtoCP +@ stub UspAllocCache +@ stub UspAllocTemp +@ stub UspFreeMem