| 1 | /* $Id: cdlg.h,v 1.6 2000-05-19 19:27:19 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 | void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
|---|
| 24 | LPVOID COMDLG32_AllocMem(int size);
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | /* Find/Replace local definitions */
|
|---|
| 29 |
|
|---|
| 30 | #define FR_WINE_UNICODE 0x80000000
|
|---|
| 31 | #define FR_WINE_REPLACE 0x40000000
|
|---|
| 32 |
|
|---|
| 33 | typedef struct {
|
|---|
| 34 | FINDREPLACEA fr; /* Internally used structure */
|
|---|
| 35 | union {
|
|---|
| 36 | FINDREPLACEA *fra; /* Reference to the user supplied structure */
|
|---|
| 37 | FINDREPLACEW *frw;
|
|---|
| 38 | } user_fr;
|
|---|
| 39 | } COMDLG32_FR_Data;
|
|---|
| 40 |
|
|---|
| 41 | #define PD32_PRINT_TITLE 7000
|
|---|
| 42 |
|
|---|
| 43 | #define PD32_VALUE_UREADABLE 1104
|
|---|
| 44 | #define PD32_INVALID_PAGE_RANGE 1105
|
|---|
| 45 | #define PD32_FROM_NOT_ABOVE_TO 1106
|
|---|
| 46 | #define PD32_MARGINS_OVERLAP 1107
|
|---|
| 47 | #define PD32_NR_OF_COPIES_EMPTY 1108
|
|---|
| 48 | #define PD32_TOO_LARGE_COPIES 1109
|
|---|
| 49 | #define PD32_PRINT_ERROR 1110
|
|---|
| 50 | #define PD32_NO_DEFAULT_PRINTER 1111
|
|---|
| 51 | #define PD32_CANT_FIND_PRINTER 1112
|
|---|
| 52 | #define PD32_OUT_OF_MEMORY 1113
|
|---|
| 53 | #define PD32_GENERIC_ERROR 1114
|
|---|
| 54 | #define PD32_DRIVER_UNKNOWN 1115
|
|---|
| 55 |
|
|---|
| 56 | #define PD32_PRINTER_STATUS_READY 1536
|
|---|
| 57 | #define PD32_PRINTER_STATUS_PAUSED 1537
|
|---|
| 58 | #define PD32_PRINTER_STATUS_ERROR 1538
|
|---|
| 59 | #define PD32_PRINTER_STATUS_PENDING_DELETION 1539
|
|---|
| 60 | #define PD32_PRINTER_STATUS_PAPER_JAM 1540
|
|---|
| 61 | #define PD32_PRINTER_STATUS_PAPER_OUT 1541
|
|---|
| 62 | #define PD32_PRINTER_STATUS_MANUAL_FEED 1542
|
|---|
| 63 | #define PD32_PRINTER_STATUS_PAPER_PROBLEM 1543
|
|---|
| 64 | #define PD32_PRINTER_STATUS_OFFLINE 1544
|
|---|
| 65 | #define PD32_PRINTER_STATUS_IO_ACTIVE 1545
|
|---|
| 66 | #define PD32_PRINTER_STATUS_BUSY 1546
|
|---|
| 67 | #define PD32_PRINTER_STATUS_PRINTING 1547
|
|---|
| 68 | #define PD32_PRINTER_STATUS_OUTPUT_BIN_FULL 1548
|
|---|
| 69 | #define PD32_PRINTER_STATUS_NOT_AVAILABLE 1549
|
|---|
| 70 | #define PD32_PRINTER_STATUS_WAITING 1550
|
|---|
| 71 | #define PD32_PRINTER_STATUS_PROCESSING 1551
|
|---|
| 72 | #define PD32_PRINTER_STATUS_INITIALIZING 1552
|
|---|
| 73 | #define PD32_PRINTER_STATUS_WARMING_UP 1553
|
|---|
| 74 | #define PD32_PRINTER_STATUS_TONER_LOW 1554
|
|---|
| 75 | #define PD32_PRINTER_STATUS_NO_TONER 1555
|
|---|
| 76 | #define PD32_PRINTER_STATUS_PAGE_PUNT 1556
|
|---|
| 77 | #define PD32_PRINTER_STATUS_USER_INTERVENTION 1557
|
|---|
| 78 | #define PD32_PRINTER_STATUS_OUT_OF_MEMORY 1558
|
|---|
| 79 | #define PD32_PRINTER_STATUS_DOOR_OPEN 1559
|
|---|
| 80 | #define PD32_PRINTER_STATUS_SERVER_UNKNOWN 1560
|
|---|
| 81 | #define PD32_PRINTER_STATUS_POWER_SAVE 1561
|
|---|
| 82 |
|
|---|
| 83 | #define PD32_DEFAULT_PRINTER 1582
|
|---|
| 84 | #define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583
|
|---|
| 85 | #define PD32_PRINT_ALL_X_PAGES 1584
|
|---|
| 86 | #define PD32_MARGINS_IN_INCHES 1585
|
|---|
| 87 | #define PD32_MARGINS_IN_MILIMETERS 1586
|
|---|
| 88 | #define PD32_MILIMETERS 1587
|
|---|
| 89 |
|
|---|
| 90 | #include "commctrl.h"
|
|---|
| 91 | #include "wine/undocshell.h"
|
|---|
| 92 | #include "shellapi.h"
|
|---|
| 93 |
|
|---|
| 94 | /* DPA */
|
|---|
| 95 | #ifdef __WIN32OS2__
|
|---|
| 96 | #include <win\shell.h>
|
|---|
| 97 |
|
|---|
| 98 | #define COMDLG32_DPA_Create DPA_Create
|
|---|
| 99 | #define COMDLG32_DPA_GetPtr DPA_GetPtr
|
|---|
| 100 | #define COMDLG32_DPA_DeleteAllPtrs DPA_DeleteAllPtrs
|
|---|
| 101 | #define COMDLG32_DPA_DeletePtr DPA_DeletePtr
|
|---|
| 102 | #define COMDLG32_DPA_InsertPtr DPA_InsertPtr
|
|---|
| 103 | #define COMDLG32_DPA_Destroy DPA_Destroy
|
|---|
| 104 |
|
|---|
| 105 | #define COMDLG32_ImageList_GetIcon ImageList_GetIcon
|
|---|
| 106 | #define COMDLG32_ImageList_LoadImageA ImageList_LoadImageA
|
|---|
| 107 | #define COMDLG32_ImageList_Draw ImageList_Draw
|
|---|
| 108 | #define COMDLG32_ImageList_Destroy ImageList_Destroy
|
|---|
| 109 |
|
|---|
| 110 | /* ITEMIDLIST */
|
|---|
| 111 |
|
|---|
| 112 | LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl);
|
|---|
| 113 | LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
|
|---|
| 114 | LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl);
|
|---|
| 115 | BOOL WINAPI ILRemoveLastID(LPCITEMIDLIST pidl);
|
|---|
| 116 | BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);
|
|---|
| 117 |
|
|---|
| 118 | #define COMDLG32_PIDL_ILClone ILClone
|
|---|
| 119 | #define COMDLG32_PIDL_ILCombine ILCombine
|
|---|
| 120 | #define COMDLG32_PIDL_ILGetNext ILGetNext
|
|---|
| 121 | #define COMDLG32_PIDL_ILRemoveLastID ILRemoveLastID
|
|---|
| 122 | #define COMDLG32_PIDL_ILIsEqual ILIsEqual
|
|---|
| 123 |
|
|---|
| 124 | /* SHELL */
|
|---|
| 125 | #define COMDLG32_SHGetPathFromIDListA SHGetPathFromIDListA
|
|---|
| 126 | #define COMDLG32_SHGetSpecialFolderLocation SHGetSpecialFolderLocation
|
|---|
| 127 | #define COMDLG32_SHGetDesktopFolder SHGetDesktopFolder
|
|---|
| 128 | #define COMDLG32_SHGetFileInfoA SHGetFileInfoA
|
|---|
| 129 | #define COMDLG32_SHFree SHFree
|
|---|
| 130 |
|
|---|
| 131 | DWORD WINAPI PathRemoveFileSpecA(LPSTR fn);
|
|---|
| 132 | BOOL WINAPI PathMatchSpecW(LPCWSTR name, LPCWSTR mask);
|
|---|
| 133 |
|
|---|
| 134 | /* PATH */
|
|---|
| 135 | #define COMDLG32_PathIsRootA PathIsRootA
|
|---|
| 136 | #define COMDLG32_PathFindFilenameA PathFindFileNameA
|
|---|
| 137 | #define COMDLG32_PathRemoveFileSpecA PathRemoveFileSpecA
|
|---|
| 138 | #define COMDLG32_PathMatchSpecW PathMatchSpecW
|
|---|
| 139 | #define COMDLG32_PathAddBackslashA PathAddBackslashA
|
|---|
| 140 |
|
|---|
| 141 | #else
|
|---|
| 142 | extern HDPA (* WINAPI COMDLG32_DPA_Create) (INT);
|
|---|
| 143 | extern LPVOID (* WINAPI COMDLG32_DPA_GetPtr) (const HDPA, INT);
|
|---|
| 144 | extern LPVOID (* WINAPI COMDLG32_DPA_DeleteAllPtrs) (const HDPA hdpa);
|
|---|
| 145 | extern LPVOID (* WINAPI COMDLG32_DPA_DeletePtr) (const HDPA hdpa, INT i);
|
|---|
| 146 | extern INT (* WINAPI COMDLG32_DPA_InsertPtr) (const HDPA, INT, LPVOID);
|
|---|
| 147 | extern BOOL (* WINAPI COMDLG32_DPA_Destroy) (const HDPA);
|
|---|
| 148 |
|
|---|
| 149 | /* IMAGELIST */
|
|---|
| 150 | extern HICON (* WINAPI COMDLG32_ImageList_GetIcon) (HIMAGELIST, INT, UINT);
|
|---|
| 151 | extern HIMAGELIST (* WINAPI COMDLG32_ImageList_LoadImageA) (HINSTANCE, LPCSTR, INT, INT, COLORREF, UINT, UINT);
|
|---|
| 152 | extern BOOL (* WINAPI COMDLG32_ImageList_Draw) (HIMAGELIST himl, int i, HDC hdcDest, int x, int y, UINT fStyle);
|
|---|
| 153 | extern BOOL (* WINAPI COMDLG32_ImageList_Destroy) (HIMAGELIST himl);
|
|---|
| 154 |
|
|---|
| 155 | /* ITEMIDLIST */
|
|---|
| 156 |
|
|---|
| 157 | extern LPITEMIDLIST (* WINAPI COMDLG32_PIDL_ILClone) (LPCITEMIDLIST);
|
|---|
| 158 | extern LPITEMIDLIST (* WINAPI COMDLG32_PIDL_ILCombine)(LPCITEMIDLIST,LPCITEMIDLIST);
|
|---|
| 159 | extern LPITEMIDLIST (* WINAPI COMDLG32_PIDL_ILGetNext)(LPITEMIDLIST);
|
|---|
| 160 | extern BOOL (* WINAPI COMDLG32_PIDL_ILRemoveLastID)(LPCITEMIDLIST);
|
|---|
| 161 | extern BOOL (* WINAPI COMDLG32_PIDL_ILIsEqual)(LPCITEMIDLIST, LPCITEMIDLIST);
|
|---|
| 162 |
|
|---|
| 163 | /* SHELL */
|
|---|
| 164 | extern BOOL (* WINAPI COMDLG32_SHGetPathFromIDListA) (LPCITEMIDLIST,LPSTR);
|
|---|
| 165 | extern HRESULT (* WINAPI COMDLG32_SHGetSpecialFolderLocation)(HWND,INT,LPITEMIDLIST *);
|
|---|
| 166 | extern DWORD (* WINAPI COMDLG32_SHGetDesktopFolder)(IShellFolder **);
|
|---|
| 167 | extern DWORD (* WINAPI COMDLG32_SHGetFileInfoA)(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
|
|---|
| 168 | extern DWORD (* WINAPI COMDLG32_SHFree)(LPVOID);
|
|---|
| 169 |
|
|---|
| 170 | /* PATH */
|
|---|
| 171 | extern BOOL (* WINAPI COMDLG32_PathIsRootA)(LPCSTR x);
|
|---|
| 172 | extern LPCSTR (* WINAPI COMDLG32_PathFindFilenameA)(LPCSTR path);
|
|---|
| 173 | extern DWORD (* WINAPI COMDLG32_PathRemoveFileSpecA)(LPSTR fn);
|
|---|
| 174 | extern BOOL (* WINAPI COMDLG32_PathMatchSpecW)(LPCWSTR x, LPCWSTR y);
|
|---|
| 175 | extern LPSTR (* WINAPI COMDLG32_PathAddBackslashA)(LPSTR path);
|
|---|
| 176 | #endif
|
|---|
| 177 |
|
|---|
| 178 | #endif
|
|---|
| 179 |
|
|---|