| 1 | /* $Id: cdlg.h,v 1.7 2000-10-21 18:42:09 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 | #define COMDLG32_DPA_Create             DPA_Create
 | 
|---|
| 107 | #define COMDLG32_DPA_GetPtr             DPA_GetPtr
 | 
|---|
| 108 | #define COMDLG32_DPA_DeleteAllPtrs      DPA_DeleteAllPtrs
 | 
|---|
| 109 | #define COMDLG32_DPA_DeletePtr          DPA_DeletePtr
 | 
|---|
| 110 | #define COMDLG32_DPA_InsertPtr          DPA_InsertPtr
 | 
|---|
| 111 | #define COMDLG32_DPA_Destroy            DPA_Destroy
 | 
|---|
| 112 | 
 | 
|---|
| 113 | #define COMDLG32_ImageList_GetIcon      ImageList_GetIcon
 | 
|---|
| 114 | #define COMDLG32_ImageList_LoadImageA   ImageList_LoadImageA
 | 
|---|
| 115 | #define COMDLG32_ImageList_Draw         ImageList_Draw
 | 
|---|
| 116 | #define COMDLG32_ImageList_Destroy      ImageList_Destroy
 | 
|---|
| 117 | 
 | 
|---|
| 118 | /* ITEMIDLIST */
 | 
|---|
| 119 | 
 | 
|---|
| 120 | LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl);
 | 
|---|
| 121 | LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
 | 
|---|
| 122 | LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl);
 | 
|---|
| 123 | BOOL         WINAPI ILRemoveLastID(LPCITEMIDLIST pidl);
 | 
|---|
| 124 | BOOL         WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
 | 
|---|
| 125 | 
 | 
|---|
| 126 | #define COMDLG32_PIDL_ILClone           ILClone
 | 
|---|
| 127 | #define COMDLG32_PIDL_ILCombine         ILCombine
 | 
|---|
| 128 | #define COMDLG32_PIDL_ILGetNext         ILGetNext
 | 
|---|
| 129 | #define COMDLG32_PIDL_ILRemoveLastID    ILRemoveLastID
 | 
|---|
| 130 | #define COMDLG32_PIDL_ILIsEqual         ILIsEqual
 | 
|---|
| 131 | 
 | 
|---|
| 132 | /* SHELL */
 | 
|---|
| 133 | #define COMDLG32_SHGetPathFromIDListA   SHGetPathFromIDListA
 | 
|---|
| 134 | #define COMDLG32_SHGetSpecialFolderLocation     SHGetSpecialFolderLocation
 | 
|---|
| 135 | #define COMDLG32_SHGetDesktopFolder     SHGetDesktopFolder
 | 
|---|
| 136 | #define COMDLG32_SHGetFileInfoA         SHGetFileInfoA
 | 
|---|
| 137 | #define COMDLG32_SHFree                 SHFree
 | 
|---|
| 138 | #define COMDLG32_SHAlloc                SHAlloc
 | 
|---|
| 139 | #define COMDLG32_SHGetDataFromIDListA   SHGetDataFromIDListA
 | 
|---|
| 140 | #define COMDLG32_SHGetFolderPathA       SHGetFolderPathA
 | 
|---|
| 141 | 
 | 
|---|
| 142 | DWORD WINAPI PathRemoveFileSpecA(LPSTR fn);
 | 
|---|
| 143 | BOOL  WINAPI PathMatchSpecW(LPCWSTR name, LPCWSTR mask);
 | 
|---|
| 144 | 
 | 
|---|
| 145 | /* PATH */
 | 
|---|
| 146 | #define COMDLG32_PathIsRootA            PathIsRootA
 | 
|---|
| 147 | #define COMDLG32_PathFindFileNameA      PathFindFileNameA
 | 
|---|
| 148 | #define COMDLG32_PathRemoveFileSpecA    PathRemoveFileSpecA
 | 
|---|
| 149 | #define COMDLG32_PathMatchSpecW         PathMatchSpecW
 | 
|---|
| 150 | #define COMDLG32_PathAddBackslashA      PathAddBackslashA
 | 
|---|
| 151 | #define COMDLG32_PathCanonicalizeA      PathCanonicalizeA
 | 
|---|
| 152 | #define COMDLG32_PathGetDriveNumberA    PathGetDriveNumberA
 | 
|---|
| 153 | #define COMDLG32_PathIsRelativeA        PathIsRelativeA
 | 
