Wine-20041201 vendor drop
Added: vendor/wine/dlls/commdlg/ Added: vendor/wine/dlls/commdlg/current/ Added: vendor/wine/dlls/commdlg/current/Makefile.in Added: vendor/wine/dlls/commdlg/current/cdlg.h Added: vendor/wine/dlls/commdlg/current/cdlg16.h Added: vendor/wine/dlls/commdlg/current/cdlg32.c Added: vendor/wine/dlls/commdlg/current/cdlg_Ca.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Cn.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Cs.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Da.rc Added: vendor/wine/dlls/commdlg/current/cdlg_De.rc Added: vendor/wine/dlls/commdlg/current/cdlg_En.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Eo.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Es.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Fi.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Fr.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Hu.rc Added: vendor/wine/dlls/commdlg/current/cdlg_It.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Ja.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Ko.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Nl.rc Added: vendor/wine/dlls/commdlg/current/cdlg_No.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Pl.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Pt.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Ru.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Si.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Sk.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Sv.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Th.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Uk.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Wa.rc Added: vendor/wine/dlls/commdlg/current/cdlg_Zh.rc Added: vendor/wine/dlls/commdlg/current/cdlg_xx.rc Added: vendor/wine/dlls/commdlg/current/colordlg.c Added: vendor/wine/dlls/commdlg/current/colordlg16.c Added: vendor/wine/dlls/commdlg/current/comdlg32.spec Added: vendor/wine/dlls/commdlg/current/commdlg.spec Added: vendor/wine/dlls/commdlg/current/filedlg.c Added: vendor/wine/dlls/commdlg/current/filedlg16.c Added: vendor/wine/dlls/commdlg/current/filedlg31.c Added: vendor/wine/dlls/commdlg/current/filedlg31.h Added: vendor/wine/dlls/commdlg/current/filedlgbrowser.c Added: vendor/wine/dlls/commdlg/current/filedlgbrowser.h Added: vendor/wine/dlls/commdlg/current/filetitle.c Added: vendor/wine/dlls/commdlg/current/finddlg.c Added: vendor/wine/dlls/commdlg/current/finddlg32.c Added: vendor/wine/dlls/commdlg/current/fontdlg.c Added: vendor/wine/dlls/commdlg/current/fontdlg16.c Added: vendor/wine/dlls/commdlg/current/generic.c Added: vendor/wine/dlls/commdlg/current/printdlg.c Added: vendor/wine/dlls/commdlg/current/printdlg.h Added: vendor/wine/dlls/commdlg/current/printdlg16.c Added: vendor/wine/dlls/commdlg/current/rsrc.rc
--- vendor/wine/dlls/commdlg/current/Makefile.in 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/Makefile.in 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,48 @@
+TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = comdlg32.dll +IMPORTS = shell32 shlwapi comctl32 winspool user32 gdi32 kernel32 ntdll +EXTRALIBS = -luuid + +C_SRCS = \ + cdlg32.c \ + colordlg.c \ + filedlg.c \ + filedlg31.c \ + filedlgbrowser.c \ + filetitle.c \ + finddlg32.c \ + fontdlg.c \ + printdlg.c + +C_SRCS16 = \ + colordlg16.c \ + filedlg16.c \ + finddlg.c \ + fontdlg16.c \ + generic.c \ + printdlg16.c + +SPEC_SRCS16 = commdlg.spec + +RC_SRCS = rsrc.rc +RC_BINSRC = cdlg_xx.rc +RC_BINARIES = \ + 800.bmp \ + cdrom.ico \ + floppy.ico \ + folder.ico \ + folder2.ico \ + fontpics.bmp \ + hdisk.ico \ + network.ico \ + pd32_collate.ico \ + pd32_landscape.ico \ + pd32_nocollate.ico \ + pd32_portrait.ico + +@MAKE_DLL_RULES@ + +### Dependencies:
--- vendor/wine/dlls/commdlg/current/cdlg.h 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/cdlg.h 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,224 @@
+/* + * Common Dialog Boxes interface (32 bit) + * + * Copyright 1998 Bertho A. Stultiens + * + * 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 + */ + +#ifndef _WINE_DLL_CDLG_H +#define _WINE_DLL_CDLG_H + +#define COM_NO_WINDOWS_H +#include "dlgs.h" +#include "wownt32.h" + +/* Common dialogs implementation globals */ +#define COMDLG32_Atom ((ATOM)0xa000) /* MS uses this one to identify props */ + +extern HINSTANCE COMDLG32_hInstance; + +void COMDLG32_SetCommDlgExtendedError(DWORD err); +LPVOID COMDLG32_AllocMem(int size); + +/* handle<-handle16 conversion */ +#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16)) + +/* Find/Replace local definitions */ + +#define FR_WINE_UNICODE 0x80000000 +#define FR_WINE_REPLACE 0x40000000 + +typedef struct { + FINDREPLACEA fr; /* Internally used structure */ + union { + FINDREPLACEA *fra; /* Reference to the user supplied structure */ + FINDREPLACEW *frw; + } user_fr; +} COMDLG32_FR_Data; + +#define PD32_PRINT_TITLE 7000 + +#define PD32_VALUE_UREADABLE 1104 +#define PD32_INVALID_PAGE_RANGE 1105 +#define PD32_FROM_NOT_ABOVE_TO 1106 +#define PD32_MARGINS_OVERLAP 1107 +#define PD32_NR_OF_COPIES_EMPTY 1108 +#define PD32_TOO_LARGE_COPIES 1109 +#define PD32_PRINT_ERROR 1110 +#define PD32_NO_DEFAULT_PRINTER 1111 +#define PD32_CANT_FIND_PRINTER 1112 +#define PD32_OUT_OF_MEMORY 1113 +#define PD32_GENERIC_ERROR 1114 +#define PD32_DRIVER_UNKNOWN 1115 + +#define PD32_PRINTER_STATUS_READY 1536 +#define PD32_PRINTER_STATUS_PAUSED 1537 +#define PD32_PRINTER_STATUS_ERROR 1538 +#define PD32_PRINTER_STATUS_PENDING_DELETION 1539 +#define PD32_PRINTER_STATUS_PAPER_JAM 1540 +#define PD32_PRINTER_STATUS_PAPER_OUT 1541 +#define PD32_PRINTER_STATUS_MANUAL_FEED 1542 +#define PD32_PRINTER_STATUS_PAPER_PROBLEM 1543 +#define PD32_PRINTER_STATUS_OFFLINE 1544 +#define PD32_PRINTER_STATUS_IO_ACTIVE 1545 +#define PD32_PRINTER_STATUS_BUSY 1546 +#define PD32_PRINTER_STATUS_PRINTING 1547 +#define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL 1548 +#define PD32_PRINTER_STATUS_NOT_AVAILABLE 1549 +#define PD32_PRINTER_STATUS_WAITING 1550 +#define PD32_PRINTER_STATUS_PROCESSING 1551 +#define PD32_PRINTER_STATUS_INITIALIZING 1552 +#define PD32_PRINTER_STATUS_WARMING_UP 1553 +#define PD32_PRINTER_STATUS_TONER_LOW 1554 +#define PD32_PRINTER_STATUS_NO_TONER 1555 +#define PD32_PRINTER_STATUS_PAGE_PUNT 1556 +#define PD32_PRINTER_STATUS_USER_INTERVENTION 1557 +#define PD32_PRINTER_STATUS_OUT_OF_MEMORY 1558 +#define PD32_PRINTER_STATUS_DOOR_OPEN 1559 +#define PD32_PRINTER_STATUS_SERVER_UNKNOWN 1560 +#define PD32_PRINTER_STATUS_POWER_SAVE 1561 + +#define PD32_DEFAULT_PRINTER 1582 +#define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583 +#define PD32_PRINT_ALL_X_PAGES 1584 +#define PD32_MARGINS_IN_INCHES 1585 +#define PD32_MARGINS_IN_MILIMETERS 1586 +#define PD32_MILIMETERS 1587 + +/* Charset names string IDs */ + +#define IDS_CHARSET_ANSI 200 +#define IDS_CHARSET_SYMBOL 201 +#define IDS_CHARSET_JIS 202 +#define IDS_CHARSET_HANGUL 203 +#define IDS_CHARSET_GB2312 204 +#define IDS_CHARSET_BIG5 205 +#define IDS_CHARSET_GREEK 206 +#define IDS_CHARSET_TURKISH 207 +#define IDS_CHARSET_HEBREW 208 +#define IDS_CHARSET_ARABIC 209 +#define IDS_CHARSET_BALTIC 210 +#define IDS_CHARSET_VIETNAMESE 211 +#define IDS_CHARSET_RUSSIAN 212 +#define IDS_CHARSET_EE 213 +#define IDS_CHARSET_THAI 214 +#define IDS_CHARSET_JOHAB 215 +#define IDS_CHARSET_MAC 216 +#define IDS_CHARSET_OEM 217 +#define IDS_CHARSET_VISCII 218 +#define IDS_CHARSET_TCVN 219 +#define IDS_CHARSET_KOI8 220 +#define IDS_CHARSET_ISO3 221 +#define IDS_CHARSET_ISO4 222 +#define IDS_CHARSET_ISO10 223 +#define IDS_CHARSET_CELTIC 224 + +/* Color names string IDs */ + +#define IDS_COLOR_BLACK 1040 +#define IDS_COLOR_MAROON 1041 +#define IDS_COLOR_GREEN 1042 +#define IDS_COLOR_OLIVE 1043 +#define IDS_COLOR_NAVY 1044 +#define IDS_COLOR_PURPLE 1045 +#define IDS_COLOR_TEAL 1046 +#define IDS_COLOR_GRAY 1047 +#define IDS_COLOR_SILVER 1048 +#define IDS_COLOR_RED 1049 +#define IDS_COLOR_LIME 1050 +#define IDS_COLOR_YELLOW 1051 +#define IDS_COLOR_BLUE 1052 +#define IDS_COLOR_FUCHSIA 1053 +#define IDS_COLOR_AQUA 1054 +#define IDS_COLOR_WHITE 1055 + +#include "windef.h" +#include "winbase.h" +#include "wingdi.h" +#include "winuser.h" +#include "winnls.h" +#include "commctrl.h" +#include "shlobj.h" +#include "shellapi.h" + +/* ITEMIDLIST */ + +extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST); +extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST); +extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST); +extern BOOL (WINAPI *COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST); +extern BOOL (WINAPI *COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST); + +/* SHELL */ +extern LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD); +extern DWORD (WINAPI *COMDLG32_SHFree)(LPVOID); +extern BOOL (WINAPI *COMDLG32_SHGetFolderPathA)(HWND,int,HANDLE,DWORD,LPSTR); +extern BOOL (WINAPI *COMDLG32_SHGetFolderPathW)(HWND,int,HANDLE,DWORD,LPWSTR); + +extern BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType); +extern BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType); + +/* + * Internal Functions + * Do NOT Export to other programs and dlls + */ + +BOOL CC_HookCallChk( LPCHOOSECOLORW lpcc ); +int CC_MouseCheckResultWindow( HWND hDlg, LPARAM lParam ); +LRESULT CC_WMLButtonDown( HWND hDlg, WPARAM wParam, LPARAM lParam ); +LRESULT CC_WMLButtonUp( HWND hDlg, WPARAM wParam, LPARAM lParam ); +LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD + notifyCode, HWND hwndCtl ); +LRESULT CC_WMMouseMove( HWND hDlg, LPARAM lParam ); +LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam ); +void CC_SwitchToFullSize( HWND hDlg, COLORREF result, LPRECT lprect ); +void CC_PaintSelectedColor( HWND hDlg, COLORREF cr ); +int CC_RGBtoHSL(char c, int r, int g, int b); +void CC_PaintCross( HWND hDlg, int x, int y); +void CC_PaintTriangle( HWND hDlg, int y); +int CC_CheckDigitsInEdit( HWND hwnd, int maxval ); +void CC_EditSetHSL( HWND hDlg, int h, int s, int l ); +int CC_HSLtoRGB(char c, int hue, int sat, int lum); +void CC_EditSetRGB( HWND hDlg, COLORREF cr ); +void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr ); + +typedef struct +{ + HWND hWnd1; + HWND hWnd2; + LPCHOOSEFONTA lpcf32a; + int added; +} CFn_ENUMSTRUCT, *LPCFn_ENUMSTRUCT; + +INT AddFontFamily(const ENUMLOGFONTEXA *lpElfex, const NEWTEXTMETRICEXA *lpNTM, + UINT nFontType, LPCHOOSEFONTA lpcf, HWND hwnd, + LPCFn_ENUMSTRUCT e); +INT AddFontStyle(const ENUMLOGFONTEXA *lpElfex, const NEWTEXTMETRICEXA *metrics, + UINT nFontType, LPCHOOSEFONTA lpcf, HWND hcmb2, HWND hcmb3, + HWND hDlg, BOOL iswin16); +void _dump_cf_flags(DWORD cflags); + +LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, + LPCHOOSEFONTA lpcf); +LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam); +LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam); +LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, + LPCHOOSEFONTA lpcf); +LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam, + LPCHOOSEFONTA lpcf); +LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam); + +#endif /* _WINE_DLL_CDLG_H */
--- vendor/wine/dlls/commdlg/current/cdlg16.h 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/cdlg16.h 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,155 @@
+/* + * Common Dialog Boxes interface (16 bit implementation) + * + * Copyright 1994 Martin Ayotte + * Copyright 1996 Albrecht Kleine + * Copyright 1998 Bertho A. Stultiens + * + * 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 + */ + +#ifndef _WINE_DLL_CDLG16_H +#define _WINE_DLL_CDLG16_H + +#define COM_NO_WINDOWS_H +#include "dlgs.h" +#include "wine/windef16.h" +#include "wine/winbase16.h" +#include "wine/winuser16.h" +#include "wownt32.h" + +/* 16 bit api */ + +#include "pshpack1.h" + +typedef UINT16 (CALLBACK *LPOFNHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); + +typedef struct { + DWORD lStructSize; + HWND16 hwndOwner; + HINSTANCE16 hInstance; + SEGPTR lpstrFilter; + SEGPTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + SEGPTR lpstrFile; + DWORD nMaxFile; + SEGPTR lpstrFileTitle; + DWORD nMaxFileTitle; + SEGPTR lpstrInitialDir; + SEGPTR lpstrTitle; + DWORD Flags; + UINT16 nFileOffset; + UINT16 nFileExtension; + SEGPTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC16 lpfnHook; + SEGPTR lpTemplateName; +} OPENFILENAME16,*LPOPENFILENAME16; + +typedef UINT16 (CALLBACK *LPCCHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); + +typedef struct { + DWORD lStructSize; + HWND16 hwndOwner; + HWND16 hInstance; + COLORREF rgbResult; + SEGPTR lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC16 lpfnHook; + SEGPTR lpTemplateName; +} CHOOSECOLOR16; +typedef CHOOSECOLOR16 *LPCHOOSECOLOR16; + +typedef UINT16 (CALLBACK *LPFRHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); +typedef struct { + DWORD lStructSize; /* size of this struct 0x20 */ + HWND16 hwndOwner; /* handle to owner's window */ + HINSTANCE16 hInstance; /* instance handle of.EXE that */ + /* contains cust. dlg. template */ + DWORD Flags; /* one or more of the FR_?? */ + SEGPTR lpstrFindWhat; /* ptr. to search string */ + SEGPTR lpstrReplaceWith; /* ptr. to replace string */ + UINT16 wFindWhatLen; /* size of find buffer */ + UINT16 wReplaceWithLen; /* size of replace buffer */ + LPARAM lCustData; /* data passed to hook fn. */ + LPFRHOOKPROC16 lpfnHook; + SEGPTR lpTemplateName; /* custom template name */ +} FINDREPLACE16, *LPFINDREPLACE16; + +typedef UINT16 (CALLBACK *LPCFHOOKPROC16)(HWND16,UINT16,WPARAM16,LPARAM); +typedef struct +{ + DWORD lStructSize; + HWND16 hwndOwner; /* caller's window handle */ + HDC16 hDC; /* printer DC/IC or NULL */ + SEGPTR lpLogFont; /* ptr. to a LOGFONT struct */ + short iPointSize; /* 10 * size in points of selected font */ + DWORD Flags; /* enum. type flags */ + COLORREF rgbColors; /* returned text color */ + LPARAM lCustData; /* data passed to hook fn. */ + LPCFHOOKPROC16 lpfnHook; + SEGPTR lpTemplateName; /* custom template name */ + HINSTANCE16 hInstance; /* instance handle of.EXE that */ + /* contains cust. dlg. template */ + SEGPTR lpszStyle; /* return the style field here */ + /* must be LF_FACESIZE or bigger */ + UINT16 nFontType; /* same value reported to the */ + /* EnumFonts callback with the */ + /* extra FONTTYPE_ bits added */ + short nSizeMin; /* minimum pt size allowed & */ + short nSizeMax; /* max pt size allowed if */ + /* CF_LIMITSIZE is used */ +} CHOOSEFONT16, *LPCHOOSEFONT16; + + +typedef UINT16 (CALLBACK *LPPRINTHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); +typedef UINT16 (CALLBACK *LPSETUPHOOKPROC16) (HWND16, UINT16, WPARAM16, LPARAM); +typedef struct +{ + DWORD lStructSize; + HWND16 hwndOwner; + HGLOBAL16 hDevMode; + HGLOBAL16 hDevNames; + HDC16 hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE16 hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC16 lpfnPrintHook; + LPSETUPHOOKPROC16 lpfnSetupHook; + SEGPTR lpPrintTemplateName; + SEGPTR lpSetupTemplateName; + HGLOBAL16 hPrintTemplate; + HGLOBAL16 hSetupTemplate; +} PRINTDLG16, *LPPRINTDLG16; + +BOOL16 WINAPI ChooseColor16(LPCHOOSECOLOR16 lpChCol); +HWND16 WINAPI FindText16( SEGPTR find); +INT16 WINAPI GetFileTitle16(LPCSTR lpFile, LPSTR lpTitle, UINT16 cbBuf); +BOOL16 WINAPI GetOpenFileName16(SEGPTR ofn); +BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn); +BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 print); +HWND16 WINAPI ReplaceText16( SEGPTR find); +BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16); + +#include "poppack.h" + +#endif /* _WINE_DLL_CDLG16_H */
--- vendor/wine/dlls/commdlg/current/cdlg32.c 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/cdlg32.c 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,182 @@
+/* + * Common Dialog Boxes interface (32 bit) + * Find/Replace + * + * Copyright 1999 Bertho A. Stultiens + * + * 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 + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wingdi.h" +#include "winuser.h" +#include "commdlg.h" +#include "cderr.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(commdlg); + +#include "cdlg.h" + + +HINSTANCE COMDLG32_hInstance = 0; + +static DWORD COMDLG32_TlsIndex = TLS_OUT_OF_INDEXES; + +HINSTANCE SHELL32_hInstance = 0; +HINSTANCE SHFOLDER_hInstance = 0; + +/* ITEMIDLIST */ +LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST); +LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST); +LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST); +BOOL (WINAPI *COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST); +BOOL (WINAPI *COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST); + +/* SHELL */ +LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD); +DWORD (WINAPI *COMDLG32_SHFree)(LPVOID); +BOOL (WINAPI *COMDLG32_SHGetFolderPathA)(HWND,int,HANDLE,DWORD,LPSTR); +BOOL (WINAPI *COMDLG32_SHGetFolderPathW)(HWND,int,HANDLE,DWORD,LPWSTR); + +/*********************************************************************** + * DllMain (COMDLG32.init) + * + * Initialization code for the COMDLG32 DLL + * + * RETURNS: + * FALSE if sibling could not be loaded or instantiated twice, TRUE + * otherwise. + */ +static char * GPA_string = "Failed to get entry point %s for hinst = 0x%08x\n"; +#define GPA(dest, hinst, name) \ + if(!(dest = (void*)GetProcAddress(hinst,name)))\ + { \ + ERR(GPA_string, debugstr_a(name), hinst); \ + return FALSE; \ + } + +BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved) +{ + TRACE("(%p, %08lx, %p)\n", hInstance, Reason, Reserved); + + switch(Reason) + { + case DLL_PROCESS_ATTACH: + COMDLG32_hInstance = hInstance; + DisableThreadLibraryCalls(hInstance); + + SHELL32_hInstance = GetModuleHandleA("SHELL32.DLL"); + + if (!SHELL32_hInstance) + { + ERR("loading of shell32 failed\n"); + return FALSE; + } + + /* ITEMIDLIST */ + GPA(COMDLG32_PIDL_ILIsEqual, SHELL32_hInstance, (LPCSTR)21L); + GPA(COMDLG32_PIDL_ILCombine, SHELL32_hInstance, (LPCSTR)25L); + GPA(COMDLG32_PIDL_ILGetNext, SHELL32_hInstance, (LPCSTR)153L); + GPA(COMDLG32_PIDL_ILClone, SHELL32_hInstance, (LPCSTR)18L); + GPA(COMDLG32_PIDL_ILRemoveLastID, SHELL32_hInstance, (LPCSTR)17L); + + /* SHELL */ + + GPA(COMDLG32_SHAlloc, SHELL32_hInstance, (LPCSTR)196L); + GPA(COMDLG32_SHFree, SHELL32_hInstance, (LPCSTR)195L); + /* for the first versions of shell32 SHGetFolderPathA is in SHFOLDER.DLL */ + COMDLG32_SHGetFolderPathA = (void*)GetProcAddress(SHELL32_hInstance,"SHGetFolderPathA"); + if (!COMDLG32_SHGetFolderPathA) + { + SHFOLDER_hInstance = LoadLibraryA("SHFOLDER.DLL"); + GPA(COMDLG32_SHGetFolderPathA, SHFOLDER_hInstance,"SHGetFolderPathA"); + } + + /* for the first versions of shell32 SHGetFolderPathW is in SHFOLDER.DLL */ + COMDLG32_SHGetFolderPathW = (void*)GetProcAddress(SHELL32_hInstance,"SHGetFolderPathW"); + if (!COMDLG32_SHGetFolderPathW) + { + SHFOLDER_hInstance = LoadLibraryA("SHFOLDER.DLL"); + GPA(COMDLG32_SHGetFolderPathW, SHFOLDER_hInstance,"SHGetFolderPathW"); + } + + break; + + case DLL_PROCESS_DETACH: + if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) TlsFree(COMDLG32_TlsIndex); + if(SHFOLDER_hInstance) FreeLibrary(SHFOLDER_hInstance); + break; + } + return TRUE; +} +#undef GPA + +/*********************************************************************** + * COMDLG32_AllocMem (internal) + * Get memory for internal datastructure plus stringspace etc. + * RETURNS + * Pointer to a heap block: Succes + * NULL: Failure + */ +LPVOID COMDLG32_AllocMem( + int size /* [in] Block size to allocate */ +) { + LPVOID ptr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); + if(!ptr) + { + COMDLG32_SetCommDlgExtendedError(CDERR_MEMALLOCFAILURE); + return NULL; + } + return ptr; +} + + +/*********************************************************************** + * COMDLG32_SetCommDlgExtendedError (internal) + * + * Used to set the thread's local error value if a comdlg32 function fails. + */ +void COMDLG32_SetCommDlgExtendedError(DWORD err) +{ + TRACE("(%08lx)\n", err); + if (COMDLG32_TlsIndex == TLS_OUT_OF_INDEXES) + COMDLG32_TlsIndex = TlsAlloc(); + if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) + TlsSetValue(COMDLG32_TlsIndex, (void *)err); + else + FIXME("No Tls Space\n"); +} + + +/*********************************************************************** + * CommDlgExtendedError (COMMDLG.26) + * CommDlgExtendedError (COMDLG32.@) + * + * Get the thread's local error value if a comdlg32 function fails. + * RETURNS + * Current error value which might not be valid + * if a previous call succeeded. + */ +DWORD WINAPI CommDlgExtendedError(void) +{ + if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) + return (DWORD)TlsGetValue(COMDLG32_TlsIndex); + else + return 0; /* we never set an error, so there isn't one */ +}
--- vendor/wine/dlls/commdlg/current/cdlg_Ca.rc 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/cdlg_Ca.rc 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,218 @@
+/* + * Copyright 1998 Marc Huguet Puig + * + * 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 + */ + +/* + * WARNING: DO NOT CHANGE THE SIZE OF THE STANDARD DIALOG TEMPLATES. + */ + +LANGUAGE LANG_CATALAN, SUBLANG_DEFAULT + +OPEN_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Obrir" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Nom:", 1090, 6, 6, 76, 9 + EDITTEXT 1152, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "&Directoris:", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "&Tipus de fitxers:", 1089, 6, 104, 90, 9 + COMBOBOX 1136, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "&Unitats:", 1091, 110, 104, 92, 9 + COMBOBOX 1137, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "D'acord", IDOK, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&juda", 1038, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "Només &lectura", 1040, 208, 68, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +SAVE_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Anomenar i desar..." +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Nom:", 1090, 6, 6, 76, 9 + EDITTEXT 1152, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "&Directoris:", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "Desar fitxer en f&ormat:", 1089, 6, 104, 90, 9 + COMBOBOX 1136, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "&Unitats:", 1091, 110, 104, 92, 9 + COMBOBOX 1137, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "D'acord", IDOK, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&juda", 1038, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "&Fer-ne còpia", 1040, 208, 68, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Impressió" +FONT 8, "MS Shell Dlg" +{ + LTEXT "Impressora:", 1088, 6, 6, 40, 9 + LTEXT "Impressió del document", 1089, 60, 6, 150, 9 + GROUPBOX "", 1072, 6, 30, 160, 65, BS_GROUPBOX + RADIOBUTTON "&Sencer", 1056, 16, 45, 60, 12 + RADIOBUTTON "&Part seleccionada", 1057, 16, 60, 60, 12 + RADIOBUTTON "Pà&gines", 1058, 16, 75, 60, 12 + DEFPUSHBUTTON "D'acord", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Configuració", 1024, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + LTEXT "P&rimera:", 1090, 60, 80, 30, 9 + LTEXT "Ú<ima:", 1091, 120, 80, 30, 9 + LTEXT "&Qualitat:", 1092, 6, 100, 76, 9 + COMBOBOX 1136, 80, 100, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + CHECKBOX "Imprimir en un &fitxer", 1040, 20, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "S&eparar les còpies", 1041, 160, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT_SETUP DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Configuració de la impressió" +FONT 8, "MS Shell Dlg" +{ + GROUPBOX "Impressora:", 1072, 6, 10, 180, 65, BS_GROUPBOX + RADIOBUTTON "Impressora per &defecte", 1056, 16, 20, 80, 12 + LTEXT "[none]", 1088, 35, 35, 120, 9 + RADIOBUTTON "Impressora &especificada:", 1057, 16, 50, 80, 12 + COMBOBOX 1136, 35, 65, 149, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "D'acord", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Opcions", 1024, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + GROUPBOX "Orientació", 1073, 6, 85, 100, 50, BS_GROUPBOX + RADIOBUTTON "&Vertical", 1058, 50, 100, 40, 12 + RADIOBUTTON "&Horitzontal", 1059, 50, 115, 40, 12 + ICON "LANDSCAP", 1097, 10, 95, 32, 32 + ICON "PORTRAIT", 1098, 10, 95, 32, 32 + GROUPBOX "Paper", 1074, 120, 85, 180, 50, BS_GROUPBOX + LTEXT "&Mida", 1089, 130, 95, 30, 9 + LTEXT "A&limentació:", 1090, 130, 110, 30, 9 + COMBOBOX 1137, 155, 95, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + COMBOBOX 1138, 155, 110, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP +} + + +CHOOSE_FONT DIALOG DISCARDABLE 13, 54, 264, 147 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Tipus de lletra" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Tipus de lletra:",1088 ,6,3,40,9 + COMBOBOX 1136 ,6,13,94,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "&Estil del tipus de lletra:",1089 ,108,3,44,9 + COMBOBOX 1137,108,13,64,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "&Grandària:",1090,179,3,30,9 + COMBOBOX 1138,179,13,32,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE | CBS_SORT + DEFPUSHBUTTON "D'acord",IDOK,218,6,40,14,WS_GROUP + PUSHBUTTON "Anul·lació",IDCANCEL,218,23,40,14,WS_GROUP + PUSHBUTTON "A&plicar", 1026,218,40,40,14,WS_GROUP + PUSHBUTTON "A&juda" , 1038,218,57,40,14,WS_GROUP + GROUPBOX "Efectes",1072,6,72,84,34,WS_GROUP + CHECKBOX "&Barrar-lo", 1040, 10,82,50,10, BS_AUTOCHECKBOX | WS_TABSTOP + CHECKBOX "&Subratllar-lo", 1041, 10,94,50,10, BS_AUTOCHECKBOX + LTEXT "&Color:", 1091 ,6,110,30,9 + COMBOBOX 1139,6,120,84,100,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + GROUPBOX "Exemple",grp2,98,72,120,36,WS_GROUP + CTEXT "AaBbYyZz",stc5,103,80,109,24,SS_NOPREFIX | NOT WS_VISIBLE + LTEXT "Scr&ipt (translate):",stc7 ,98,114,80,9 + COMBOBOX cmb5,98,124,120,10,CBS_DROPDOWNLIST |CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP +} + + +CHOOSE_COLOR DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 300, 185 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Color" +FONT 8, "MS Shell Dlg" +{ + LTEXT "Colors &básics:", 1088, 4, 4, 140, 10 + LTEXT "Colors person&alitzats:", 1089, 4, 106, 140, 10 + LTEXT "Color Sòl&id", 1090, 150, 151, 48, 10 + LTEXT "&Roig:", 726 /*1094*/,249,126,24,10 + EDITTEXT 706, 275,124,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Verd:",727/*1095*/,249,140,24,10 + EDITTEXT 707, 275,138,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "Bla&u:",728 /*1096*/,249,154,24,10 + EDITTEXT 708, 275,152,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Tint:" ,723 /*1091*/,202,126,22,10 + EDITTEXT 703, 226,124,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Sat.:" ,724 /*1092*/,202,140,22,10 + EDITTEXT 704, 226,138,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Llum.:" ,725 /*1093*/,202,154,22,10 + EDITTEXT 705, 226,152,18,12, WS_BORDER | WS_GROUP | WS_TABSTOP + CONTROL "" ,720,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,14,140,86 + CONTROL "" ,721,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,116,140,28 + CONTROL "" ,710,"STATIC",WS_BORDER|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,4,118,116 + CONTROL "" ,702,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 278,4,8,116 + CONTROL "" ,709,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,124,40,26 + DEFPUSHBUTTON "D'acord", IDOK, 4, 166, 44, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&juda", 1038,100,166, 44, 14 + PUSHBUTTON "Afegir als &colors personalitzats", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Definir colors personalitzats >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&i",713,300,200,4,14 /* just a dummy: 'i' is like &i in "sol&id" */ +} + + +FINDDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 236, 62 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Cerca" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Cercar:", -1, 4, 8, 42, 8 + EDITTEXT 1152, 47, 7, 128, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + CHECKBOX "C&ercar mots sencers", 1040, 4, 26, 100, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "&Distingir majúscules de minúscules", 1041, 4, 42, 64, 12, BS_AUTOCHECKBOX | WS_TABSTOP + GROUPBOX "Direcció", 1072, 107, 26, 68, 28 + CONTROL "&Amunt", 1056, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 111, 38, 20, 12 + CONTROL "A&vall", 1057, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 138, 38, 30, 12 + DEFPUSHBUTTON "&Continuació", IDOK, 182, 5, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Anul·lació", IDCANCEL, 182, 23, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&juda", 1038, 182, 45, 50, 14, WS_GROUP | WS_TABSTOP +} + + +REPLACEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 230, 94 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Substitució" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Cercar:", -1, 4, 9, 48, 8 + EDITTEXT 1152, 54, 7, 114, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Substituir per:", 1090, -1, 4, 26, 48, 8 + EDITTEXT 1153, 54, 24, 114, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + CHECKBOX "Cercar &mots sencers", 1040, 5, 46, 104, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "&Distingir majúscules de minúscules", 1041, 5, 62, 59, 12, BS_AUTOCHECKBOX | WS_TABSTOP + DEFPUSHBUTTON "C&ontinucació", IDOK, 174, 4, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "S&ubstitució", 1024, 174, 21, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Substitució &automàtica", 1025, 174, 38, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Tancar", IDCANCEL, 174, 55, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&juda", 1038, 174, 75, 50, 14, WS_GROUP | WS_TABSTOP +}
--- vendor/wine/dlls/commdlg/current/cdlg_Cn.rc 2004-12-31 14:28:57 UTC (rev 12476) +++ vendor/wine/dlls/commdlg/current/cdlg_Cn.rc 2004-12-31 14:30:16 UTC (rev 12477) @@ -0,0 +1,444 @@
+/* + * Copyright 2002 Tisheng Chen + * + * 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 + */ + +/* + * WARNING: DO NOT CHANGE THE SIZE OF THE STANDARD DIALOG TEMPLATES. + */ + +LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED + +OPEN_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "´ò¿ª" +FONT 8, "MS Shell Dlg" +{ + LTEXT "ÎļþÃû(&N):", 1090, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "Îļþ¼Ð(&D):", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "ÎļþÀàÐÍ(&T):", 1089, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "Çý¶¯Æ÷(&v):", 1091, 110, 104, 92, 9 + COMBOBOX cmb2, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "´ò¿ª", 1, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "È¡Ïû", 2, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "°ïÖú(&H)", pshHelp, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "Ö»¶Á(&R)", chx1, 208, 68, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +SAVE_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Áí´æΪ ..." +FONT 8, "MS Shell Dlg" +{ + LTEXT "ÎļþÃû(&N):", 1090, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "Ŀ¼(&D):", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "ÎļþÀàÐÍ(&T):", 1089, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "Çý¶¯Æ÷(&v):", 1091, 110, 104, 92, 9 + COMBOBOX cmb2, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "±£´æ", 1, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "È¡Ïû", 2, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "°ïÖú(&H)", pshHelp, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "Ö»¶Á(&R)", chx1, 208, 68, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "´òÓ¡" +FONT 8, "MS Shell Dlg" +{ + LTEXT "´òÓ¡»ú:", 1088, 6, 6, 40, 9 + LTEXT "", 1089, 60, 6, 150, 9 + GROUPBOX "´òÓ¡·¶Î§", grp1, 6, 30, 160, 65, BS_GROUPBOX + RADIOBUTTON "È«²¿(&A)", rad1, 16, 45, 60, 12 + RADIOBUTTON "Ñ¡ÔñµÄ·¶Î§(&e)", rad2, 16, 60, 60, 12 + RADIOBUTTON "Ò³Êý(&G)", rad3, 16, 75, 60, 12 + DEFPUSHBUTTON "È·¶¨", 1, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "È¡Ïû", 2, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "ÉèÖÃ(&S)", psh1, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + LTEXT "´Ó(&F):", 1090, 60, 80, 30, 9 + LTEXT "µ½(&T):", 1091, 120, 80, 30, 9 + LTEXT "´òÓ¡ÖÊÁ¿(&Q):", 1092, 6, 100, 76, 9 + COMBOBOX cmb1, 80, 100, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + CHECKBOX "´òÓ¡µ½Îļþ(&l):", chx1, 20, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "Condensed", chx2, 160, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT_SETUP DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "´òÓ¡ÉèÖÃ" +FONT 8, "MS Shell Dlg" +{ + GROUPBOX "´òÓ¡»ú", grp1, 6, 10, 180, 65, BS_GROUPBOX + RADIOBUTTON "ĬÈÏ´òÓ¡»ú(&D)", rad1, 16, 20, 80, 12 + LTEXT "[none]", 1088, 35, 35, 120, 9 + RADIOBUTTON "Ö¸¶¨µÄ´òÓ¡»ú(&P)", rad2, 16, 50, 80, 12 + COMBOBOX cmb1, 35, 65, 149, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "È·¶¨", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "È¡Ïû", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "ÉèÖÃ(&S)", psh1, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + GROUPBOX "·½Ïò(&O)", grp2, 6, 85, 100, 50, BS_GROUPBOX + RADIOBUTTON "×ÝÏò(&P)", rad3, 50, 100, 40, 12 + RADIOBUTTON "ºáÏò(&L)", rad4, 50, 115, 40, 12 + ICON "LANDSCAP", stc10, 10, 95, 32, 32 + ICON "PORTRAIT", stc11, 10, 95, 32, 32 + GROUPBOX "Ö½ÕÅ", grp3, 120, 85, 180, 50, BS_GROUPBOX + LTEXT "Ö½ÕÅ´óС(&Z)", 1089, 130, 95, 30, 9 + LTEXT "Ö½ÕÅÀ´Ô´(&S)", 1090, 130, 110, 30, 9 + COMBOBOX cmb2, 155, 95, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + COMBOBOX cmb3, 155, 110, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP +} + + +CHOOSE_FONT DIALOG DISCARDABLE 13, 54, 264, 147 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "×ÖÌå" +FONT 8, "MS Shell Dlg" +{ + LTEXT "×ÖÌå(&F):",1088 ,6,3,40,9 + COMBOBOX cmb1, 6,13,94,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "×ÖÌåÑùʽ(&y):",1089 ,108,3,44,9 + COMBOBOX cmb2,108,13,64,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "´óС(&S):",1090,179,3,30,9 + COMBOBOX cmb3,179,13,32,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE | CBS_SORT + DEFPUSHBUTTON "È·¶¨",IDOK,218,6,40,14, WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON + PUSHBUTTON "È¡Ïû",IDCANCEL,218,23,40,14,WS_GROUP | WS_TABSTOP + PUSHBUTTON "Ó¦ÓÃ(&A)", psh3,218,40,40,14,WS_GROUP | WS_TABSTOP + PUSHBUTTON "°ïÖú(&H)" , pshHelp,218,57,40,14,WS_GROUP | WS_TABSTOP + GROUPBOX "Ч¹û",1072,6,72,84,34,WS_GROUP + CHECKBOX "ɾ³ýÏß(&k)", chx1, 10,82,50,10, BS_AUTOCHECKBOX | WS_TABSTOP + CHECKBOX "Ï»®Ïß(&U)", chx2, 10,94,50,10, BS_AUTOCHECKBOX + LTEXT "ÑÕÉ«(&C):", 1091 ,6,110,30,9 + COMBOBOX cmb4,6,120,84,100,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + GROUPBOX "ʾÀý",grp2,98,72,120,36,WS_GROUP + CTEXT "ÖÐÎÄ×ÖÌåAaBbYyZz",stc5,103,80,109,24,SS_NOPREFIX | NOT WS_VISIBLE[truncated at 1000 lines; 24404 more skipped]