ReactOS 0.4.16-dev-976-g18fc5a1
|
#include <stdio.h>
#include <assert.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <richedit.h>
#include <commctrl.h>
#include <commdlg.h>
#include <shellapi.h>
#include <shlobj.h>
#include <wine/unicode.h>
#include "wordpad.h"
Go to the source code of this file.
Classes | |
struct | FINDREPLACE_custom |
Macros | |
#define | WIN32_LEAN_AND_MEAN |
#define | U(x) (x) |
#define | U2(x) (x) |
#define | U3(x) (x) |
Enumerations | |
enum | UNIT { UNIT_CM , UNIT_INCH , UNIT_PT } |
Variables | |
static const WCHAR | wszAppTitle [] = {'W','o','r','d','p','a','d',0} |
static const WCHAR | wszMainWndClass [] = {'W','O','R','D','P','A','D','T','O','P',0} |
static const WCHAR | stringFormat [] = {'%','2','d','\0'} |
const WCHAR | wszPreviewWndClass [] = {'P','r','t','P','r','e','v','i','e','w',0} |
static HWND | hMainWnd |
static HWND | hEditorWnd |
static HWND | hFindWnd |
static HMENU | hColorPopupMenu |
static UINT | ID_FINDMSGSTRING |
static DWORD | wordWrap [2] |
static DWORD | barState [2] |
static WPARAM | fileFormat = SF_RTF |
static WCHAR | wszFileName [MAX_PATH] |
static WCHAR | wszFilter [MAX_STRING_LEN *4+6 *3+5] |
static WCHAR | wszDefaultFileName [MAX_STRING_LEN] |
static WCHAR | wszSaveChanges [MAX_STRING_LEN] |
static WCHAR | units_cmW [MAX_STRING_LEN] |
static WCHAR | units_inW [MAX_STRING_LEN] |
static WCHAR | units_inchW [MAX_STRING_LEN] |
static WCHAR | units_ptW [MAX_STRING_LEN] |
static const COLORREF | textcolors [] |
|
static |
Definition at line 536 of file wordpad.c.
Referenced by enum_font_proc().
Definition at line 353 of file wordpad.c.
Referenced by populate_size_list().
Definition at line 155 of file wordpad.c.
Referenced by InitFilterListBox(), and OnCreate().
Definition at line 169 of file wordpad.c.
Referenced by NtLdrAddOptions(), and OnCreate().
Definition at line 1385 of file wordpad.c.
Referenced by tabstops_proc().
Definition at line 448 of file wordpad.c.
Referenced by DoOpenFile(), and OnCommand().
|
static |
Definition at line 1429 of file wordpad.c.
Referenced by OnCommand().
Definition at line 1018 of file wordpad.c.
Referenced by OnCommand().
Definition at line 566 of file wordpad.c.
Referenced by OnCommand().
|
static |
Definition at line 1314 of file wordpad.c.
Referenced by OnCommand().
Definition at line 1122 of file wordpad.c.
Referenced by OnCommand().
Definition at line 993 of file wordpad.c.
Referenced by OnCommand().
Definition at line 909 of file wordpad.c.
Referenced by OnCommand(), and prompt_save_changes().
Definition at line 97 of file wordpad.c.
Referenced by OnCreate().
Definition at line 764 of file wordpad.c.
Referenced by DialogOpenFile(), HandleCommandLine(), OnCommand(), and WndProc().
Definition at line 840 of file wordpad.c.
Referenced by DialogSaveFile(), OnCommand(), and prompt_save_changes().
|
static |
Definition at line 615 of file wordpad.c.
Referenced by populate_font_list().
Definition at line 212 of file wordpad.c.
Referenced by format_filelist_filename(), prompt_save_changes(), and set_caption().
Definition at line 472 of file wordpad.c.
Referenced by DialogSaveFile(), and newfile_proc().
Definition at line 458 of file wordpad.c.
Referenced by DialogOpenFile(), and DialogSaveFile().
|
static |
Definition at line 1024 of file wordpad.c.
Referenced by dialog_viewproperties().
Definition at line 1400 of file wordpad.c.
Referenced by OnCommand().
|
static |
Definition at line 1221 of file wordpad.c.
Referenced by handle_findmsg(), OnCommand(), and WndProc().
Definition at line 1168 of file wordpad.c.
Referenced by WinMain().
Definition at line 660 of file wordpad.c.
Referenced by OnCommand(), OnInitPopupMenu(), and set_bar_states().
|
static |
Definition at line 137 of file wordpad.c.
Referenced by DialogSaveFile(), DoOpenFile(), handle_findmsg(), HandleCommandLine(), on_sizelist_modified(), OnCreate(), paraformat_proc(), and tabstops_proc().
|
static |
Definition at line 1485 of file wordpad.c.
Referenced by OnCommand().
Definition at line 295 of file wordpad.c.
Referenced by on_sizelist_modified(), paraformat_proc(), and tabstops_proc().
Definition at line 1392 of file wordpad.c.
Referenced by paraformat_proc(), and tabstops_proc().
Definition at line 525 of file wordpad.c.
Referenced by OnCommand(), and OnNotify().
Definition at line 327 of file wordpad.c.
Referenced by OnCommand(), and OnNotify().
Definition at line 2068 of file wordpad.c.
Referenced by WndProc().
Definition at line 1805 of file wordpad.c.
Referenced by WndProc().
Definition at line 2486 of file wordpad.c.
Referenced by WndProc().
Definition at line 2015 of file wordpad.c.
Referenced by DECLARE_INTERFACE_(), and WndProc().
Definition at line 2547 of file wordpad.c.
Referenced by update_window(), and WndProc().
Definition at line 1963 of file wordpad.c.
Referenced by WndProc().
|
static |
Definition at line 1528 of file wordpad.c.
Referenced by OnCommand().
Definition at line 631 of file wordpad.c.
Referenced by OnCreate().
Definition at line 365 of file wordpad.c.
Referenced by OnCreate(), set_font(), and update_font_list().
Definition at line 723 of file wordpad.c.
Referenced by WndProc().
Definition at line 1016 of file print.c.
Referenced by WinMain().
Definition at line 940 of file wordpad.c.
Referenced by DialogOpenFile(), OnCommand(), and WndProc().
Definition at line 711 of file wordpad.c.
Referenced by dialog_viewproperties(), OnCommand(), preview_exit(), set_fileformat(), and WinMain().
Definition at line 228 of file wordpad.c.
Referenced by DoOpenFile(), DoSaveFile(), OnCommand(), and WinMain().
Definition at line 501 of file wordpad.c.
Referenced by OnCreate(), and set_fileformat().
Definition at line 739 of file wordpad.c.
Referenced by DoOpenFile(), DoSaveFile(), OnCommand(), and WinMain().
Definition at line 479 of file wordpad.c.
Referenced by dialog_choose_font(), and on_fontlist_modified().
Definition at line 316 of file wordpad.c.
Referenced by on_sizelist_modified(), set_end_of_file_information(), set_valid_data_length_information(), and test_multi_encoder_impl().
Definition at line 703 of file wordpad.c.
Referenced by OnCommand(), and set_bar_states().
Definition at line 675 of file wordpad.c.
Referenced by OnCommand(), and set_bar_states().
Definition at line 748 of file wordpad.c.
Referenced by DoOpenFile().
Definition at line 824 of file wordpad.c.
Referenced by DoSaveFile().
Definition at line 665 of file wordpad.c.
Referenced by set_statusbar_state(), and set_toolbar_state().
Definition at line 183 of file wordpad.c.
Referenced by DoOpenFile().
|
static |
Definition at line 1653 of file wordpad.c.
Referenced by OnCommand().
Definition at line 1363 of file wordpad.c.
Referenced by paraformat_proc(), and tabstops_proc().
Definition at line 424 of file wordpad.c.
Referenced by DoOpenFile(), OnCommand(), and OnNotify().
Definition at line 404 of file wordpad.c.
Referenced by update_font_list().
Definition at line 651 of file wordpad.c.
Referenced by create_animate(), OnCommand(), preview_exit(), set_bar_states(), and test_redraw().
Definition at line 256 of file wordpad.c.
Referenced by number_from_string().
int CALLBACK WinMain | ( | HINSTANCE | hInstance, |
HINSTANCE | hOldInstance, | ||
LPSTR | szCmdParagraph, | ||
int | nCmdShow | ||
) |
Definition at line 2661 of file wordpad.c.
Definition at line 2586 of file wordpad.c.
Referenced by WinMain().
|
static |
Definition at line 68 of file wordpad.c.
Referenced by formatopts_proc(), is_bar_visible(), OnCommand(), OnCreate(), registry_read_formatopts(), registry_read_formatopts_all(), registry_set_formatopts(), registry_set_formatopts_all(), store_bar_state(), and WndProc().
Definition at line 69 of file wordpad.c.
Referenced by dialog_viewproperties(), DialogOpenFile(), DialogSaveFile(), is_bar_visible(), OnCommand(), prompt_save_changes(), set_default_font(), set_fileformat(), store_bar_state(), and WinMain().
|
static |
Definition at line 63 of file wordpad.c.
Referenced by OnCommand(), and WinMain().
|
static |
Definition at line 61 of file wordpad.c.
Referenced by char_from_pagenum(), clear_formatting(), datetime_proc(), dialog_choose_font(), dialog_find(), dialog_print(), DoOpenFile(), DoSaveFile(), draw_preview(), handle_findmsg(), on_fontlist_modified(), on_sizelist_modified(), OnCommand(), OnCreate(), OnInitPopupMenu(), paraformat_proc(), populate_font_list(), populate_size_list(), preview_exit(), preview_proc(), print(), prompt_save_changes(), set_default_font(), set_font(), set_size(), setup_richedit_olecallback(), tabstops_proc(), target_device(), update_font_list(), update_preview(), and update_size_list().
|
static |
Definition at line 62 of file wordpad.c.
Referenced by dialog_find(), handle_findmsg(), and WinMain().
|
static |
Definition at line 60 of file wordpad.c.
Referenced by _tWinMain(), dialog_about(), dialog_choose_font(), dialog_find(), dialog_viewproperties(), DialogOpenFile(), DialogSaveFile(), DoOpenFile(), handle_findmsg(), HandleCommandLine(), on_sizelist_modified(), OnCommand(), paraformat_proc(), populate_font_list(), populate_size_list(), preview_exit(), prompt_save_changes(), set_caption(), set_fileformat(), set_font(), set_statusbar_state(), set_toolbar_state(), ShowOpenError(), ShowWriteError(), update_font_list(), update_size_list(), update_window(), WinMain(), and WndProc().
|
static |
Definition at line 65 of file wordpad.c.
Referenced by OnCreate(), and WndProc().
Definition at line 55 of file wordpad.c.
Referenced by add_size(), Graphics::DrawString(), GdipMeasureCharacterRanges(), on_sizelist_modified(), populate_size_list(), test_comboex_WM_LBUTTONDOWN(), test_WM_LBUTTONDOWN(), and update_size_list().
Definition at line 2060 of file wordpad.c.
Referenced by OnCommand().
|
static |
Definition at line 75 of file wordpad.c.
Referenced by append_current_units(), DoLoadStrings(), number_with_units(), and validate_endptr().
|
static |
Definition at line 77 of file wordpad.c.
Referenced by DoLoadStrings(), and validate_endptr().
|
static |
Definition at line 76 of file wordpad.c.
Referenced by DoLoadStrings(), and validate_endptr().
|
static |
Definition at line 78 of file wordpad.c.
Referenced by DoLoadStrings(), and validate_endptr().
|
static |
Definition at line 67 of file wordpad.c.
Referenced by dialog_viewproperties(), formatopts_proc(), OnCommand(), OnCreate(), registry_read_formatopts(), registry_read_formatopts_all(), registry_set_formatopts(), registry_set_formatopts_all(), set_fileformat(), target_device(), WinMain(), and WndProc().
Definition at line 51 of file wordpad.c.
Referenced by dialog_about(), DialogSaveFile(), DoOpenFile(), handle_findmsg(), HandleCommandLine(), on_sizelist_modified(), OnCommand(), OnCreate(), paraformat_proc(), prompt_save_changes(), set_caption(), ShowOpenError(), ShowWriteError(), tabstops_proc(), and WinMain().
|
static |
Definition at line 73 of file wordpad.c.
Referenced by DoLoadStrings(), prompt_save_changes(), and set_caption().
Definition at line 71 of file wordpad.c.
Referenced by _InitializePrintProviderList(), dialog_print(), DoOpenFile(), DoSaveFile(), init_preview(), InitializePrintProcessorList(), OnCommand(), print(), print_quick(), prompt_save_changes(), RenderHDROP(), test_GetDisplayName(), test_ROT(), and test_SHGetPathFromIDList().
|
static |
Definition at line 72 of file wordpad.c.
Referenced by AVIBuildFilterA(), COpenWithDialog::Browse(), DialogOpenFile(), DialogSaveFile(), and DoLoadStrings().
Definition at line 57 of file wordpad.c.
Referenced by init_preview(), and WinMain().
|
static |
Definition at line 74 of file wordpad.c.
Referenced by DoLoadStrings(), and prompt_save_changes().