Xft support under OpenMotif 2.3.3 - I've been using this for quite a while on
[nedit.git] / source / macro.h
blobbd44a737b59ac753da4b71ebb140a29aa4972d56
1 /* $Id: macro.h,v 1.8 2004/11/09 21:58:44 yooden Exp $ */
2 /*******************************************************************************
3 * *
4 * macro.h -- Nirvana Editor Macro Header File *
5 * *
6 * Copyright 2004 The NEdit Developers *
7 * *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
13 * *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
17 * more details. *
18 * *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
22 * *
23 * Nirvana Text Editor *
24 * July 31, 2001 *
25 * *
26 *******************************************************************************/
28 #ifndef NEDIT_MACRO_H_INCLUDED
29 #define NEDIT_MACRO_H_INCLUDED
31 #include "nedit.h"
33 #include <X11/Intrinsic.h>
35 #define REPEAT_TO_END -1
36 #define REPEAT_IN_SEL -2
38 void RegisterMacroSubroutines(void);
39 void AddLastCommandActionHook(XtAppContext context);
40 void BeginLearn(WindowInfo *window);
41 void FinishLearn(void);
42 void CancelMacroOrLearn(WindowInfo *window);
43 void Replay(WindowInfo *window);
44 void SafeGC(void);
45 void DoMacro(WindowInfo *window, const char *macro, const char *errInName);
46 void ResumeMacroExecution(WindowInfo *window);
47 void AbortMacroCommand(WindowInfo *window);
48 int MacroWindowCloseActions(WindowInfo *window);
49 void RepeatDialog(WindowInfo *window);
50 void RepeatMacro(WindowInfo *window, const char *command, int how);
51 int ReadMacroFile(WindowInfo *window, const char *fileName, int warnNotExist);
52 int ReadMacroString(WindowInfo *window, char *string, const char *errIn);
53 int CheckMacroString(Widget dialogParent, char *string, const char *errIn,
54 char **errPos);
55 char *GetReplayMacro(void);
56 void ReadMacroInitFile(WindowInfo *window);
57 void ReturnShellCommandOutput(WindowInfo *window, const char *outText, int status);
59 #endif /* NEDIT_MACRO_H_INCLUDED */