Debian Codegraph @

libgdome/gdomecore/gdome-xml-documentt.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
2 /* gdome-xml-documentt.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 /* --------------------------- DOCUMENT_TYPE --------------------------- */
26 /* ----------------------------------------------------------------------- */
27
28
29 #ifndef GDOME_DOCUMENT_TYPE_FILE
30 #define GDOME_DOCUMENT_TYPE_FILE
31
32 struct _GdomeDocumentTypeVtab {
33 GdomeNodeVtab super;
34 GdomeDOMString *(*name) (GdomeDocumentType *self, GdomeException *exc);
35 GdomeNamedNodeMap *(*entities) (GdomeDocumentType *self, GdomeException *exc);
36 GdomeNamedNodeMap *(*notations) (GdomeDocumentType *self, GdomeException *exc);
37 GdomeDOMString *(*publicId) (GdomeDocumentType *self, GdomeException *exc);
38 GdomeDOMString *(*systemId) (GdomeDocumentType *self, GdomeException *exc);
39 GdomeDOMString *(*internalSubset) (GdomeDocumentType *self, GdomeException *exc);
40 };
41
42 typedef struct _Gdome_xml_DocumentType Gdome_xml_DocumentType;
43 struct _Gdome_xml_DocumentType {
44 GdomeDocumentType super;
45 const GdomeDocumentTypeVtab *vtab;
46 int refcnt;
47 xmlDtd *n;
48 GdomeAccessType accessType;
49 Gdome_xml_ListenerList *ll;
50 xmlHashTable *entities;
51 xmlHashTable *notations;
52 };
53
54 GdomeDocumentType * gdome_xml_dt_mkref (xmlDtd *n);
55 void gdome_xml_dt_unref (GdomeNode *self,
56 GdomeException *exc);
57 gpointer gdome_xml_dt_query_interface (GdomeNode *self,
58 const char *interface,
59 GdomeException *exc);
60 GdomeDOMString * gdome_xml_dt_name (GdomeDocumentType *self,
61 GdomeException *exc);
62 GdomeNamedNodeMap * gdome_xml_dt_entities (GdomeDocumentType *self,
63 GdomeException *exc);
64 GdomeNamedNodeMap * gdome_xml_dt_notations (GdomeDocumentType *self,
65 GdomeException *exc);
66 GdomeDOMString * gdome_xml_dt_publicId (GdomeDocumentType *self,
67 GdomeException *exc);
68 GdomeDOMString * gdome_xml_dt_systemId (GdomeDocumentType *self,
69 GdomeException *exc);
70 GdomeDOMString * gdome_xml_dt_internalSubset (GdomeDocumentType *self,
71 GdomeException *exc);
72 extern const GdomeDocumentTypeVtab gdome_xml_dt_vtab;
73
74 #endif /* GDOME_DOCUMENT_TYPE_FILE */
75
76
77
78
79
80