Inkscape
Vector Graphics Editor
|
headers for RDF types More...
Go to the source code of this file.
Classes | |
struct | rdf_double_t |
Holds license name/resource doubles for rdf_license_t entries. More... | |
struct | rdf_license_t |
Holds license name and RDF information. More... | |
struct | rdf_work_entity_t |
Holds known RDF/Work tags. More... | |
struct | rdf_t |
Generic collection of RDF information for the RDF debug function. More... | |
Enumerations | |
enum | RDFType { RDF_CONTENT , RDF_AGENT , RDF_RESOURCE , RDF_XML , RDF_BAG } |
Describes how a given RDF entity is stored in XML. More... | |
enum | RDF_Format { RDF_FORMAT_LINE , RDF_FORMAT_MULTILINE , RDF_FORMAT_SPECIAL } |
Describes how a given RDF entity should be edited. More... | |
enum | RDF_Editable { RDF_EDIT_GENERIC , RDF_EDIT_SPECIAL , RDF_EDIT_HARDCODED } |
Functions | |
struct rdf_work_entity_t * | rdf_find_entity (char const *name) |
const gchar * | rdf_get_work_entity (SPDocument const *doc, struct rdf_work_entity_t *entity) |
Retrieves a known RDF/Work entity's contents from the document XML by name. | |
unsigned int | rdf_set_work_entity (SPDocument *doc, struct rdf_work_entity_t *entity, const char *text) |
Stores a string into a named RDF/Work entity in the document XML. | |
struct rdf_license_t * | rdf_get_license (SPDocument *doc, bool read_only) |
Attempts to match and retrieve a known RDF/License from the document XML. | |
void | rdf_set_license (SPDocument *doc, struct rdf_license_t const *license) |
Stores an RDF/License XML in the document XML. | |
void | rdf_set_defaults (SPDocument *doc) |
void | rdf_add_from_preferences (SPDocument *doc) |
Variables | |
constexpr auto | PREFS_METADATA = "/metadata/rdf/" |
rdf_license_t | rdf_licenses [] |
rdf_work_entity_t | rdf_work_entities [] |
headers for RDF types
Definition in file rdf.h.
enum RDF_Editable |
enum RDF_Format |
enum RDFType |
void rdf_add_from_preferences | ( | SPDocument * | doc | ) |
Definition at line 1205 of file rdf.cpp.
References rdf_work_entity_t::editable, Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getString(), rdf_work_entity_t::name, PREFS_METADATA, RDF_EDIT_GENERIC, rdf_get_work_entity(), rdf_set_work_entity(), and rdf_work_entities.
struct rdf_work_entity_t * rdf_find_entity | ( | char const * | name | ) |
struct rdf_license_t * rdf_get_license | ( | SPDocument * | doc, |
bool | read_only | ||
) |
Attempts to match and retrieve a known RDF/License from the document XML.
Definition at line 1047 of file rdf.cpp.
Referenced by Inkscape::UI::Dialog::add_stats(), sp_png_write_rgba_striped(), and Inkscape::UI::Widget::Licensor::update().
const gchar * rdf_get_work_entity | ( | SPDocument const * | doc, |
struct rdf_work_entity_t * | entity | ||
) |
Retrieves a known RDF/Work entity's contents from the document XML by name.
entity | The desired RDF/Work entity |
Definition at line 885 of file rdf.cpp.
References result.
Referenced by SPDocument::getLanguages(), rdf_add_from_preferences(), Inkscape::Extension::Internal::PdfOutput::save(), Inkscape::UI::Widget::EntityEntry::save_to_preferences(), Inkscape::Extension::Internal::CairoRenderContext::setMetadata(), sp_png_write_rgba_striped(), Inkscape::UI::Widget::EntityLineEntry::update(), and Inkscape::UI::Widget::EntityMultiLineEntry::update().
void rdf_set_defaults | ( | SPDocument * | doc | ) |
Definition at line 1187 of file rdf.cpp.
Referenced by SPDocument::createDoc().
void rdf_set_license | ( | SPDocument * | doc, |
struct rdf_license_t const * | license | ||
) |
unsigned int rdf_set_work_entity | ( | SPDocument * | doc, |
struct rdf_work_entity_t * | entity, | ||
const char * | text | ||
) |
Stores a string into a named RDF/Work entity in the document XML.
entity | The desired RDF/Work entity to replace |
string | The string to replace the entity contents with |
|
inlineconstexpr |
Definition at line 19 of file rdf.h.
Referenced by Inkscape::UI::Widget::EntityLineEntry::load_from_preferences(), Inkscape::UI::Widget::EntityMultiLineEntry::load_from_preferences(), rdf_add_from_preferences(), and Inkscape::UI::Widget::EntityEntry::save_to_preferences().
|
extern |
Definition at line 179 of file rdf.cpp.
Referenced by Inkscape::UI::Widget::Licensor::init().
|
extern |
Definition at line 240 of file rdf.cpp.
Referenced by Inkscape::UI::Dialog::DocumentProperties::build_metadata(), Inkscape::UI::Dialog::DocumentResources::DocumentResources(), rdf_add_from_preferences(), and rdf_find_entity().