imagehlp: Improve last error handling in ImageGetCertificateData.
[wine/multimedia.git] / programs / wordpad / wordpad.h
blob57e8e8e0e955f2b3983a73161f79a5b267740254
1 /*
2 * Copyright 2004 by Krzysztof Foltman
3 * Copyright 2007 by Alexander N. Sørnes <alex@thehandofagony.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #define MAX_STRING_LEN 255
22 #define ID_FILE_EXIT 1000
23 #define ID_FILE_OPEN 1001
24 #define ID_FILE_SAVE 1002
25 #define ID_FILE_NEW 1003
26 #define ID_FILE_SAVEAS 1004
28 #define ID_FILE_RECENT1 1005
29 #define ID_FILE_RECENT2 1006
30 #define ID_FILE_RECENT3 1007
31 #define ID_FILE_RECENT4 1008
32 #define ID_FILE_RECENT_SEPARATOR 1009
34 #define ID_PRINT 1010
35 #define ID_PREVIEW 1011
36 #define ID_PRINTSETUP 1012
37 #define ID_PRINT_QUICK 1013
39 #define ID_FIND 1014
40 #define ID_FIND_NEXT 1015
41 #define ID_REPLACE 1016
43 #define ID_PREVIEW_NEXTPAGE 1017
44 #define ID_PREVIEW_PREVPAGE 1018
46 #define ID_ALIGN_LEFT 1100
47 #define ID_ALIGN_CENTER 1101
48 #define ID_ALIGN_RIGHT 1102
50 #define ID_BACK_1 1200
51 #define ID_BACK_2 1201
53 #define ID_EDIT_SELECTALL 1300
54 #define ID_EDIT_SELECTIONINFO 1301
55 #define ID_EDIT_READONLY 1302
56 #define ID_EDIT_MODIFIED 1303
57 #define ID_EDIT_CHARFORMAT 1304
58 #define ID_EDIT_PARAFORMAT 1305
59 #define ID_EDIT_DEFCHARFORMAT 1306
60 #define ID_EDIT_UNDO 1307
61 #define ID_EDIT_REDO 1308
62 #define ID_EDIT_GETTEXT 1309
63 #define ID_EDIT_COPY 1310
64 #define ID_EDIT_CUT 1311
65 #define ID_EDIT_PASTE 1312
66 #define ID_EDIT_CLEAR 1313
67 #define ID_BULLET 1314
69 #define ID_FONTSETTINGS 1315
71 #define ID_FORMAT_BOLD 1400
72 #define ID_FORMAT_ITALIC 1401
73 #define ID_FORMAT_UNDERLINE 1402
75 #define ID_TOGGLE_TOOLBAR 1500
76 #define ID_TOGGLE_FORMATBAR 1501
77 #define ID_TOGGLE_STATUSBAR 1502
79 #define PREVIEW_BUTTONS 4
81 #define FILELIST_ENTRIES 4
82 #define FILELIST_ENTRY_LENGTH 33
84 #define BANDID_TOOLBAR 2
85 #define BANDID_FORMATBAR 3
86 #define BANDID_RULER 0
87 #define BANDID_STATUSBAR 1
88 #define BANDID_FONTLIST 4
89 #define BANDID_SIZELIST 5
91 #define BANDID_PREVIEW_BTN1 6
92 #define BANDID_PREVIEW_BTN2 7
93 #define BANDID_PREVIEW_BTN3 8
94 #define BANDID_PREVIEW_BTN4 9
95 #define BANDID_PREVIEW_BUFFER 10
97 #define ID_WORDWRAP_NONE 0
98 #define ID_WORDWRAP_WINDOW 1
99 #define ID_WORDWRAP_MARGIN 2
101 #define ID_NEWFILE_ABORT 100
103 #define ID_TAB_ADD 100
104 #define ID_TAB_DEL 101
105 #define ID_TAB_EMPTY 102
107 #define IDC_PAGEFMT_TB 100
108 #define IDC_PAGEFMT_FB 101
109 #define IDC_PAGEFMT_SB 102
110 #define IDC_PAGEFMT_WW 103
111 #define IDC_PAGEFMT_WM 104
112 #define IDC_PAGEFMT_ID 105
114 #define ID_DATETIME 1600
115 #define ID_PARAFORMAT 1601
116 #define ID_TABSTOPS 1602
118 #define ID_ABOUT 1603
119 #define ID_VIEWPROPERTIES 1604
121 #define IDC_STATUSBAR 2000
122 #define IDC_EDITOR 2001
123 #define IDC_TOOLBAR 2002
124 #define IDC_FORMATBAR 2003
125 #define IDC_REBAR 2004
126 #define IDC_COMBO 2005
127 #define IDC_DATETIME 2006
128 #define IDC_NEWFILE 2007
129 #define IDC_PARA_LEFT 2008
130 #define IDC_PARA_RIGHT 2009
131 #define IDC_PARA_FIRST 2010
132 #define IDC_PARA_ALIGN 2011
133 #define IDC_TABSTOPS 2012
134 #define IDC_FONTLIST 2013
135 #define IDC_SIZELIST 2014
137 #define IDD_DATETIME 2100
138 #define IDD_NEWFILE 2101
139 #define IDD_PARAFORMAT 2102
140 #define IDD_TABSTOPS 2103
141 #define IDD_FORMATOPTS 2104
143 #define IDM_MAINMENU 2200
144 #define IDM_POPUP 2201
146 #define IDB_TOOLBAR 100
147 #define IDB_FORMATBAR 101
149 #define IDI_WORDPAD 102
150 #define IDI_RTF 103
151 #define IDI_WRI 104
152 #define IDI_TXT 105
154 #define STRING_ALL_FILES 1400
155 #define STRING_TEXT_FILES_TXT 1401
156 #define STRING_TEXT_FILES_UNICODE_TXT 1402
157 #define STRING_RICHTEXT_FILES_RTF 1403
159 #define STRING_NEWFILE_RICHTEXT 1404
160 #define STRING_NEWFILE_TXT 1405
161 #define STRING_NEWFILE_TXT_UNICODE 1406
163 #define STRING_ALIGN_LEFT 1407
164 #define STRING_ALIGN_RIGHT 1408
165 #define STRING_ALIGN_CENTER 1409
167 #define STRING_PRINTER_FILES_PRN 1410
169 #define STRING_VIEWPROPS_TITLE 1411
170 #define STRING_VIEWPROPS_TEXT 1412
171 #define STRING_VIEWPROPS_RICHTEXT 1413
173 #define STRING_PREVIEW_PRINT 1414
174 #define STRING_PREVIEW_NEXTPAGE 1415
175 #define STRING_PREVIEW_PREVPAGE 1416
176 #define STRING_PREVIEW_CLOSE 1417
178 #define STRING_UNITS_CM 1418
180 #define STRING_DEFAULT_FILENAME 1700
181 #define STRING_PROMPT_SAVE_CHANGES 1701
182 #define STRING_SEARCH_FINISHED 1702
183 #define STRING_LOAD_RICHED_FAILED 1703
184 #define STRING_SAVE_LOSEFORMATTING 1704
185 #define STRING_INVALID_NUMBER 1705
186 #define STRING_OLE_STORAGE_NOT_SUPPORTED 1706
188 LPWSTR file_basename(LPWSTR);
190 void dialog_printsetup(HWND);
191 void dialog_print(HWND, LPWSTR);
192 void target_device(HWND, DWORD);
193 void print_quick(LPWSTR);
194 LRESULT preview_command(HWND, WPARAM, LPARAM);
195 void init_preview(HWND, LPWSTR);
196 void close_preview(HWND);
197 BOOL preview_isactive(void);
198 LRESULT print_preview(HWND);
199 void get_default_printer_opts(void);
200 void registry_set_pagemargins(HKEY);
201 void registry_read_pagemargins(HKEY);
203 int reg_formatindex(WPARAM);
204 void registry_read_filelist(HWND);
205 void registry_read_options(void);
206 void registry_read_formatopts_all(DWORD[], DWORD[]);
207 void registry_read_winrect(RECT*);
208 void registry_set_filelist(LPCWSTR, HWND);
209 void registry_set_formatopts_all(DWORD[]);
210 void registry_set_options(HWND);