xref: /reactos/base/applications/winhlp32/macro.h (revision 40462c92)
1 /*
2  * Help Viewer
3  *
4  * Copyright 1996 Ulrich Schmid
5  * Copyright 2002 Eric Pouech
6  *
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.
11  *
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.
16  *
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
20  */
21 
22 #pragma once
23 
24 #include <stdarg.h>
25 
26 #include "windef.h"
27 #include "winbase.h"
28 
29 struct lexret {
30   LPCSTR        proto;
31   BOOL          bool;
32   LONG          integer;
33   LPCSTR        string;
34   FARPROC       function;
35 };
36 
37 extern struct lexret yylval;
38 struct tagWinHelp;
39 
40 BOOL            MACRO_ExecuteMacro(struct tagWinHelp*, LPCSTR);
41 int             MACRO_Lookup(const char* name, struct lexret* lr);
42 struct tagWinHelp* MACRO_CurrentWindow(void);
43 
44 enum token_types {EMPTY, VOID_FUNCTION, BOOL_FUNCTION, INTEGER, STRING, IDENTIFIER};
45 void CALLBACK MACRO_About(void);
46 void CALLBACK MACRO_Annotate(void);
47 void CALLBACK MACRO_BookmarkDefine(void);
48 void CALLBACK MACRO_CopyDialog(void);
49 void CALLBACK MACRO_CreateButton(LPCSTR, LPCSTR, LPCSTR);
50 void CALLBACK MACRO_DisableButton(LPCSTR);
51 void CALLBACK MACRO_Exit(void);
52 void CALLBACK MACRO_FileOpen(void);
53 void CALLBACK MACRO_HelpOn(void);
54 void CALLBACK MACRO_HelpOnTop(void);
55 void CALLBACK MACRO_History(void);
56 void CALLBACK MACRO_JumpContents(LPCSTR, LPCSTR);
57 void CALLBACK MACRO_JumpContext(LPCSTR, LPCSTR, LONG);
58 void CALLBACK MACRO_JumpHash(LPCSTR, LPCSTR, LONG);
59 void CALLBACK MACRO_PopupContext(LPCSTR, LONG);
60 void CALLBACK MACRO_Print(void);
61 void CALLBACK MACRO_PrinterSetup(void);
62 void CALLBACK MACRO_SetContents(LPCSTR, LONG);
63 
64 /* Local Variables:    */
65 /* c-file-style: "GNU" */
66 /* End:                */
67