File: screem-dtd-db.h

package info (click to toggle)
screem 0.12.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 8,333
  • sloc: ansic: 98,234; sh: 8,278; xml: 2,278; makefile: 1,054
file content (70 lines) | stat: -rw-r--r-- 1,934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef SCREEM_DTD_DB_H
#define SCREEM_DTD_DB_H

#include <glib-object.h>

#include <gtk/gtkliststore.h>
#include <gtk/gtkwidget.h> /* for fill_combo */

#include "screem-dtd.h"

#define SCREEM_TYPE_DTD_DB            (screem_dtd_db_get_type ())
#define SCREEM_DTD_DB(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCREEM_TYPE_DTD_DB, ScreemDTDDB))
#define SCREEM_DTD_DB_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SCREEM_TYPE_DTD_DB, ScreemDTDDBClass))
#define SCREEM_IS_DTD_DB(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCREEM_TYPE_DTD_DB))

typedef struct ScreemDTDDBPrivate ScreemDTDDBPrivate;

typedef struct  {
	GObject parent;

	ScreemDTDDBPrivate *priv;
} ScreemDTDDB;

typedef struct {
        GObjectClass parent_class;

} ScreemDTDDBClass;

ScreemDTDDB *screem_dtd_db_new( void );
GType screem_dtd_db_get_type( void );

GtkListStore *screem_dtd_db_get_store( ScreemDTDDB *db );

ScreemDTD *screem_dtd_db_get_default_dtd( ScreemDTDDB *db );

void screem_dtd_db_fill_list( ScreemDTDDB *db, GtkListStore *store );

void screem_dtd_db_override_root( ScreemDTDDB *db,
				  const gchar *publicid,
				  const gchar *root );
void screem_dtd_db_override_systemid( ScreemDTDDB *db,
				 const gchar *publicid,
				 const gchar *uri );

gchar *screem_dtd_db_get_root( ScreemDTDDB *db,
				const gchar *publicid,
				gboolean *override );
gchar *screem_dtd_db_get_system_id( ScreemDTDDB *db,
				const gchar *publicid,
				gboolean *override );


void screem_dtd_db_parse_doctype( ScreemDTDDB *db,
				 const gchar *doctype,
				 gchar **publicid,
				 gchar **systemid,
				 gchar **root );

ScreemDTD *screem_dtd_db_get_dtd_from_doctype( ScreemDTDDB *db,
						const gchar *doctype );
ScreemDTD *screem_dtd_db_get_dtd( ScreemDTDDB *db, 
				  const gchar *publicid,
				  const gchar *systemid );

gchar *screem_dtd_db_resolve_entity( void *db,
				  const gchar *publicid,
				  const gchar *systemid );


#endif