~ubuntu-branches/ubuntu/jaunty/geany/jaunty

« back to all changes in this revision

Viewing changes to src/document.h

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2007-02-25 21:12:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070225211213-jk4d4vxtgji0rj74
Tags: 0.10.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      document.h - this file is part of Geany, a fast and lightweight IDE
3
3
 *
4
 
 *      Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
 
4
 *      Copyright 2005-2007 Enrico Tröger <enrico.troeger@uvena.de>
 
5
 *      Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
5
6
 *
6
7
 *      This program is free software; you can redistribute it and/or modify
7
8
 *      it under the terms of the GNU General Public License as published by
17
18
 *      along with this program; if not, write to the Free Software
18
19
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20
 *
20
 
 *  $Id: document.h 1067 2006-12-08 15:30:44Z eht16 $
 
21
 *  $Id: document.h 1316 2007-02-22 12:41:48Z ntrel $
21
22
 */
22
23
 
23
24
 
63
64
        gboolean                 changed;
64
65
        gboolean                 line_breaking;
65
66
        gboolean                 use_auto_indention;
 
67
        gfloat                   scroll_percent;        // % to scroll view by on paint, if positive.
66
68
        time_t                   last_check;    // to remember the last disk check
67
69
        time_t                   mtime;
68
70
        GTrashStack             *undo_actions;
86
88
        (doc_list[doc_idx].file_name) : GEANY_STRING_UNTITLED)
87
89
 
88
90
 
89
 
/* returns the index of the notebook page which has the given filename */
90
 
gint document_find_by_filename(const gchar*, gboolean is_tm_filename);
91
 
 
92
 
 
93
 
/* returns the index of the notebook page which has sci */
94
 
gint document_find_by_sci(ScintillaObject*);
95
 
 
 
91
/* returns the document index which has the given filename.
 
92
 * is_tm_filename is needed when passing TagManager filenames because they are
 
93
 * dereferenced, and would not match the link filename. */
 
94
gint document_find_by_filename(const gchar *filename, gboolean is_tm_filename);
 
95
 
 
96
 
 
97
/* returns the document index which has sci */
 
98
gint document_find_by_sci(ScintillaObject *sci);
 
99
 
 
100
 
 
101
/* returns the index of the notebook page from the document index */
 
102
gint document_get_notebook_page(gint doc_idx);
96
103
 
97
104
/* returns the index of the given notebook page in the document list */
98
105
gint document_get_n_idx(guint page_num);