xref: /reactos/base/applications/notepad/dialog.h (revision ccef43f3)
1 /*
2  * PROJECT:    ReactOS Notepad
3  * LICENSE:    LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4  * PURPOSE:    Providing a Windows-compatible simple text editor for ReactOS
5  * COPYRIGHT:  Copyright 1998,99 Marcel Baur <mbaur@g26.ethz.ch>
6  */
7 
8 #pragma once
9 
10 VOID DIALOG_FileNew(VOID);
11 VOID DIALOG_FileNewWindow(VOID);
12 VOID DIALOG_FileOpen(VOID);
13 BOOL DIALOG_FileSave(VOID);
14 BOOL DIALOG_FileSaveAs(VOID);
15 VOID DIALOG_FilePrint(VOID);
16 VOID DIALOG_FilePageSetup(VOID);
17 VOID DIALOG_FileExit(VOID);
18 
19 VOID DIALOG_EditUndo(VOID);
20 VOID DIALOG_EditCut(VOID);
21 VOID DIALOG_EditCopy(VOID);
22 VOID DIALOG_EditPaste(VOID);
23 VOID DIALOG_EditDelete(VOID);
24 VOID DIALOG_EditSelectAll(VOID);
25 VOID DIALOG_EditTimeDate(VOID);
26 VOID DIALOG_EditWrap(VOID);
27 
28 VOID DIALOG_Search(VOID);
29 VOID DIALOG_SearchNext(BOOL bDown);
30 VOID DIALOG_Replace(VOID);
31 VOID DIALOG_GoTo(VOID);
32 
33 VOID DIALOG_SelectFont(VOID);
34 
35 VOID DIALOG_ViewStatusBar(VOID);
36 VOID DIALOG_StatusBarAlignParts(VOID);
37 VOID DIALOG_StatusBarUpdateCaretPos(VOID);
38 
39 VOID DIALOG_HelpContents(VOID);
40 VOID DIALOG_HelpSearch(VOID);
41 VOID DIALOG_HelpLicense(VOID);
42 VOID DIALOG_HelpNoWarranty(VOID);
43 VOID DIALOG_HelpAboutNotepad(VOID);
44 
45 VOID DIALOG_TimeDate(VOID);
46 
47 int DIALOG_StringMsgBox(HWND hParent, int formatId, LPCTSTR szString, DWORD dwFlags);
48 
49 INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
50 
51 /* utility functions */
52 VOID ShowLastError(VOID);
53 BOOL FileExists(LPCTSTR szFilename);
54 BOOL HasFileExtension(LPCTSTR szFilename);
55 BOOL DoCloseFile(VOID);
56 VOID DoOpenFile(LPCTSTR szFileName);
57 VOID DoShowHideStatusBar(VOID);
58 VOID DoCreateEditWindow(VOID);
59 void UpdateWindowCaption(BOOL clearModifyAlert);
60