Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmain.h
Go to the documentation of this file.
00001 /* 00002 * Notepad (notepad.h) 00003 * 00004 * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch> 00005 * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr> 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #define SIZEOF(a) (sizeof(a)/sizeof((a)[0])) 00023 00024 #include "notepad_res.h" 00025 00026 #define EDIT_STYLE_WRAP (WS_CHILD | WS_VSCROLL \ 00027 | ES_AUTOVSCROLL | ES_MULTILINE | ES_NOHIDESEL) 00028 #define EDIT_STYLE (EDIT_STYLE_WRAP | WS_HSCROLL | ES_AUTOHSCROLL) 00029 00030 #define EDIT_CLASS _T("EDIT") 00031 00032 #define MAX_STRING_LEN 255 00033 00034 #define ENCODING_ANSI 0 00035 #define ENCODING_UNICODE 1 00036 #define ENCODING_UNICODE_BE 2 00037 #define ENCODING_UTF8 3 00038 00039 #define EOLN_CRLF 0 00040 #define EOLN_LF 1 00041 #define EOLN_CR 2 00042 00043 typedef struct 00044 { 00045 HINSTANCE hInstance; 00046 HWND hMainWnd; 00047 HWND hFindReplaceDlg; 00048 HWND hEdit; 00049 HWND hStatusBar; 00050 HFONT hFont; /* Font used by the edit control */ 00051 HMENU hMenu; 00052 LOGFONT lfFont; 00053 BOOL bWrapLongLines; 00054 BOOL bShowStatusBar; 00055 TCHAR szFindText[MAX_PATH]; 00056 TCHAR szReplaceText[MAX_PATH]; 00057 TCHAR szFileName[MAX_PATH]; 00058 TCHAR szFileTitle[MAX_PATH]; 00059 TCHAR szFilter[2 * MAX_STRING_LEN + 100]; 00060 TCHAR szMarginTop[MAX_PATH]; 00061 TCHAR szMarginBottom[MAX_PATH]; 00062 TCHAR szMarginLeft[MAX_PATH]; 00063 TCHAR szMarginRight[MAX_PATH]; 00064 TCHAR szHeader[MAX_PATH]; 00065 TCHAR szFooter[MAX_PATH]; 00066 TCHAR szStatusBarLineCol[MAX_PATH]; 00067 int iEncoding; 00068 int iEoln; 00069 00070 FINDREPLACE find; 00071 WNDPROC EditProc; 00072 RECT main_rect; 00073 } NOTEPAD_GLOBALS; 00074 00075 extern NOTEPAD_GLOBALS Globals; 00076 00077 VOID SetFileName(LPCTSTR szFileName); 00078 00079 /* from text.c */ 00080 BOOL ReadText(HANDLE hFile, LPWSTR *ppszText, DWORD *pdwTextLen, int *piEncoding, int *piEoln); 00081 BOOL WriteText(HANDLE hFile, LPCWSTR pszText, DWORD dwTextLen, int iEncoding, int iEoln); 00082 00083 /* from settings.c */ 00084 void LoadSettings(void); 00085 void SaveSettings(void); 00086 00087 /* from main.c */ 00088 BOOL NOTEPAD_FindNext(FINDREPLACE *, BOOL , BOOL ); 00089 VOID NOTEPAD_EnableSearchMenu(VOID); Generated on Sun May 27 2012 04:16:45 for ReactOS by
1.7.6.1
|