2 * e-text-model-repos.h - Standard ETextModelReposFn definitions
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 * Jon Trowbridge <trow@ximian.com>
20 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
25 #error "Only <e-util/e-util.h> should be included directly."
28 #ifndef E_TEXT_MODEL_REPOS_H
29 #define E_TEXT_MODEL_REPOS_H
31 #include "e-text-model.h"
35 gint pos
; /* Position to move to. Negative values count from the end buffer.
36 (i.e. -1 puts cursor at the end, -2 one character from end, etc.) */
39 gint
e_repos_absolute (gint pos
, gpointer data
);
43 gint pos
; /* Location of first inserted character. */
44 gint len
; /* Number of characters inserted. */
47 gint
e_repos_insert_shift (gint pos
, gpointer data
);
51 gint pos
; /* Location of first deleted character. */
52 gint len
; /* Number of characters deleted. */
55 gint
e_repos_delete_shift (gint pos
, gpointer data
);