~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/widgets/gimptextbuffer-serialize.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GIMP - The GNU Image Manipulation Program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * GimpTextBuffer-serialize
 
5
 * Copyright (C) 2010  Michael Natterer <mitch@gimp.org>
 
6
 *
 
7
 * inspired by
 
8
 * gtktextbufferserialize.h
 
9
 * Copyright (C) 2004  Nokia Corporation.
 
10
 *
 
11
 * This program is free software: you can redistribute it and/or modify
 
12
 * it under the terms of the GNU General Public License as published by
 
13
 * the Free Software Foundation; either version 3 of the License, or
 
14
 * (at your option) any later version.
 
15
 *
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 * GNU General Public License for more details.
 
20
 *
 
21
 * You should have received a copy of the GNU General Public License
 
22
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
23
 */
 
24
 
 
25
#ifndef __GIMP_TEXT_BUFFER_SERIALIZE_H__
 
26
#define __GIMP_TEXT_BUFFER_SERIALIZE_H__
 
27
 
 
28
 
 
29
#define WORD_JOINER        "\342\201\240"
 
30
#define WORD_JOINER_LENGTH 3
 
31
 
 
32
 
 
33
guint8   * gimp_text_buffer_serialize        (GtkTextBuffer     *register_buffer,
 
34
                                              GtkTextBuffer     *content_buffer,
 
35
                                              const GtkTextIter *start,
 
36
                                              const GtkTextIter *end,
 
37
                                              gsize             *length,
 
38
                                              gpointer           user_data);
 
39
gboolean   gimp_text_buffer_deserialize      (GtkTextBuffer     *register_buffer,
 
40
                                              GtkTextBuffer     *content_buffer,
 
41
                                              GtkTextIter       *iter,
 
42
                                              const guint8      *data,
 
43
                                              gsize              length,
 
44
                                              gboolean           create_tags,
 
45
                                              gpointer           user_data,
 
46
                                              GError           **error);
 
47
 
 
48
void       gimp_text_buffer_pre_serialize    (GimpTextBuffer    *buffer,
 
49
                                              GtkTextBuffer     *content);
 
50
void       gimp_text_buffer_post_deserialize (GimpTextBuffer    *buffer,
 
51
                                              GtkTextBuffer     *content);
 
52
 
 
53
 
 
54
 
 
55
#endif /* __GIMP_TEXT_BUFFER_SERIALIZE_H__ */