1 | /* $Id: cdlg.h,v 1.8 2002-06-08 07:23:52 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Common Dialog Boxes interface (32 bit)
|
---|
4 | *
|
---|
5 | * Copyright 1998 Bertho A. Stultiens
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef _WINE_DLL_CDLG_H
|
---|
9 | #define _WINE_DLL_CDLG_H
|
---|
10 |
|
---|
11 | #include "dlgs.h"
|
---|
12 |
|
---|
13 | extern HINSTANCE COMDLG32_hInstance;
|
---|
14 | #define COMMDLG_hInstance32 COMDLG32_hInstance
|
---|
15 |
|
---|
16 | /*---------------- 32-bit ----------------*/
|
---|
17 |
|
---|
18 | /* Common dialogs implementation globals */
|
---|
19 | #define COMDLG32_Atom ((ATOM)0xa000) /* MS uses this one to identify props */
|
---|
20 |
|
---|
21 | extern HINSTANCE COMDLG32_hInstance;
|
---|
22 |
|
---|
23 | #ifdef __cplusplus
|
---|
24 | extern "C" {
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
---|
28 | LPVOID COMDLG32_AllocMem(int size);
|
---|
29 |
|
---|
30 | #ifdef __cplusplus
|
---|
31 | }
|
---|
32 | #endif
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 | /* Find/Replace local definitions */
|
---|
37 |
|
---|
38 | #define FR_WINE_UNICODE 0x80000000
|
---|
39 | #define FR_WINE_REPLACE 0x40000000
|
---|
40 |
|
---|
41 | typedef struct {
|
---|
42 | FINDREPLACEA fr; /* Internally used structure */
|
---|
43 | union {
|
---|
44 | FINDREPLACEA *fra; /* Reference to the user supplied structure */
|
---|
45 | FINDREPLACEW *frw;
|
---|
46 | } user_fr;
|
---|
47 | } COMDLG32_FR_Data;
|
---|
48 |
|
---|
49 | #define PD32_PRINT_TITLE 7000
|
---|
50 |
|
---|
51 | #define PD32_VALUE_UREADABLE 1104
|
---|
52 | #define PD32_INVALID_PAGE_RANGE 1105
|
---|
53 | #define PD32_FROM_NOT_ABOVE_TO 1106
|
---|
54 | #define PD32_MARGINS_OVERLAP 1107
|
---|
55 | #define PD32_NR_OF_COPIES_EMPTY 1108
|
---|
56 | #define PD32_TOO_LARGE_COPIES 1109
|
---|
57 | #define PD32_PRINT_ERROR 1110
|
---|
58 | #define PD32_NO_DEFAULT_PRINTER 1111
|
---|
59 | #define PD32_CANT_FIND_PRINTER 1112
|
---|
60 | #define PD32_OUT_OF_MEMORY 1113
|
---|
61 | #define PD32_GENERIC_ERROR 1114
|
---|
62 | #define PD32_DRIVER_UNKNOWN 1115
|
---|
63 |
|
---|
64 | #define PD32_PRINTER_STATUS_READY 1536
|
---|
65 | #define PD32_PRINTER_STATUS_PAUSED 1537
|
---|
66 | #define PD32_PRINTER_STATUS_ERROR 1538
|
---|
67 | #define PD32_PRINTER_STATUS_PENDING_DELETION 1539
|
---|
68 | #define PD32_PRINTER_STATUS_PAPER_JAM 1540
|
---|
69 | #define PD32_PRINTER_STATUS_PAPER_OUT 1541
|
---|
70 | #define PD32_PRINTER_STATUS_MANUAL_FEED 1542
|
---|
71 | #define PD32_PRINTER_STATUS_PAPER_PROBLEM 1543
|
---|
72 | #define PD32_PRINTER_STATUS_OFFLINE 1544
|
---|
73 | #define PD32_PRINTER_STATUS_IO_ACTIVE 1545
|
---|
74 | #define PD32_PRINTER_STATUS_BUSY 1546
|
---|
75 | #define PD32_PRINTER_STATUS_PRINTING 1547
|
---|
76 | #define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL 1548
|
---|
77 | #define PD32_PRINTER_STATUS_NOT_AVAILABLE 1549
|
---|
78 | #define PD32_PRINTER_STATUS_WAITING 1550
|
---|
79 | #define PD32_PRINTER_STATUS_PROCESSING 1551
|
---|
80 | #define PD32_PRINTER_STATUS_INITIALIZING 1552
|
---|
81 | #define PD32_PRINTER_STATUS_WARMING_UP 1553
|
---|
82 | #define PD32_PRINTER_STATUS_TONER_LOW 1554
|
---|
83 | #define PD32_PRINTER_STATUS_NO_TONER 1555
|
---|
84 | #define PD32_PRINTER_STATUS_PAGE_PUNT 1556
|
---|
85 | #define PD32_PRINTER_STATUS_USER_INTERVENTION 1557
|
---|
86 | #define PD32_PRINTER_STATUS_OUT_OF_MEMORY 1558
|
---|
87 | #define PD32_PRINTER_STATUS_DOOR_OPEN 1559
|
---|
88 | #define PD32_PRINTER_STATUS_SERVER_UNKNOWN 1560
|
---|
89 | #define PD32_PRINTER_STATUS_POWER_SAVE 1561
|
---|
90 |
|
---|
91 | #define PD32_DEFAULT_PRINTER 1582
|
---|
92 | #define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583
|
---|
93 | #define PD32_PRINT_ALL_X_PAGES 1584
|
---|
94 | #define PD32_MARGINS_IN_INCHES 1585
|
---|
95 | #define PD32_MARGINS_IN_MILIMETERS 1586
|
---|
96 | #define PD32_MILIMETERS 1587
|
---|
97 |
|
---|
98 | #include "commctrl.h"
|
---|
99 | //#include "wine/undocshell.h"
|
---|
100 | #include "shellapi.h"
|
---|
101 |
|
---|
102 | /* DPA */
|
---|
103 | #ifdef __WIN32OS2__
|
---|
104 | #include <win\shell.h>
|
---|
105 |
|
---|
106 | LPVOID WINAPI SHAlloc(DWORD);
|
---|
107 | DWORD WINAPI SHFree(LPVOID);
|
---|
108 | BOOL WINAPI SHGetFolderPathA(HWND,int,HANDLE,DWORD,LPSTR);
|
---|
109 |
|
---|
110 | #define COMDLG32_DPA_Create DPA_Create
|
---|
111 | #define COMDLG32_DPA_GetPtr DPA_GetPtr
|
---|
112 | #define COMDLG32_DPA_DeleteAllPtrs DPA_DeleteAllPtrs
|
---|
113 | #define COMDLG32_DPA_DeletePtr DPA_DeletePtr
|
---|
114 | #define COMDLG32_DPA_InsertPtr DPA_InsertPtr
|
---|
115 | #define COMDLG32_DPA_Destroy DPA_Destroy
|
---|
116 |
|
---|
117 | #define COMDLG32_ImageList_GetIcon ImageList_GetIcon
|
---|
118 | #define COMDLG32_ImageList_LoadImageA ImageList_LoadImageA
|
---|
119 | #define COMDLG32_ImageList_Draw ImageList_Draw
|
---|
120 | #define COMDLG32_ImageList_Destroy ImageList_Destroy
|
---|
121 |
|
---|
122 | /* ITEMIDLIST */
|
---|
123 |
|
---|
124 | LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl);
|
---|
125 | LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
|
---|
126 | LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl);
|
---|
127 | BOOL WINAPI ILRemoveLastID(LPCITEMIDLIST pidl);
|
---|
128 | BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
|
---|
129 |
|
---|
130 | #define COMDLG32_PIDL_ILClone ILClone
|
---|
131 | #define COMDLG32_PIDL_ILCombine ILCombine
|
---|
132 | #define COMDLG32_PIDL_ILGetNext ILGetNext
|
---|
133 | #define COMDLG32_PIDL_ILRemoveLastID ILRemoveLastID
|
---|
134 | #define COMDLG32_PIDL_ILIsEqual ILIsEqual
|
---|
135 |
|
---|
136 | /* SHELL */
|
---|
137 | #define COMDLG32_SHGetPathFromIDListA SHGetPathFromIDListA
|
---|
138 | #define COMDLG32_SHGetSpecialFolderLocation SHGetSpecialFolderLocation
|
---|
139 | #define COMDLG32_SHGetDesktopFolder SHGetDesktopFolder
|
---|
140 | #define COMDLG32_SHGetFileInfoA SHGetFileInfoA
|
---|
141 | #define COMDLG32_SHFree SHFree
|
---|
142 | #define COMDLG32_SHAlloc SHAlloc
|
---|
143 | #define COMDLG32_SHGetDataFromIDListA SHGetDataFromIDListA
|
---|
144 | #define COMDLG32_SHGetFolderPathA SHGetFolderPathA
|
---|
145 |
|
---|
146 | DWORD WINAPI PathRemoveFileSpecA(LPSTR fn);
|
---|
147 | BOOL WINAPI PathMatchSpecW(LPCWSTR name, LPCWSTR mask);
|
---|
148 |
|
---|
149 | /* PATH */
|
---|
150 | #define COMDLG32_PathIsRootA PathIsRootA
|
---|
151 | #define COMDLG32_PathFindFileNameA PathFindFileNameA
|
---|
152 | #define COMDLG32_PathRemoveFileSpecA PathRemoveFileSpecA
|
---|
153 | #define COMDLG32_PathMatchSpecW PathMatchSpecW
|
---|
154 | #define COMDLG32_PathAddBackslashA PathAddBackslashA
|
---|
155 | #define COMDLG32_PathCanonicalizeA PathCanonicalizeA
|
---|
156 | #define COMDLG32_PathGetDriveNumberA PathGetDriveNumberA
|
---|
157 | #define COMDLG32_PathIsRelativeA PathIsRelativeA
|
---|
158 | #define COMDLG32_PathFindNextComponentA PathFindNextComponentA
|
---|
159 | #define COMDLG32_PathAddBackslashW PathAddBackslashW
|
---|
160 | #define COMDLG32_PathFindExtensionA PathFindExtensionA
|
---|
161 | #define COMDLG32_PathAddExtensionA PathAddExtensionA
|
---|
162 |
|
---|
163 | #else
|
---|
164 | /* IMAGELIST */
|
---|
165 | extern BOOL (WINAPI* COMDLG32_ImageList_Draw) (HIMAGELIST himl, int i, HDC hdcDest, int x, int y, UINT fStyle);
|
---|
166 |
|
---|
167 | /* ITEMIDLIST */
|
---|
168 |
|
---|
169 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST);
|
---|
170 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST);
|
---|
171 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST);
|
---|
172 | extern BOOL (WINAPI *COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST);
|
---|
173 | extern BOOL (WINAPI *COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST);
|
---|
174 |
|
---|
175 | /* SHELL */
|
---|
176 | extern BOOL (WINAPI *COMDLG32_SHGetPathFromIDListA) (LPCITEMIDLIST,LPSTR);
|
---|
177 | extern HRESULT (WINAPI *COMDLG32_SHGetSpecialFolderLocation)(HWND,INT,LPITEMIDLIST *);
|
---|
178 | extern DWORD (WINAPI *COMDLG32_SHGetDesktopFolder)(IShellFolder **);
|
---|
179 | extern DWORD (WINAPI *COMDLG32_SHGetFileInfoA)(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
|
---|
180 | extern LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD);
|
---|
181 | extern DWORD (WINAPI *COMDLG32_SHFree)(LPVOID);
|
---|
182 | extern HRESULT (WINAPI *COMDLG32_SHGetDataFromIDListA)(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID dest, int len);
|
---|
183 | extern BOOL (WINAPI *COMDLG32_SHGetFolderPathA)(HWND,int,HANDLE,DWORD,LPSTR);
|
---|
184 |
|
---|
185 |
|
---|
186 | /* PATH */
|
---|
187 | extern BOOL (WINAPI *COMDLG32_PathIsRootA)(LPCSTR x);
|
---|
188 | extern LPSTR (WINAPI *COMDLG32_PathFindFileNameA)(LPCSTR path);
|
---|
189 | extern DWORD (WINAPI *COMDLG32_PathRemoveFileSpecA)(LPSTR fn);
|
---|
190 | extern BOOL (WINAPI *COMDLG32_PathMatchSpecW)(LPCWSTR x, LPCWSTR y);
|
---|
191 | extern LPSTR (WINAPI *COMDLG32_PathAddBackslashA)(LPSTR path);
|
---|
192 | extern BOOL (WINAPI *COMDLG32_PathCanonicalizeA)(LPSTR pszBuf, LPCSTR pszPath);
|
---|
193 | extern int (WINAPI *COMDLG32_PathGetDriveNumberA)(LPCSTR lpszPath);
|
---|
194 | extern BOOL (WINAPI *COMDLG32_PathIsRelativeA) (LPCSTR lpszPath);
|
---|
195 | extern LPSTR (WINAPI *COMDLG32_PathFindNextComponentA)(LPCSTR pszPath);
|
---|
196 | extern LPWSTR (WINAPI *COMDLG32_PathAddBackslashW)(LPWSTR lpszPath);
|
---|
197 | extern LPSTR (WINAPI *COMDLG32_PathFindExtensionA)(LPCVOID lpszPath);
|
---|
198 | extern BOOL (WINAPI *COMDLG32_PathAddExtensionA)(LPSTR pszPath,LPCSTR pszExtension);
|
---|
199 | #endif
|
---|
200 |
|
---|
201 | #endif
|
---|
202 |
|
---|