3
* \brief headers for RDF types
6
* Kees Cook <kees@outflux.net>
8
* Copyright (C) 2004 Kees Cook <kees@outflux.net>
10
* Released under GNU GPL, read the file 'COPYING' for more information
18
#include <glibmm/i18n.h>
21
// yeah, it's not a triple yet...
23
* \brief Holds license name/resource doubles for rdf_license_t entries
27
gchar const *resource;
31
* \brief Holds license name and RDF information
33
struct rdf_license_t {
34
gchar const *name; /* localized name of this license */
35
gchar const *uri; /* URL for the RDF/Work/license element */
36
struct rdf_double_t *details; /* the license details */
37
// gchar const *fragment; /* XML contents for the RDF/License tag */
40
extern rdf_license_t rdf_licenses [];
43
* \brief Describes how a given RDF entity is stored in XML
46
RDF_CONTENT, // direct between-XML-tags content
47
RDF_AGENT, // requires the "Agent" hierarchy before doing content
48
RDF_RESOURCE, // stored in "rdf:resource" element
49
RDF_XML, // literal XML
50
RDF_BAG // rdf:Bag resources
54
* \brief Describes how a given RDF entity should be edited
57
RDF_FORMAT_LINE, // uses single line data (GtkEntry)
58
RDF_FORMAT_MULTILINE, // uses multiline data (GtkTextView)
59
RDF_FORMAT_SPECIAL // uses some other edit methods
63
RDF_EDIT_GENERIC, // editable via generic widgets
64
RDF_EDIT_SPECIAL, // special widgets are needed
65
RDF_EDIT_HARDCODED // isn't editable
69
* \brief Holds known RDF/Work tags
71
struct rdf_work_entity_t {
72
char const *name; /* unique name of this entity for internal reference */
73
gchar const *title; /* localized title of this entity for data entry */
74
gchar const *tag; /* namespace tag for the RDF/Work element */
75
RDFType datatype; /* how to extract/inject the RDF information */
76
gchar const *tip; /* tool tip to explain the meaning of the entity */
77
RDF_Format format; /* in what format is this data edited? */
78
RDF_Editable editable;/* in what way is the data editable? */
81
extern rdf_work_entity_t rdf_work_entities [];
84
* \brief Generic collection of RDF information for the RDF debug function
91
gchar* work_publisher;
95
gchar* work_description;
96
struct rdf_license_t* license;
99
struct rdf_work_entity_t * rdf_find_entity(gchar const * name);
101
const gchar * rdf_get_work_entity(SPDocument * doc,
102
struct rdf_work_entity_t * entity);
103
unsigned int rdf_set_work_entity(SPDocument * doc,
104
struct rdf_work_entity_t * entity,
107
struct rdf_license_t * rdf_get_license(SPDocument * doc);
108
void rdf_set_license(SPDocument * doc,
109
struct rdf_license_t const * license);
111
void rdf_set_defaults ( SPDocument * doc );
118
c-file-style:"stroustrup"
119
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
124
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :