notepad: Implement handling of page setup dialog parameters.
[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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21
22 #define SIZEOF(a) sizeof(a)/sizeof((a)[0])
23
24 #include "notepad_res.h"
25
26 #define MAX_STRING_LEN      255
27
28 typedef struct
29 {
30   HANDLE  hInstance;
31   HWND    hMainWnd;
32   HWND    hFindReplaceDlg;
33   HWND    hEdit;
34   HFONT   hFont; /* Font used by the edit control */
35   LOGFONT lfFont;
36   BOOL    bWrapLongLines;
37   WCHAR   szFindText[MAX_PATH];
38   WCHAR   szFileName[MAX_PATH];
39   WCHAR   szFileTitle[MAX_PATH];
40   WCHAR   szFilter[2 * MAX_STRING_LEN + 100];
41   INT     iMarginTop;
42   INT     iMarginBottom;
43   INT     iMarginLeft;
44   INT     iMarginRight;
45   WCHAR   szHeader[MAX_PATH];
46   WCHAR   szFooter[MAX_PATH];
47
48   FINDREPLACE find;
49   FINDREPLACE lastFind;
50   HGLOBAL hDevMode; /* printer mode */
51   HGLOBAL hDevNames; /* printer names */
52 } NOTEPAD_GLOBALS;
53
54 extern NOTEPAD_GLOBALS Globals;
55
56 VOID SetFileName(LPCWSTR szFileName);
57 void NOTEPAD_DoFind(FINDREPLACE *fr);