xref: /reactos/base/applications/notepad/dialog.h (revision a03ef85b)
1 /*
2  *  Notepad (dialog.h)
3  *
4  *  Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #pragma once
22 
23 VOID DIALOG_FileNew(VOID);
24 VOID DIALOG_FileNewWindow(VOID);
25 VOID DIALOG_FileOpen(VOID);
26 BOOL DIALOG_FileSave(VOID);
27 BOOL DIALOG_FileSaveAs(VOID);
28 VOID DIALOG_FilePrint(VOID);
29 VOID DIALOG_FilePageSetup(VOID);
30 VOID DIALOG_FileExit(VOID);
31 
32 VOID DIALOG_EditUndo(VOID);
33 VOID DIALOG_EditCut(VOID);
34 VOID DIALOG_EditCopy(VOID);
35 VOID DIALOG_EditPaste(VOID);
36 VOID DIALOG_EditDelete(VOID);
37 VOID DIALOG_EditSelectAll(VOID);
38 VOID DIALOG_EditTimeDate(VOID);
39 VOID DIALOG_EditWrap(VOID);
40 
41 VOID DIALOG_Search(VOID);
42 VOID DIALOG_SearchNext(VOID);
43 VOID DIALOG_Replace(VOID);
44 VOID DIALOG_GoTo(VOID);
45 
46 VOID DIALOG_SelectFont(VOID);
47 
48 VOID DIALOG_ViewStatusBar(VOID);
49 VOID DIALOG_StatusBarAlignParts(VOID);
50 VOID DIALOG_StatusBarUpdateCaretPos(VOID);
51 
52 VOID DIALOG_HelpContents(VOID);
53 VOID DIALOG_HelpSearch(VOID);
54 VOID DIALOG_HelpLicense(VOID);
55 VOID DIALOG_HelpNoWarranty(VOID);
56 VOID DIALOG_HelpAboutNotepad(VOID);
57 
58 VOID DIALOG_TimeDate(VOID);
59 
60 int DIALOG_StringMsgBox(HWND hParent, int formatId, LPCTSTR szString, DWORD dwFlags);
61 
62 INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
63 
64 /* utility functions */
65 VOID ShowLastError(VOID);
66 BOOL FileExists(LPCTSTR szFilename);
67 BOOL HasFileExtension(LPCTSTR szFilename);
68 BOOL DoCloseFile(VOID);
69 VOID DoOpenFile(LPCTSTR szFileName);
70 VOID DoCreateStatusBar(VOID);
71 VOID DoCreateEditWindow(VOID);
72