dialog.h 1.81 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1
/*
2
 *  Notepad (dialog.h)
Alexandre Julliard's avatar
Alexandre Julliard committed
3
 *
4
 *  Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20 21 22
 */

VOID DIALOG_FileNew(VOID);
VOID DIALOG_FileOpen(VOID);
23 24
BOOL DIALOG_FileSave(VOID);
BOOL DIALOG_FileSaveAs(VOID);
Alexandre Julliard's avatar
Alexandre Julliard committed
25 26 27 28 29 30 31 32 33 34 35 36
VOID DIALOG_FilePrint(VOID);
VOID DIALOG_FilePageSetup(VOID);
VOID DIALOG_FilePrinterSetup(VOID);
VOID DIALOG_FileExit(VOID);

VOID DIALOG_EditUndo(VOID);
VOID DIALOG_EditCut(VOID);
VOID DIALOG_EditCopy(VOID);
VOID DIALOG_EditPaste(VOID);
VOID DIALOG_EditDelete(VOID);
VOID DIALOG_EditSelectAll(VOID);
VOID DIALOG_EditTimeDate(VOID);
37
VOID DIALOG_EditWrap(VOID);
Alexandre Julliard's avatar
Alexandre Julliard committed
38 39 40

VOID DIALOG_Search(VOID);
VOID DIALOG_SearchNext(VOID);
41
VOID DIALOG_Replace(VOID);
Alexandre Julliard's avatar
Alexandre Julliard committed
42

43 44
VOID DIALOG_SelectFont(VOID);

Alexandre Julliard's avatar
Alexandre Julliard committed
45 46 47
VOID DIALOG_HelpContents(VOID);
VOID DIALOG_HelpSearch(VOID);
VOID DIALOG_HelpHelp(VOID);
48
VOID DIALOG_HelpAboutNotepad(VOID);
Alexandre Julliard's avatar
Alexandre Julliard committed
49

Alexandre Julliard's avatar
Alexandre Julliard committed
50
VOID DIALOG_TimeDate(VOID);
51
int DIALOG_StringMsgBox(HWND hParent, int formatId, LPCWSTR szString, DWORD dwFlags);
Alexandre Julliard's avatar
Alexandre Julliard committed
52

53
/* utility functions */
54
VOID ShowLastError(void);
55
void UpdateWindowCaption(void);
56
BOOL FileExists(LPCWSTR szFilename);
57
BOOL DoCloseFile(void);
58
void DoOpenFile(LPCWSTR szFileName, ENCODING enc);