~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/metadata/xmp-schemas.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* xmp-schemas.h - standard schemas defined in the XMP specifications
 
2
 *
 
3
 * Copyright (C) 2004, Raphaël Quinet <raphael@gimp.org>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef XMP_SCHEMAS_H
 
22
#define XMP_SCHEMAS_H
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
/* known data types for XMP properties, as found in the XMP specification */
 
27
typedef enum
 
28
{
 
29
  XMP_TYPE_BOOLEAN,              /* TEXT */
 
30
  XMP_TYPE_DATE,                 /* TEXT */
 
31
  XMP_TYPE_DIMENSIONS,           /* STRUCTURE */
 
32
  XMP_TYPE_INTEGER,              /* TEXT */
 
33
  XMP_TYPE_INTEGER_SEQ,          /* ORDERED_LIST */
 
34
  XMP_TYPE_LANG_ALT,             /* ALT_LANG */
 
35
  XMP_TYPE_LOCALE_BAG,           /* UNORDERED_LIST */
 
36
  XMP_TYPE_REAL,                 /* TEXT */
 
37
  XMP_TYPE_MIME_TYPE,            /* TEXT */
 
38
  XMP_TYPE_TEXT,                 /* TEXT */
 
39
  XMP_TYPE_TEXT_BAG,             /* UNORDERED_LIST */
 
40
  XMP_TYPE_TEXT_SEQ,             /* ORDERED_LIST */
 
41
  XMP_TYPE_THUMBNAIL_ALT,        /* ALT_THUMBS */
 
42
  XMP_TYPE_URI,                  /* TEXT or RESOURCE (?) */
 
43
  XMP_TYPE_XPATH_BAG,            /* UNORDERED_LIST */
 
44
  XMP_TYPE_RESOURCE_EVENT_SEQ,   /* ORDERED_LIST */
 
45
  XMP_TYPE_RESOURCE_REF,         /* TEXT */
 
46
  XMP_TYPE_JOB_BAG,              /* UNORDERED_LIST */
 
47
  XMP_TYPE_RATIONAL,             /* TEXT */
 
48
  XMP_TYPE_RATIONAL_SEQ,         /* ORDERED_LIST */
 
49
  XMP_TYPE_GPS_COORDINATE,       /* (?) */
 
50
  XMP_TYPE_FLASH,                /* STRUCTURE */
 
51
  XMP_TYPE_OECF_SFR,             /* (?) */
 
52
  XMP_TYPE_CFA_PATTERN,          /* (?) */
 
53
  XMP_TYPE_DEVICE_SETTINGS,      /* (?) */
 
54
  XMP_TYPE_CONTACT_INFO,         /* STRUCTURE */
 
55
  XMP_TYPE_GENERIC_STRUCTURE,    /* STRUCTURE */
 
56
  XMP_TYPE_UNKNOWN
 
57
} XMPType;
 
58
 
 
59
/* XMP properties referenced in the tree via COL_XMP_TYPE_XREF (depth 2) */
 
60
typedef struct
 
61
{
 
62
  const gchar *name;
 
63
  XMPType      type;
 
64
  gboolean     editable;
 
65
} XMPProperty;
 
66
 
 
67
/* XMP schemas referenced in the tree via COL_XMP_TYPE_XREF (depth 1) */
 
68
typedef struct
 
69
{
 
70
  const gchar *uri;
 
71
  const gchar *prefix;
 
72
  const gchar *name;
 
73
  XMPProperty *properties;
 
74
} XMPSchema;
 
75
 
 
76
/* URIs of standard XMP schemas (as of January 2004) */
 
77
#define XMP_SCHEMA_DUBLIN_CORE "http://purl.org/dc/elements/1.1/"
 
78
#define XMP_SCHEMA_XMP_BASIC   "http://ns.adobe.com/xap/1.0/"
 
79
#define XMP_SCHEMA_XMP_RIGHTS  "http://ns.adobe.com/xap/1.0/rights/"
 
80
#define XMP_SCHEMA_XMP_MM      "http://ns.adobe.com/xap/1.0/mm/"
 
81
#define XMP_SCHEMA_XMP_BJ      "http://ns.adobe.com/xap/1.0/bj/"
 
82
#define XMP_SCHEMA_XMP_TPG     "http://ns.adobe.com/xap/1.0/t/pg/"
 
83
#define XMP_SCHEMA_PDF         "http://ns.adobe.com/pdf/1.3/"
 
84
#define XMP_SCHEMA_PHOTOSHOP   "http://ns.adobe.com/photoshop/1.0/"
 
85
#define XMP_SCHEMA_TIFF        "http://ns.adobe.com/tiff/1.0/"
 
86
#define XMP_SCHEMA_EXIF        "http://ns.adobe.com/exif/1.0/"
 
87
/* Additional schemas published in March 2005 */
 
88
#define XMP_SCHEMA_XMP_PLUS    "http://ns.adobe.com/xap/1.0/PLUS/"
 
89
#define XMP_SCHEMA_IPTC_CORE   "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
 
90
 
 
91
/* recommended prefixes for the schemas listed above */
 
92
#define XMP_PREFIX_DUBLIN_CORE "dc"
 
93
#define XMP_PREFIX_XMP_BASIC   "xmp"
 
94
#define XMP_PREFIX_XMP_RIGHTS  "xmpRights"
 
95
#define XMP_PREFIX_XMP_MM      "xmpMM"
 
96
#define XMP_PREFIX_XMP_BJ      "xmpBJ"
 
97
#define XMP_PREFIX_XMP_TPG     "xmpTPg"
 
98
#define XMP_PREFIX_PDF         "pdf"
 
99
#define XMP_PREFIX_PHOTOSHOP   "photoshop"
 
100
#define XMP_PREFIX_TIFF        "tiff"
 
101
#define XMP_PREFIX_EXIF        "exif"
 
102
#define XMP_PREFIX_XMP_PLUS    "xmpPLUS"
 
103
#define XMP_PREFIX_IPTC_CORE   "Iptc4xmpCore"
 
104
 
 
105
/* List of known XMP schemas and their properties */
 
106
extern XMPSchema * const xmp_schemas;
 
107
 
 
108
G_END_DECLS
 
109
 
 
110
#endif /* XMP_SCHEMAS_H */