2
* @brief headers for RDF types
5
* Kees Cook <kees@outflux.net>
7
* Copyright (C) 2004 Authors
8
* Released under GNU GPL, read the file 'COPYING' for more information
14
#include <glibmm/i18n.h>
17
// yeah, it's not a triple yet...
19
* \brief Holds license name/resource doubles for rdf_license_t entries
23
gchar const *resource;
27
* \brief Holds license name and RDF information
29
struct rdf_license_t {
30
gchar const *name; /* localized name of this license */
31
gchar const *uri; /* URL for the RDF/Work/license element */
32
struct rdf_double_t *details; /* the license details */
33
// gchar const *fragment; /* XML contents for the RDF/License tag */
36
extern rdf_license_t rdf_licenses [];
39
* \brief Describes how a given RDF entity is stored in XML
42
RDF_CONTENT, // direct between-XML-tags content
43
RDF_AGENT, // requires the "Agent" hierarchy before doing content
44
RDF_RESOURCE, // stored in "rdf:resource" element
45
RDF_XML, // literal XML
46
RDF_BAG // rdf:Bag resources
50
* \brief Describes how a given RDF entity should be edited
53
RDF_FORMAT_LINE, // uses single line data (GtkEntry)
54
RDF_FORMAT_MULTILINE, // uses multiline data (GtkTextView)
55
RDF_FORMAT_SPECIAL // uses some other edit methods
59
RDF_EDIT_GENERIC, // editable via generic widgets
60
RDF_EDIT_SPECIAL, // special widgets are needed
61
RDF_EDIT_HARDCODED // isn't editable
65
* \brief Holds known RDF/Work tags
67
struct rdf_work_entity_t {
68
char const *name; /* unique name of this entity for internal reference */
69
gchar const *title; /* localized title of this entity for data entry */
70
gchar const *tag; /* namespace tag for the RDF/Work element */
71
RDFType datatype; /* how to extract/inject the RDF information */
72
gchar const *tip; /* tool tip to explain the meaning of the entity */
73
RDF_Format format; /* in what format is this data edited? */
74
RDF_Editable editable;/* in what way is the data editable? */
77
extern rdf_work_entity_t rdf_work_entities [];
80
* \brief Generic collection of RDF information for the RDF debug function
87
gchar* work_publisher;
91
gchar* work_description;
92
struct rdf_license_t* license;
95
struct rdf_work_entity_t * rdf_find_entity(gchar const * name);
97
const gchar * rdf_get_work_entity(SPDocument * doc,
98
struct rdf_work_entity_t * entity);
99
unsigned int rdf_set_work_entity(SPDocument * doc,
100
struct rdf_work_entity_t * entity,
103
struct rdf_license_t * rdf_get_license(SPDocument * doc);
104
void rdf_set_license(SPDocument * doc,
105
struct rdf_license_t const * license);
107
void rdf_set_defaults ( SPDocument * doc );
114
c-file-style:"stroustrup"
115
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
120
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :