Fix for SF bug #1060749: focusWindowMS (macro.c) causes crash.
[nedit.git] / source / selection.h
blob59868547b446883cdab7841335bcbe88bbe81fef
1 /* $Id: selection.h,v 1.6 2004/07/21 11:32:05 yooden Exp $ */
2 /*******************************************************************************
3 * *
4 * selection.h -- Nirvana Editor Selection Header File *
5 * *
6 * Copyright 2002 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_SELECTION_H_INCLUDED
29 #define NEDIT_SELECTION_H_INCLUDED
31 #include "nedit.h"
33 #include <X11/Intrinsic.h>
34 #include <X11/X.h>
36 int StringToLineAndCol(const char *text, int *lineNum, int *column );
37 void GotoSelectedLineNumber(WindowInfo *window, Time time);
38 void GotoLineNumber(WindowInfo *window);
39 void SelectNumberedLine(WindowInfo *window, int lineNum);
40 void OpenSelectedFile(WindowInfo *window, Time time);
41 char *GetAnySelection(WindowInfo *window);
42 void BeginMarkCommand(WindowInfo *window);
43 void BeginGotoMarkCommand(WindowInfo *window, int extend);
44 void AddMark(WindowInfo *window, Widget widget, char label);
45 void UpdateMarkTable(WindowInfo *window, int pos, int nInserted,
46 int nDeleted);
47 void GotoMark(WindowInfo *window, Widget w, char label, int extendSel);
48 void MarkDialog(WindowInfo *window);
49 void GotoMarkDialog(WindowInfo *window, int extend);
51 #endif /* NEDIT_SELECTION_H_INCLUDED */