opengl32: Make wgl driver entry points WINAPI.
[wine/zf.git] / programs / notepad / main.h
blobe0efef0c080bf3542572c89f2993fb08a870ef38
1 /*
2 * Notepad (notepad.h)
4 * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
5 * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
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.
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.
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
22 #include "notepad_res.h"
24 #define MAX_STRING_LEN 255
26 /* Values are indexes of the items in the Encoding combobox. */
27 typedef enum
29 ENCODING_AUTO = -1,
30 ENCODING_ANSI = 0,
31 ENCODING_UTF16LE = 1,
32 ENCODING_UTF16BE = 2,
33 ENCODING_UTF8 = 3
34 } ENCODING;
36 #define MIN_ENCODING 0
37 #define MAX_ENCODING 3
39 typedef struct
41 HANDLE hInstance;
42 HWND hMainWnd;
43 HWND hFindReplaceDlg;
44 HWND hEdit;
45 HFONT hFont; /* Font used by the edit control */
46 LOGFONTW lfFont;
47 BOOL bWrapLongLines;
48 WCHAR szFindText[MAX_PATH];
49 WCHAR szReplaceText[MAX_PATH];
50 WCHAR szFileName[MAX_PATH];
51 WCHAR szFileTitle[MAX_PATH];
52 ENCODING encFile;
53 WCHAR szFilter[2 * MAX_STRING_LEN + 100];
54 ENCODING encOfnCombo; /* Encoding selected in IDC_OFN_ENCCOMBO */
55 BOOL bOfnIsOpenDialog;
56 INT iMarginTop;
57 INT iMarginBottom;
58 INT iMarginLeft;
59 INT iMarginRight;
60 WCHAR szHeader[MAX_PATH];
61 WCHAR szFooter[MAX_PATH];
63 FINDREPLACEW find;
64 FINDREPLACEW lastFind;
65 HGLOBAL hDevMode; /* printer mode */
66 HGLOBAL hDevNames; /* printer names */
67 } NOTEPAD_GLOBALS;
69 extern NOTEPAD_GLOBALS Globals;
71 VOID SetFileNameAndEncoding(LPCWSTR szFileName, ENCODING enc);
72 void NOTEPAD_DoFind(FINDREPLACEW *fr);
73 DWORD get_dpi(void);