1
/* $Id: snr2.h 1830 2006-02-11 16:34:41Z kyanh $ */
2
/* Winefish LaTeX Editor (based on Bluefish HTML Editor)
3
* snr2.h - the search 'n replace rewrite prototypes
5
* Copyright (C) 2000-2002 Olivier Sessink
6
* Modified for Winefish (C) 2005 Ky Anh <kyanh@o2.pl>
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
/* span of characters */
31
/* span of byte-data in buffer */
35
/* these data are only used (and alloc'ed) if want_submatches is set in the search backend,
36
they should be freed by the calling function! */
41
void snr2_init(Tbfwin *bfwin);
43
void snr2_run_extern_replace(Tdocument *doc, gchar *search_pattern, gint region,
44
gint matchtype, gint is_case_sens, gchar *replace_pattern,
45
gboolean store_as_last_snr2);
46
Tsearch_result doc_search_run_extern(Tdocument *doc, gchar *search_pattern, gint matchtype, gint is_case_sens);
47
void search_from_selection(Tbfwin *bfwin);
48
void search_cb(GtkWidget *widget, Tbfwin *bfwin);
49
void replace_again_cb(GtkWidget *widget, Tbfwin *bfwin);
50
void search_again_cb(GtkWidget *widget, Tbfwin *bfwin);
51
void replace_cb(GtkWidget *widget, Tbfwin *bfwin);
52
void update_filenames_in_file(Tdocument *doc, gchar *oldfilename, gchar *newfilename, gint doc_has_newfilename);
53
/* kyanh, removed, 20050220
54
void update_encoding_meta_in_file(Tdocument *doc, gchar *encoding);
56
void snr2_cleanup(Tbfwin *bfwin);