Initial revision of the About dialog.
[lilypad-windows.git] / main.h
blob1fde64d07150774311022b98e1f3589c59c3f592
1 /*
2 * LilyPad (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, Suite 500, Boston, MA 02110-1335, USA
22 #ifdef UNICODE
23 #define __WCHAR WCHAR
24 #define __LPCWSTR LPCWSTR
25 #define __LPWSTR LPWSTR
26 #else
27 #define __WCHAR char
28 #define __LPCWSTR LPCSTR
29 #define __LPWSTR LPSTR
30 #endif
32 #define SIZEOF(a) sizeof(a)/sizeof((a)[0])
34 #include "lilypad_res.h"
36 #define MAX_STRING_LEN 255
38 typedef struct
40 HANDLE hInstance;
41 HWND hMainWnd;
42 HWND hFindReplaceDlg;
43 HWND hEdit;
44 HFONT hFont; /* Font used by the edit control */
45 LOGFONT lfFont;
46 BOOL bWrapLongLines;
47 __WCHAR szFindText[MAX_PATH];
48 __WCHAR szFileName[MAX_PATH];
49 __WCHAR szFileTitle[MAX_PATH];
50 __WCHAR szFilter[2 * MAX_STRING_LEN + 100];
51 __WCHAR szMarginTop[MAX_PATH];
52 __WCHAR szMarginBottom[MAX_PATH];
53 __WCHAR szMarginLeft[MAX_PATH];
54 __WCHAR szMarginRight[MAX_PATH];
55 __WCHAR szHeader[MAX_PATH];
56 __WCHAR szFooter[MAX_PATH];
58 FINDREPLACE find;
59 FINDREPLACE lastFind;
60 HGLOBAL hDevMode; /* printer mode */
61 HGLOBAL hDevNames; /* printer names */
62 } LILYPAD_GLOBALS;
64 extern LILYPAD_GLOBALS Globals;
66 VOID SetFileName(__LPCWSTR szFileName);
67 void LILYPAD_DoFind(FINDREPLACE *fr);