1*c2c66affSColin Finck /* 2*c2c66affSColin Finck * Copyright 2004 by Krzysztof Foltman 3*c2c66affSColin Finck * Copyright 2007-2008 by Alexander N. Sørnes <alex@thehandofagony.com> 4*c2c66affSColin Finck * 5*c2c66affSColin Finck * This library is free software; you can redistribute it and/or 6*c2c66affSColin Finck * modify it under the terms of the GNU Lesser General Public 7*c2c66affSColin Finck * License as published by the Free Software Foundation; either 8*c2c66affSColin Finck * version 2.1 of the License, or (at your option) any later version. 9*c2c66affSColin Finck * 10*c2c66affSColin Finck * This library is distributed in the hope that it will be useful, 11*c2c66affSColin Finck * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*c2c66affSColin Finck * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13*c2c66affSColin Finck * Lesser General Public License for more details. 14*c2c66affSColin Finck * 15*c2c66affSColin Finck * You should have received a copy of the GNU Lesser General Public 16*c2c66affSColin Finck * License along with this library; if not, write to the Free Software 17*c2c66affSColin Finck * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 18*c2c66affSColin Finck */ 19*c2c66affSColin Finck 20*c2c66affSColin Finck #pragma once 21*c2c66affSColin Finck 22*c2c66affSColin Finck #define MAX_STRING_LEN 255 23*c2c66affSColin Finck 24*c2c66affSColin Finck #define TWIPS_PER_INCH 1440 25*c2c66affSColin Finck #define CENTMM_PER_INCH 2540 26*c2c66affSColin Finck 27*c2c66affSColin Finck #define ID_FILE_EXIT 1000 28*c2c66affSColin Finck #define ID_FILE_OPEN 1001 29*c2c66affSColin Finck #define ID_FILE_SAVE 1002 30*c2c66affSColin Finck #define ID_FILE_NEW 1003 31*c2c66affSColin Finck #define ID_FILE_SAVEAS 1004 32*c2c66affSColin Finck 33*c2c66affSColin Finck #define ID_FILE_RECENT1 1005 34*c2c66affSColin Finck #define ID_FILE_RECENT2 1006 35*c2c66affSColin Finck #define ID_FILE_RECENT3 1007 36*c2c66affSColin Finck #define ID_FILE_RECENT4 1008 37*c2c66affSColin Finck #define ID_FILE_RECENT_SEPARATOR 1009 38*c2c66affSColin Finck 39*c2c66affSColin Finck #define ID_PRINT 1010 40*c2c66affSColin Finck #define ID_PREVIEW 1011 41*c2c66affSColin Finck #define ID_PRINTSETUP 1012 42*c2c66affSColin Finck #define ID_PRINT_QUICK 1013 43*c2c66affSColin Finck 44*c2c66affSColin Finck #define ID_FIND 1014 45*c2c66affSColin Finck #define ID_FIND_NEXT 1015 46*c2c66affSColin Finck #define ID_REPLACE 1016 47*c2c66affSColin Finck 48*c2c66affSColin Finck #define ID_PREVIEW_NEXTPAGE 1017 49*c2c66affSColin Finck #define ID_PREVIEW_PREVPAGE 1018 50*c2c66affSColin Finck #define ID_PREVIEW_NUMPAGES 1019 51*c2c66affSColin Finck #define ID_PREVIEW_ZOOMIN 1020 52*c2c66affSColin Finck #define ID_PREVIEW_ZOOMOUT 1021 53*c2c66affSColin Finck 54*c2c66affSColin Finck #define ID_ALIGN_LEFT 1100 55*c2c66affSColin Finck #define ID_ALIGN_CENTER 1101 56*c2c66affSColin Finck #define ID_ALIGN_RIGHT 1102 57*c2c66affSColin Finck 58*c2c66affSColin Finck #define ID_BACK_1 1200 59*c2c66affSColin Finck #define ID_BACK_2 1201 60*c2c66affSColin Finck 61*c2c66affSColin Finck #define ID_EDIT_SELECTALL 1300 62*c2c66affSColin Finck #define ID_EDIT_SELECTIONINFO 1301 63*c2c66affSColin Finck #define ID_EDIT_READONLY 1302 64*c2c66affSColin Finck #define ID_EDIT_MODIFIED 1303 65*c2c66affSColin Finck #define ID_EDIT_CHARFORMAT 1304 66*c2c66affSColin Finck #define ID_EDIT_PARAFORMAT 1305 67*c2c66affSColin Finck #define ID_EDIT_DEFCHARFORMAT 1306 68*c2c66affSColin Finck #define ID_EDIT_UNDO 1307 69*c2c66affSColin Finck #define ID_EDIT_REDO 1308 70*c2c66affSColin Finck #define ID_EDIT_GETTEXT 1309 71*c2c66affSColin Finck #define ID_EDIT_COPY 1310 72*c2c66affSColin Finck #define ID_EDIT_CUT 1311 73*c2c66affSColin Finck #define ID_EDIT_PASTE 1312 74*c2c66affSColin Finck #define ID_EDIT_CLEAR 1313 75*c2c66affSColin Finck #define ID_BULLET 1314 76*c2c66affSColin Finck 77*c2c66affSColin Finck #define ID_FONTSETTINGS 1315 78*c2c66affSColin Finck 79*c2c66affSColin Finck #define ID_FORMAT_BOLD 1400 80*c2c66affSColin Finck #define ID_FORMAT_ITALIC 1401 81*c2c66affSColin Finck #define ID_FORMAT_UNDERLINE 1402 82*c2c66affSColin Finck #define ID_FORMAT_COLOR 1403 83*c2c66affSColin Finck 84*c2c66affSColin Finck #define ID_TOGGLE_TOOLBAR 1500 85*c2c66affSColin Finck #define ID_TOGGLE_FORMATBAR 1501 86*c2c66affSColin Finck #define ID_TOGGLE_STATUSBAR 1502 87*c2c66affSColin Finck #define ID_TOGGLE_RULER 1503 88*c2c66affSColin Finck 89*c2c66affSColin Finck #define PREVIEW_BUTTONS 7 90*c2c66affSColin Finck 91*c2c66affSColin Finck #define FILELIST_ENTRIES 4 92*c2c66affSColin Finck #define FILELIST_ENTRY_LENGTH 33 93*c2c66affSColin Finck 94*c2c66affSColin Finck #define BANDID_TOOLBAR 2 95*c2c66affSColin Finck #define BANDID_FORMATBAR 3 96*c2c66affSColin Finck #define BANDID_RULER 0 97*c2c66affSColin Finck #define BANDID_STATUSBAR 1 98*c2c66affSColin Finck #define BANDID_FONTLIST 4 99*c2c66affSColin Finck #define BANDID_SIZELIST 5 100*c2c66affSColin Finck 101*c2c66affSColin Finck #define BANDID_PREVIEW_BTN1 6 102*c2c66affSColin Finck #define BANDID_PREVIEW_BTN2 7 103*c2c66affSColin Finck #define BANDID_PREVIEW_BTN3 8 104*c2c66affSColin Finck #define BANDID_PREVIEW_BTN4 9 105*c2c66affSColin Finck #define BANDID_PREVIEW_BTN5 10 106*c2c66affSColin Finck #define BANDID_PREVIEW_BTN6 11 107*c2c66affSColin Finck #define BANDID_PREVIEW_BTN7 12 108*c2c66affSColin Finck #define BANDID_PREVIEW_BUFFER 13 109*c2c66affSColin Finck 110*c2c66affSColin Finck #define ID_WORDWRAP_NONE 0 111*c2c66affSColin Finck #define ID_WORDWRAP_WINDOW 1 112*c2c66affSColin Finck #define ID_WORDWRAP_MARGIN 2 113*c2c66affSColin Finck 114*c2c66affSColin Finck #define ID_NEWFILE_ABORT 100 115*c2c66affSColin Finck 116*c2c66affSColin Finck #define ID_TAB_ADD 100 117*c2c66affSColin Finck #define ID_TAB_DEL 101 118*c2c66affSColin Finck #define ID_TAB_EMPTY 102 119*c2c66affSColin Finck 120*c2c66affSColin Finck #define IDC_PAGEFMT_TB 100 121*c2c66affSColin Finck #define IDC_PAGEFMT_FB 101 122*c2c66affSColin Finck #define IDC_PAGEFMT_RU 102 123*c2c66affSColin Finck #define IDC_PAGEFMT_SB 103 124*c2c66affSColin Finck #define IDC_PAGEFMT_WN 104 125*c2c66affSColin Finck #define IDC_PAGEFMT_WW 105 126*c2c66affSColin Finck #define IDC_PAGEFMT_WM 106 127*c2c66affSColin Finck #define IDC_PAGEFMT_ID 107 128*c2c66affSColin Finck 129*c2c66affSColin Finck #define ID_DATETIME 1600 130*c2c66affSColin Finck #define ID_PARAFORMAT 1601 131*c2c66affSColin Finck #define ID_TABSTOPS 1602 132*c2c66affSColin Finck 133*c2c66affSColin Finck #define ID_ABOUT 1603 134*c2c66affSColin Finck #define ID_VIEWPROPERTIES 1604 135*c2c66affSColin Finck 136*c2c66affSColin Finck #define ID_COLOR_FIRST 1800 137*c2c66affSColin Finck #define ID_COLOR_BLACK 1800 138*c2c66affSColin Finck #define ID_COLOR_MAROON 1801 139*c2c66affSColin Finck #define ID_COLOR_GREEN 1802 140*c2c66affSColin Finck #define ID_COLOR_OLIVE 1803 141*c2c66affSColin Finck #define ID_COLOR_NAVY 1804 142*c2c66affSColin Finck #define ID_COLOR_PURPLE 1805 143*c2c66affSColin Finck #define ID_COLOR_TEAL 1806 144*c2c66affSColin Finck #define ID_COLOR_GRAY 1807 145*c2c66affSColin Finck #define ID_COLOR_SILVER 1808 146*c2c66affSColin Finck #define ID_COLOR_RED 1809 147*c2c66affSColin Finck #define ID_COLOR_LIME 1810 148*c2c66affSColin Finck #define ID_COLOR_YELLOW 1811 149*c2c66affSColin Finck #define ID_COLOR_BLUE 1812 150*c2c66affSColin Finck #define ID_COLOR_FUCHSIA 1813 151*c2c66affSColin Finck #define ID_COLOR_AQUA 1814 152*c2c66affSColin Finck #define ID_COLOR_WHITE 1815 153*c2c66affSColin Finck #define ID_COLOR_AUTOMATIC 1816 154*c2c66affSColin Finck 155*c2c66affSColin Finck #define IDC_STATUSBAR 2000 156*c2c66affSColin Finck #define IDC_EDITOR 2001 157*c2c66affSColin Finck #define IDC_TOOLBAR 2002 158*c2c66affSColin Finck #define IDC_FORMATBAR 2003 159*c2c66affSColin Finck #define IDC_REBAR 2004 160*c2c66affSColin Finck #define IDC_COMBO 2005 161*c2c66affSColin Finck #define IDC_DATETIME 2006 162*c2c66affSColin Finck #define IDC_NEWFILE 2007 163*c2c66affSColin Finck #define IDC_PARA_LEFT 2008 164*c2c66affSColin Finck #define IDC_PARA_RIGHT 2009 165*c2c66affSColin Finck #define IDC_PARA_FIRST 2010 166*c2c66affSColin Finck #define IDC_PARA_ALIGN 2011 167*c2c66affSColin Finck #define IDC_TABSTOPS 2012 168*c2c66affSColin Finck #define IDC_FONTLIST 2013 169*c2c66affSColin Finck #define IDC_SIZELIST 2014 170*c2c66affSColin Finck #define IDC_RULER 2015 171*c2c66affSColin Finck #define IDC_PREVIEW 2016 172*c2c66affSColin Finck 173*c2c66affSColin Finck #define IDD_DATETIME 2100 174*c2c66affSColin Finck #define IDD_NEWFILE 2101 175*c2c66affSColin Finck #define IDD_PARAFORMAT 2102 176*c2c66affSColin Finck #define IDD_TABSTOPS 2103 177*c2c66affSColin Finck #define IDD_FORMATOPTS 2104 178*c2c66affSColin Finck 179*c2c66affSColin Finck #define IDM_MAINMENU 2200 180*c2c66affSColin Finck #define IDM_POPUP 2201 181*c2c66affSColin Finck #define IDM_COLOR_POPUP 2202 182*c2c66affSColin Finck 183*c2c66affSColin Finck #define IDB_TOOLBAR 100 184*c2c66affSColin Finck #define IDB_FORMATBAR 101 185*c2c66affSColin Finck 186*c2c66affSColin Finck #define IDI_WORDPAD 102 187*c2c66affSColin Finck 188*c2c66affSColin Finck #ifdef __REACTOS__ 189*c2c66affSColin Finck 190*c2c66affSColin Finck #define IDI_RTFDOC 103 191*c2c66affSColin Finck #define IDC_ZOOM 104 192*c2c66affSColin Finck 193*c2c66affSColin Finck #else 194*c2c66affSColin Finck 195*c2c66affSColin Finck #define IDC_ZOOM 103 196*c2c66affSColin Finck 197*c2c66affSColin Finck #endif 198*c2c66affSColin Finck 199*c2c66affSColin Finck #define STRING_ALL_FILES 1400 200*c2c66affSColin Finck #define STRING_TEXT_FILES_TXT 1401 201*c2c66affSColin Finck #define STRING_TEXT_FILES_UNICODE_TXT 1402 202*c2c66affSColin Finck #define STRING_RICHTEXT_FILES_RTF 1403 203*c2c66affSColin Finck 204*c2c66affSColin Finck #define STRING_NEWFILE_RICHTEXT 1404 205*c2c66affSColin Finck #define STRING_NEWFILE_TXT 1405 206*c2c66affSColin Finck #define STRING_NEWFILE_TXT_UNICODE 1406 207*c2c66affSColin Finck 208*c2c66affSColin Finck #define STRING_PRINTER_FILES_PRN 1407 209*c2c66affSColin Finck 210*c2c66affSColin Finck #define STRING_ALIGN_LEFT 1416 211*c2c66affSColin Finck #define STRING_ALIGN_RIGHT 1417 212*c2c66affSColin Finck #define STRING_ALIGN_CENTER 1418 213*c2c66affSColin Finck 214*c2c66affSColin Finck #define STRING_VIEWPROPS_TITLE 1432 215*c2c66affSColin Finck #define STRING_VIEWPROPS_TEXT 1433 216*c2c66affSColin Finck #define STRING_VIEWPROPS_RICHTEXT 1434 217*c2c66affSColin Finck 218*c2c66affSColin Finck #define STRING_PREVIEW_PRINT 1448 219*c2c66affSColin Finck #define STRING_PREVIEW_NEXTPAGE 1449 220*c2c66affSColin Finck #define STRING_PREVIEW_PREVPAGE 1450 221*c2c66affSColin Finck #define STRING_PREVIEW_TWOPAGES 1451 222*c2c66affSColin Finck #define STRING_PREVIEW_ONEPAGE 1452 223*c2c66affSColin Finck #define STRING_PREVIEW_ZOOMIN 1453 224*c2c66affSColin Finck #define STRING_PREVIEW_ZOOMOUT 1454 225*c2c66affSColin Finck #define STRING_PREVIEW_CLOSE 1455 226*c2c66affSColin Finck #define STRING_PREVIEW_PAGE 1456 227*c2c66affSColin Finck #define STRING_PREVIEW_PAGES 1457 228*c2c66affSColin Finck 229*c2c66affSColin Finck #define STRING_UNITS_CM 1458 230*c2c66affSColin Finck #define STRING_UNITS_IN 1459 231*c2c66affSColin Finck #define STRING_UNITS_INCH 1460 232*c2c66affSColin Finck #define STRING_UNITS_PT 1461 233*c2c66affSColin Finck 234*c2c66affSColin Finck #define STRING_DEFAULT_FILENAME 1700 235*c2c66affSColin Finck #define STRING_PROMPT_SAVE_CHANGES 1701 236*c2c66affSColin Finck #define STRING_SEARCH_FINISHED 1702 237*c2c66affSColin Finck #define STRING_LOAD_RICHED_FAILED 1703 238*c2c66affSColin Finck #define STRING_SAVE_LOSEFORMATTING 1704 239*c2c66affSColin Finck #define STRING_INVALID_NUMBER 1705 240*c2c66affSColin Finck #define STRING_OLE_STORAGE_NOT_SUPPORTED 1706 241*c2c66affSColin Finck #define STRING_WRITE_FAILED 1707 242*c2c66affSColin Finck #define STRING_WRITE_ACCESS_DENIED 1708 243*c2c66affSColin Finck #define STRING_OPEN_FAILED 1709 244*c2c66affSColin Finck #define STRING_OPEN_ACCESS_DENIED 1710 245*c2c66affSColin Finck #define STRING_PRINTING_NOT_IMPLEMENTED 1711 246*c2c66affSColin Finck #define STRING_MAX_TAB_STOPS 1712 247*c2c66affSColin Finck 248*c2c66affSColin Finck /* wordpad.c */ 249*c2c66affSColin Finck LPWSTR file_basename(LPWSTR); 250*c2c66affSColin Finck 251*c2c66affSColin Finck /* print.c */ 252*c2c66affSColin Finck void dialog_printsetup(HWND); 253*c2c66affSColin Finck void dialog_print(HWND, LPWSTR); 254*c2c66affSColin Finck void target_device(HWND, DWORD); 255*c2c66affSColin Finck void print_quick(HWND, LPWSTR); 256*c2c66affSColin Finck LRESULT preview_command(HWND, WPARAM); 257*c2c66affSColin Finck void init_preview(HWND, LPWSTR); 258*c2c66affSColin Finck void close_preview(HWND); 259*c2c66affSColin Finck BOOL preview_isactive(void); 260*c2c66affSColin Finck void get_default_printer_opts(void); 261*c2c66affSColin Finck void registry_set_pagemargins(HKEY); 262*c2c66affSColin Finck void registry_read_pagemargins(HKEY); 263*c2c66affSColin Finck void registry_set_previewpages(HKEY hKey); 264*c2c66affSColin Finck void registry_read_previewpages(HKEY hKey); 265*c2c66affSColin Finck LRESULT CALLBACK ruler_proc(HWND, UINT, WPARAM, LPARAM); 266*c2c66affSColin Finck void redraw_ruler(HWND); 267*c2c66affSColin Finck 268*c2c66affSColin Finck /* registry.c */ 269*c2c66affSColin Finck int reg_formatindex(WPARAM); 270*c2c66affSColin Finck void registry_read_filelist(HWND); 271*c2c66affSColin Finck void registry_read_options(void); 272*c2c66affSColin Finck void registry_read_formatopts_all(DWORD[], DWORD[]); 273*c2c66affSColin Finck void registry_read_winrect(RECT*); 274*c2c66affSColin Finck void registry_read_maximized(DWORD*); 275*c2c66affSColin Finck void registry_set_filelist(LPCWSTR, HWND); 276*c2c66affSColin Finck void registry_set_formatopts_all(DWORD[], DWORD[]); 277*c2c66affSColin Finck void registry_set_options(HWND); 278*c2c66affSColin Finck 279*c2c66affSColin Finck /* olecallback.c */ 280*c2c66affSColin Finck HRESULT setup_richedit_olecallback(HWND hEditorWnd); 281