| 1 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */ |
| 2 |
/* gdome-xml-text.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 |
/* --------------------------- Text --------------------------- */ |
| 25 |
/* -------------------------------------------------------------- */ |
| 26 |
|
| 27 |
#ifndef GDOME_TEXT_FILE |
| 28 |
#define GDOME_TEXT_FILE |
| 29 |
|
| 30 |
struct _GdomeTextVtab { |
| 31 |
GdomeCharacterDataVtab super; |
| 32 |
GdomeText *(*splitText) (GdomeText *self, gulong offset, GdomeException *exc); |
| 33 |
}; |
| 34 |
|
| 35 |
typedef struct _Gdome_xml_Text Gdome_xml_Text; |
| 36 |
struct _Gdome_xml_Text { |
| 37 |
GdomeText super; |
| 38 |
const GdomeTextVtab *vtab; |
| 39 |
int refcnt; |
| 40 |
xmlNode *n; |
| 41 |
GdomeAccessType accessType; |
| 42 |
Gdome_xml_ListenerList *ll; |
| 43 |
}; |
| 44 |
|
| 45 |
extern const GdomeTextVtab gdome_xml_t_vtab; |
| 46 |
|
| 47 |
|
| 48 |
gpointer gdome_xml_t_query_interface (GdomeNode *self, |
| 49 |
const char *interface, |
| 50 |
GdomeException *exc); |
| 51 |
GdomeText * gdome_xml_t_splitText (GdomeText *self, |
| 52 |
gulong offset, |
| 53 |
GdomeException *exc); |
| 54 |
|
| 55 |
|
| 56 |
#endif /* GDOME_TEXT_FILE */ |