Added regedit unit test, a couple minor changes to regedit.
[wine] / programs / notepad / main.h
1 /*
2  *  Notepad (notepad.h)
3  *
4  *  Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
5  *  Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #include "notepad_res.h"
23
24 #define MAX_STRING_LEN      255
25 #define MAX_PATHNAME_LEN    1024
26 #define MAX_LANGUAGE_NUMBER (NP_LAST_LANGUAGE - NP_FIRST_LANGUAGE)
27
28 #define HELPFILE  "notepad.hlp"
29 #define LOGPREFIX ".LOG"
30
31 /* hide the following from winerc */
32 #ifndef RC_INVOKED
33
34 #define WINE_RELEASE_INFO "Wine (www.winehq.com)"
35
36 #include "commdlg.h"
37
38 /***** Compatibility *****/
39
40 #ifndef OIC_WINLOGO
41 #define OIC_WINLOGO 32517
42 #endif
43 #define DEFAULTICON OIC_WINLOGO
44
45 typedef struct
46 {
47   HANDLE  hInstance;
48   HWND    hMainWnd;
49   HWND    hFindReplaceDlg;
50   HICON   hMainIcon;
51   HICON   hDefaultIcon;
52   HMENU   hMainMenu;
53   HMENU   hFileMenu;
54   HMENU   hEditMenu;
55   HMENU   hSearchMenu;
56   HMENU   hLanguageMenu;
57   HMENU   hHelpMenu;
58   LPCSTR  lpszIniFile;
59   LPCSTR  lpszIcoFile;
60   UINT    wStringTableOffset;
61   BOOL    bWrapLongLines;
62   CHAR    szFindText[MAX_PATHNAME_LEN];
63   CHAR    szReplaceText[MAX_PATHNAME_LEN];
64   CHAR    szFileName[MAX_PATHNAME_LEN];
65   CHAR    szMarginTop[MAX_PATHNAME_LEN];
66   CHAR    szMarginBottom[MAX_PATHNAME_LEN];
67   CHAR    szMarginLeft[MAX_PATHNAME_LEN];
68   CHAR    szMarginRight[MAX_PATHNAME_LEN];
69   CHAR    szHeader[MAX_PATHNAME_LEN];
70   CHAR    szFooter[MAX_PATHNAME_LEN];
71
72   FINDREPLACE find;
73   WORD    nCommdlgFindReplaceMsg;
74   CHAR    Buffer[12000];
75 } NOTEPAD_GLOBALS;
76
77 extern NOTEPAD_GLOBALS Globals;
78
79 /* function prototypes */
80
81 void TrashBuffer(void);
82 void LoadBufferFromFile(LPCSTR lpFileName);
83
84 /* class names */
85
86 /* Resource names */
87 extern CHAR STRING_MENU_Xx[];
88 extern CHAR STRING_PAGESETUP_Xx[];
89
90 #else  /* RC_INVOKED */
91
92 #endif