Updated Spanish translation
[evolution.git] / e-util / e-text-model-repos.h
blob27d316376ce4b872b8e33f001a92cdf2ee4aeb11
1 /*
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
11 * for more details.
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/>.
17 * Authors:
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."
26 #endif
28 #ifndef E_TEXT_MODEL_REPOS_H
29 #define E_TEXT_MODEL_REPOS_H
31 #include "e-text-model.h"
33 typedef struct {
34 ETextModel *model;
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.) */
37 } EReposAbsolute;
39 gint e_repos_absolute (gint pos, gpointer data);
41 typedef struct {
42 ETextModel *model;
43 gint pos; /* Location of first inserted character. */
44 gint len; /* Number of characters inserted. */
45 } EReposInsertShift;
47 gint e_repos_insert_shift (gint pos, gpointer data);
49 typedef struct {
50 ETextModel *model;
51 gint pos; /* Location of first deleted character. */
52 gint len; /* Number of characters deleted. */
53 } EReposDeleteShift;
55 gint e_repos_delete_shift (gint pos, gpointer data);
57 #endif