2
2
* document.h - this file is part of Geany, a fast and lightweight IDE
4
* Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
* Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
4
* Copyright 2005-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
* Copyright 2006-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7
7
* This program is free software; you can redistribute it and/or modify
8
8
* it under the terms of the GNU General Public License as published by
18
18
* along with this program; if not, write to the Free Software
19
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
* $Id: document.h 5430 2010-11-23 16:23:22Z ntrel $
21
* $Id: document.h 5904 2011-08-25 20:15:02Z colombanw $
209
211
GeanyDocument *document_open_file_full(GeanyDocument *doc, const gchar *filename, gint pos,
210
212
gboolean readonly, GeanyFiletype *ft, const gchar *forced_enc);
212
void document_open_file_list(const gchar *data, gssize length);
214
void document_open_file_list(const gchar *data, gsize length);
214
216
void document_open_files(const GSList *filenames, gboolean readonly, GeanyFiletype *ft,
215
217
const gchar *forced_enc);
217
gboolean document_search_bar_find(GeanyDocument *doc, const gchar *text, gint flags, gboolean inc);
219
gint document_find_text(GeanyDocument *doc, const gchar *text, gint flags, gboolean search_backwards,
220
gboolean scroll, GtkWidget *parent);
222
gint document_replace_text(GeanyDocument *doc, const gchar *find_text, const gchar *replace_text,
223
gint flags, gboolean search_backwards);
219
gboolean document_search_bar_find(GeanyDocument *doc, const gchar *text, gint flags, gboolean inc,
222
gint document_find_text(GeanyDocument *doc, const gchar *text, const gchar *original_text,
223
gint flags, gboolean search_backwards, gboolean scroll, GtkWidget *parent);
225
gint document_replace_text(GeanyDocument *doc, const gchar *find_text, const gchar *original_find_text,
226
const gchar *replace_text, gint flags, gboolean search_backwards);
225
228
gint document_replace_all(GeanyDocument *doc, const gchar *find_text, const gchar *replace_text,
226
gint flags, gboolean escaped_chars);
229
const gchar *original_find_text, const gchar *original_replace_text, gint flags);
228
void document_replace_sel(GeanyDocument *doc, const gchar *find_text, const gchar *replace_text, gint flags,
229
gboolean escaped_chars);
231
void document_replace_sel(GeanyDocument *doc, const gchar *find_text, const gchar *replace_text,
232
const gchar *original_find_text, const gchar *original_replace_text, gint flags);
231
234
void document_update_tag_list(GeanyDocument *doc, gboolean update);
236
void document_update_tag_list_in_idle(GeanyDocument *doc);
233
238
void document_set_encoding(GeanyDocument *doc, const gchar *new_encoding);
235
240
gboolean document_check_disk_status(GeanyDocument *doc, gboolean force);
257
262
gboolean document_need_save_as(GeanyDocument *doc);
264
gboolean document_detect_indent_type(GeanyDocument *doc, GeanyIndentType *type_);
266
gboolean document_detect_indent_width(GeanyDocument *doc, gint *width_);
259
268
void document_apply_indent_settings(GeanyDocument *doc);
270
gint document_compare_by_display_name(gconstpointer a, gconstpointer b);
272
gint document_compare_by_tab_order(gconstpointer a, gconstpointer b);
274
gint document_compare_by_tab_order_reverse(gconstpointer a, gconstpointer b);
276
void document_grab_focus(GeanyDocument *doc);