|---|
| 154 | #define COMDLG32_PathFindNextComponentA PathFindNextComponentA
 | 
|---|
| 155 | #define COMDLG32_PathAddBackslashW      PathAddBackslashW
 | 
|---|
| 156 | #define COMDLG32_PathFindExtensionA     PathFindExtensionA
 | 
|---|
| 157 | #define COMDLG32_PathAddExtensionA      PathAddExtensionA
 | 
|---|
| 158 | 
 | 
|---|
| 159 | #else
 | 
|---|
| 160 | /* IMAGELIST */
 | 
|---|
| 161 | extern BOOL     (WINAPI* COMDLG32_ImageList_Draw) (HIMAGELIST himl, int i, HDC hdcDest, int x, int y, UINT fStyle);
 | 
|---|
| 162 | 
 | 
|---|
| 163 | /* ITEMIDLIST */
 | 
|---|
| 164 | 
 | 
|---|
| 165 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST);
 | 
|---|
| 166 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST);
 | 
|---|
| 167 | extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST);
 | 
|---|
| 168 | extern BOOL (WINAPI *COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST);
 | 
|---|
| 169 | extern BOOL (WINAPI *COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST);
 | 
|---|
| 170 | 
 | 
|---|
| 171 | /* SHELL */
 | 
|---|
| 172 | extern BOOL (WINAPI *COMDLG32_SHGetPathFromIDListA) (LPCITEMIDLIST,LPSTR);
 | 
|---|
| 173 | extern HRESULT (WINAPI *COMDLG32_SHGetSpecialFolderLocation)(HWND,INT,LPITEMIDLIST *);
 | 
|---|
| 174 | extern DWORD (WINAPI *COMDLG32_SHGetDesktopFolder)(IShellFolder **);
 | 
|---|
| 175 | extern DWORD (WINAPI *COMDLG32_SHGetFileInfoA)(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
 | 
|---|
| 176 | extern LPVOID (WINAPI *COMDLG32_SHAlloc)(DWORD);
 | 
|---|
| 177 | extern DWORD (WINAPI *COMDLG32_SHFree)(LPVOID);
 | 
|---|
| 178 | extern HRESULT (WINAPI *COMDLG32_SHGetDataFromIDListA)(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID dest, int len);
 | 
|---|
| 179 | extern BOOL (WINAPI *COMDLG32_SHGetFolderPathA)(HWND,int,HANDLE,DWORD,LPSTR);
 | 
|---|
| 180 | 
 | 
|---|
| 181 | 
 | 
|---|
| 182 | /* PATH */
 | 
|---|
| 183 | extern BOOL (WINAPI *COMDLG32_PathIsRootA)(LPCSTR x);
 | 
|---|
| 184 | extern LPSTR (WINAPI *COMDLG32_PathFindFileNameA)(LPCSTR path);
 | 
|---|
| 185 | extern DWORD (WINAPI *COMDLG32_PathRemoveFileSpecA)(LPSTR fn);
 | 
|---|
| 186 | extern BOOL (WINAPI *COMDLG32_PathMatchSpecW)(LPCWSTR x, LPCWSTR y);
 | 
|---|
| 187 | extern LPSTR (WINAPI *COMDLG32_PathAddBackslashA)(LPSTR path);
 | 
|---|
| 188 | extern BOOL (WINAPI *COMDLG32_PathCanonicalizeA)(LPSTR pszBuf, LPCSTR pszPath);
 | 
|---|
| 189 | extern int (WINAPI *COMDLG32_PathGetDriveNumberA)(LPCSTR lpszPath);
 | 
|---|
| 190 | extern BOOL (WINAPI *COMDLG32_PathIsRelativeA) (LPCSTR lpszPath);
 | 
|---|
| 191 | extern LPSTR (WINAPI *COMDLG32_PathFindNextComponentA)(LPCSTR pszPath);
 | 
|---|
| 192 | extern LPWSTR (WINAPI *COMDLG32_PathAddBackslashW)(LPWSTR lpszPath);
 | 
|---|
| 193 | extern LPSTR (WINAPI *COMDLG32_PathFindExtensionA)(LPCVOID lpszPath);
 | 
|---|
| 194 | extern BOOL (WINAPI *COMDLG32_PathAddExtensionA)(LPSTR  pszPath,LPCSTR pszExtension);
 | 
|---|
| 195 | #endif
 | 
|---|
| 196 | 
 | 
|---|
| 197 | #endif
 | 
|---|
| 198 | 
 | 
|---|