Release 981025.
[wine/gsoc-2012-control.git] / programs / notepad / main.h
blob2a0dded86160037ca86d26fd16179151536c17c4
1 /*
2 * Notepad (notepad.h)
4 * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
5 * To be distributed under the Wine License
6 */
8 #define MAX_STRING_LEN 255
9 #define MAX_PATHNAME_LEN 1024
10 #define MAX_LANGUAGE_NUMBER (NP_LAST_LANGUAGE - NP_FIRST_LANGUAGE)
12 #define HELPFILE "notepad.hlp"
13 #define DEFAULTICON OIC_WINEICON
15 /* hide the following from winerc */
16 #ifndef RC_INVOKED
18 typedef struct
20 HANDLE hInstance;
21 HWND hMainWnd;
22 HICON hMainIcon;
23 HICON hDefaultIcon;
24 HMENU hMainMenu;
25 HMENU hFileMenu;
26 HMENU hEditMenu;
27 HMENU hSearchMenu;
28 HMENU hLanguageMenu;
29 HMENU hHelpMenu;
30 LPCSTR lpszIniFile;
31 LPCSTR lpszIcoFile;
32 LPCSTR lpszLanguage;
33 UINT wStringTableOffset;
34 BOOL bWrapLongLines;
35 CHAR szFindText[MAX_PATHNAME_LEN];
36 CHAR szFileName[MAX_PATHNAME_LEN];
37 CHAR szMarginTop[MAX_PATHNAME_LEN];
38 CHAR szMarginBottom[MAX_PATHNAME_LEN];
39 CHAR szMarginLeft[MAX_PATHNAME_LEN];
40 CHAR szMarginRight[MAX_PATHNAME_LEN];
41 CHAR szHeader[MAX_PATHNAME_LEN];
42 CHAR szFooter[MAX_PATHNAME_LEN];
43 } NOTEPAD_GLOBALS;
45 extern NOTEPAD_GLOBALS Globals;
47 /* function prototypes */
49 /* class names */
51 /* Resource names */
52 extern CHAR STRING_MENU_Xx[];
53 extern CHAR STRING_PAGESETUP_Xx[];
55 #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
57 #else /* RC_INVOKED */
59 #define STRINGID(id) id
61 #endif
63 /* string table index */
64 #define IDS_LANGUAGE_ID STRINGID(00)
65 #define IDS_LANGUAGE_MENU_ITEM STRINGID(01)
66 #define IDS_NOTEPAD STRINGID(02)
67 #define IDS_TEXT_FILES_TXT STRINGID(03)
68 #define IDS_ALL_FILES STRINGID(04)
69 #define IDS_ERROR STRINGID(05)
70 #define IDS_WARNING STRINGID(06)
71 #define IDS_INFO STRINGID(07)
72 #define IDS_TOOLARGE STRINGID(08)
73 #define IDS_NOTEXT STRINGID(09)
74 #define IDS_NOTFOUND STRINGID(0A)
75 #define IDS_OUT_OF_MEMORY STRINGID(0B)
76 #define IDS_UNTITLED STRINGID(0C)
78 #define IDS_PAGESETUP_HEADERVALUE STRINGID(0D)
79 #define IDS_PAGESETUP_FOOTERVALUE STRINGID(0E)
80 #define IDS_PAGESETUP_LEFTVALUE STRINGID(0F)
81 #define IDS_PAGESETUP_RIGHTVALUE STRINGID(010)
82 #define IDS_PAGESETUP_TOPVALUE STRINGID(011)
83 #define IDS_PAGESETUP_BOTTOMVALUE STRINGID(012)
85 /* main menu */
87 #define NP_FILE_NEW 100
88 #define NP_FILE_OPEN 101
89 #define NP_FILE_SAVE 102
90 #define NP_FILE_SAVEAS 103
91 #define NP_FILE_PRINT 104
92 #define NP_FILE_PAGESETUP 105
93 #define NP_FILE_PRINTSETUP 106
94 #define NP_FILE_EXIT 107
96 #define NP_EDIT_UNDO 200
97 #define NP_EDIT_CUT 201
98 #define NP_EDIT_COPY 202
99 #define NP_EDIT_PASTE 203
100 #define NP_EDIT_DELETE 204
101 #define NP_EDIT_SELECTALL 205
102 #define NP_EDIT_TIMEDATE 206
103 #define NP_EDIT_WRAP 207
105 #define NP_SEARCH_SEARCH 300
106 #define NP_SEARCH_NEXT 301
108 #define NP_FIRST_LANGUAGE 400
109 #define NP_LAST_LANGUAGE 499
111 #define NP_HELP_CONTENTS 500
112 #define NP_HELP_SEARCH 501
113 #define NP_HELP_ON_HELP 502
114 #define NP_HELP_LICENSE 503
115 #define NP_HELP_NO_WARRANTY 504
116 #define NP_HELP_ABOUT_WINE 505
119 /* Dialog `Page Setup' */
121 #define NP_PAGESETUP_HEAD 1000
122 #define NP_PAGESETUP_HEAD_TXT 1001
123 #define NP_PAGESETUP_TAIL 1002
124 #define NP_PAGESETUP_TAIL_TXT 1003
125 #define NP_PAGESETUP_LEFT 1004
126 #define NP_PAGESETUP_LEFT_TXT 1005
127 #define NP_PAGESETUP_RIGHT 1006
128 #define NP_PAGESETUP_RIGHT_TXT 1007
129 #define NP_PAGESETUP_TOP 1008
130 #define NP_PAGESETUP_TOP_TXT 1009
131 #define NP_PAGESETUP_BOTTOM 1010
132 #define NP_PAGESETUP_BOTTOM_TXT 1011
133 #define NP_HELP 1012
134 #define NP_PAGESETUP_MARGIN 1013
136 /* Local Variables: */
137 /* c-file-style: "GNU" */
138 /* End: */