1 /*
2  *  gretl -- Gnu Regression, Econometrics and Time-series Library
3  *  Copyright (C) 2001 Allin Cottrell and Riccardo "Jack" Lucchetti
4  *
5  *  This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 3 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef TEXTUTIL_H
21 #define TEXTUTIL_H
22 
23 enum {
24     W_PREVIEW,
25     W_COPY,
26     W_SAVE
27 };
28 
29 int multiple_formats_ok (windata_t *vwin);
30 
31 void window_tex_callback (GtkWidget *w, windata_t *vwin);
32 
33 void model_tex_view (GtkAction *action, gpointer data);
34 
35 void model_tex_save (GtkAction *action, gpointer data);
36 
37 void model_tex_copy (GtkAction *action, gpointer data);
38 
39 void window_copy (windata_t *vwin, guint fmt);
40 
41 void window_save (windata_t *vwin, guint fmt);
42 
43 void text_replace (GtkWidget *w, windata_t *vwin);
44 
45 void window_print (GtkAction *action, windata_t *vwin);
46 
47 void system_print_buf (const gchar *buf, FILE *fp);
48 
49 int maybe_post_process_buffer (const char *buf, int fmt,
50 			       int action, char **modbuf);
51 
52 char *strip_unicode_minus (char *s);
53 
54 int has_unicode_minus (const unsigned char *s);
55 
56 #endif /* TEXTUTIL_H */
57