Shell command dialog: renamed window to document.
[nedit.git] / source / shell.h
blobea7073bfe60d472cb44b8cc91a91973363b30fa3
1 /* $Id: shell.h,v 1.8 2004/07/21 11:32:05 yooden Exp $ */
2 /*******************************************************************************
3 * *
4 * shell.h -- Nirvana Editor Shell 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 version 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 Lesser General Public License *
17 * for 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_SHELL_H_INCLUDED
29 #define NEDIT_SHELL_H_INCLUDED
31 #include "nedit.h"
33 /* sources for command input and destinations for command output */
34 enum inSrcs {FROM_SELECTION, FROM_WINDOW, FROM_EITHER, FROM_NONE};
35 enum outDests {TO_SAME_WINDOW, TO_NEW_WINDOW, TO_DIALOG};
37 void FilterSelection(WindowInfo *window, const char *command, int fromMacro);
38 void ExecShellCommand(WindowInfo *window, const char *command, int fromMacro);
39 void ExecCursorLine(WindowInfo *window, int fromMacro);
40 void ShellCmdToMacroString(WindowInfo *window, const char *command,
41 const char *input);
42 void DoShellMenuCmd(WindowInfo *window, const char *command, int input,
43 int output, int outputReplaceInput,
44 int saveFirst, int loadAfter, int fromMacro);
45 void AbortShellCommand(WindowInfo *window);
47 #endif /* NEDIT_SHELL_H_INCLUDED */