macro.h 2.12 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
/*
 * Help Viewer
 *
 * Copyright 1996 Ulrich Schmid
5
 * Copyright 2002 Eric Pouech
6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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
Alexandre Julliard's avatar
Alexandre Julliard committed
20 21
 */

22 23
#include <stdarg.h>

24 25
#include "windef.h"
#include "winbase.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
26

27 28 29 30 31
struct lexret {
  LPCSTR        proto;
  BOOL          bool;
  LONG          integer;
  LPCSTR        string;
32
  FARPROC       function;
33
};
Alexandre Julliard's avatar
Alexandre Julliard committed
34

35
extern struct lexret yylval;
36
struct tagWinHelp;
Alexandre Julliard's avatar
Alexandre Julliard committed
37

38 39 40
BOOL            MACRO_ExecuteMacro(struct tagWinHelp*, LPCSTR);
int             MACRO_Lookup(const char* name, struct lexret* lr);
struct tagWinHelp* MACRO_CurrentWindow(void);
41 42

enum token_types {EMPTY, VOID_FUNCTION, BOOL_FUNCTION, INTEGER, STRING, IDENTIFIER};
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
void CALLBACK MACRO_About(void);
void CALLBACK MACRO_Annotate(void);
void CALLBACK MACRO_BookmarkDefine(void);
void CALLBACK MACRO_CopyDialog(void);
void CALLBACK MACRO_CreateButton(LPCSTR, LPCSTR, LPCSTR);
void CALLBACK MACRO_DisableButton(LPCSTR);
void CALLBACK MACRO_Exit(void);
void CALLBACK MACRO_FileOpen(void);
void CALLBACK MACRO_HelpOn(void);
void CALLBACK MACRO_HelpOnTop(void);
void CALLBACK MACRO_History(void);
void CALLBACK MACRO_JumpContents(LPCSTR, LPCSTR);
void CALLBACK MACRO_JumpContext(LPCSTR, LPCSTR, LONG);
void CALLBACK MACRO_JumpHash(LPCSTR, LPCSTR, LONG);
void CALLBACK MACRO_PopupContext(LPCSTR, LONG);
void CALLBACK MACRO_Print(void);
void CALLBACK MACRO_PrinterSetup(void);
void CALLBACK MACRO_SetContents(LPCSTR, LONG);
Alexandre Julliard's avatar
Alexandre Julliard committed
61 62 63 64

/* Local Variables:    */
/* c-file-style: "GNU" */
/* End:                */