4 * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
5 * To be distributed under the Wine License
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 LOGPREFIX ".LOG"
14 #define DEFAULTICON OIC_WINLOGO
16 /* hide the following from winerc */
36 UINT wStringTableOffset;
38 CHAR szFindText[MAX_PATHNAME_LEN];
39 CHAR szReplaceText[MAX_PATHNAME_LEN];
40 CHAR szFileName[MAX_PATHNAME_LEN];
41 CHAR szMarginTop[MAX_PATHNAME_LEN];
42 CHAR szMarginBottom[MAX_PATHNAME_LEN];
43 CHAR szMarginLeft[MAX_PATHNAME_LEN];
44 CHAR szMarginRight[MAX_PATHNAME_LEN];
45 CHAR szHeader[MAX_PATHNAME_LEN];
46 CHAR szFooter[MAX_PATHNAME_LEN];
49 WORD nCommdlgFindReplaceMsg;
53 extern NOTEPAD_GLOBALS Globals;
55 /* function prototypes */
57 void TrashBuffer(void);
58 void LoadBufferFromFile(LPCSTR lpFileName);
63 extern CHAR STRING_MENU_Xx[];
64 extern CHAR STRING_PAGESETUP_Xx[];
66 #define STRINGID(id) (0x##id + Globals.wStringTableOffset)
68 #else /* RC_INVOKED */
70 #define STRINGID(id) id
74 /* string table index */
75 #define IDS_LANGUAGE_ID STRINGID(00)
76 #define IDS_LANGUAGE_MENU_ITEM STRINGID(01)
77 #define IDS_NOTEPAD STRINGID(02)
78 #define IDS_TEXT_FILES_TXT STRINGID(03)
79 #define IDS_ALL_FILES STRINGID(04)
80 #define IDS_ERROR STRINGID(05)
81 #define IDS_WARNING STRINGID(06)
82 #define IDS_INFO STRINGID(07)
83 #define IDS_TOOLARGE STRINGID(08)
84 #define IDS_NOTEXT STRINGID(09)
85 #define IDS_NOTSAVED STRINGID(0A)
86 #define IDS_NOTFOUND STRINGID(0B)
87 #define IDS_OUT_OF_MEMORY STRINGID(0C)
88 #define IDS_UNTITLED STRINGID(0D)
90 #define IDS_PAGESETUP_HEADERVALUE STRINGID(0E)
91 #define IDS_PAGESETUP_FOOTERVALUE STRINGID(0F)
92 #define IDS_PAGESETUP_LEFTVALUE STRINGID(10)
93 #define IDS_PAGESETUP_RIGHTVALUE STRINGID(11)
94 #define IDS_PAGESETUP_TOPVALUE STRINGID(12)
95 #define IDS_PAGESETUP_BOTTOMVALUE STRINGID(13)
99 #define NP_FILE_NEW 100
100 #define NP_FILE_OPEN 101
101 #define NP_FILE_SAVE 102
102 #define NP_FILE_SAVEAS 103
103 #define NP_FILE_PRINT 104
104 #define NP_FILE_PAGESETUP 105
105 #define NP_FILE_PRINTSETUP 106
106 #define NP_FILE_EXIT 107
108 #define NP_EDIT_UNDO 200
109 #define NP_EDIT_CUT 201
110 #define NP_EDIT_COPY 202
111 #define NP_EDIT_PASTE 203
112 #define NP_EDIT_DELETE 204
113 #define NP_EDIT_SELECTALL 205
114 #define NP_EDIT_TIMEDATE 206
115 #define NP_EDIT_WRAP 207
117 #define NP_SEARCH_SEARCH 300
118 #define NP_SEARCH_NEXT 301
120 #define NP_FIRST_LANGUAGE 400
121 #define NP_LAST_LANGUAGE 499
123 #define NP_HELP_CONTENTS 500
124 #define NP_HELP_SEARCH 501
125 #define NP_HELP_ON_HELP 502
126 #define NP_HELP_LICENSE 503
127 #define NP_HELP_NO_WARRANTY 504
128 #define NP_HELP_ABOUT_WINE 505
131 /* Dialog `Page Setup' */
133 #define NP_PAGESETUP_HEAD 1000
134 #define NP_PAGESETUP_HEAD_TXT 1001
135 #define NP_PAGESETUP_TAIL 1002
136 #define NP_PAGESETUP_TAIL_TXT 1003
137 #define NP_PAGESETUP_LEFT 1004
138 #define NP_PAGESETUP_LEFT_TXT 1005
139 #define NP_PAGESETUP_RIGHT 1006
140 #define NP_PAGESETUP_RIGHT_TXT 1007
141 #define NP_PAGESETUP_TOP 1008
142 #define NP_PAGESETUP_TOP_TXT 1009
143 #define NP_PAGESETUP_BOTTOM 1010
144 #define NP_PAGESETUP_BOTTOM_TXT 1011
146 #define NP_PAGESETUP_MARGIN 1013
148 /* Local Variables: */
149 /* c-file-style: "GNU" */