Debian Codegraph @

libgdome/gdomecore/gdome-xml-cdata.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
2 /* gdome-xml-cdata.h
3 *
4 * Copyright (C) 1999 Raph Levien <[email protected]>
5 * Copyright (C) 2000 Mathieu Lacage <[email protected]>
6 * Copyright (C) 2001 Paolo Casarini <[email protected]>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23
24 /* ----------------------------------------------------------------------- */
25 /* --------------------------- CharacterData --------------------------- */
26 /* ---- This implements the CharacterData interface of the DOM1 spec ---- */
27 /* ----------------------------------------------------------------------- */
28
29
30 #ifndef GDOME_CDATA_FILE
31 #define GDOME_CDATA_FILE
32
33 struct _GdomeCharacterDataVtab {
34 GdomeNodeVtab super;
35 GdomeDOMString *(*data) (GdomeCharacterData *self, GdomeException *exc);
36 void (*set_data) (GdomeCharacterData *self, GdomeDOMString *data, GdomeException *exc);
37 gulong (*length) (GdomeCharacterData *self, GdomeException *exc);
38 GdomeDOMString *(*substringData) (GdomeCharacterData *self, gulong offset, gulong count, GdomeException *exc);
39 void (*appendData) (GdomeCharacterData *self, GdomeDOMString *arg, GdomeException *exc);
40 void (*insertData) (GdomeCharacterData *self, gulong offset, GdomeDOMString *arg, GdomeException *exc);
41 void (*deleteData) (GdomeCharacterData *self, gulong offset, gulong count, GdomeException *exc);
42 void (*replaceData) (GdomeCharacterData *self, gulong offset, gulong count, GdomeDOMString *arg, GdomeException *exc);
43 };
44
45 typedef struct _Gdome_xml_CharacterData Gdome_xml_CharacterData;
46 struct _Gdome_xml_CharacterData {
47 GdomeCharacterData super;
48 const GdomeCharacterDataVtab *vtab;
49 int refcnt;
50 xmlNode *n;
51 GdomeAccessType accessType;
52 Gdome_xml_ListenerList *ll;
53 };
54
55
56 extern const GdomeCharacterDataVtab gdome_xml_cd_vtab;
57
58
59
60 gpointer gdome_xml_cd_query_interface (GdomeNode *self,
61 const char *interface,
62 GdomeException *exc);
63 GdomeDOMString * gdome_xml_cd_data (GdomeCharacterData *self,
64 GdomeException *exc);
65 void gdome_xml_cd_set_data (GdomeCharacterData *self,
66 GdomeDOMString *data,
67 GdomeException *exc);
68 gulong gdome_xml_cd_length (GdomeCharacterData *self,
69 GdomeException *exc);
70 GdomeDOMString * gdome_xml_cd_substringData (GdomeCharacterData *self,
71 gulong offset,
72 gulong count,
73 GdomeException *exc);
74 void gdome_xml_cd_appendData (GdomeCharacterData *self,
75 GdomeDOMString *arg,
76 GdomeException *exc);
77 void gdome_xml_cd_insertData (GdomeCharacterData *self,
78 gulong offset,
79 GdomeDOMString *arg,
80 GdomeException *exc);
81 void gdome_xml_cd_deleteData (GdomeCharacterData *self,
82 gulong offset,
83 gulong count,
84 GdomeException *exc);
85 void gdome_xml_cd_replaceData (GdomeCharacterData *self,
86 gulong offset,
87 gulong count,
88 GdomeDOMString *arg,
89 GdomeException *exc);
90
91 #endif /* GDOME_CDATA_FILE */