784.diff

Add LR support - Alan Pater, 29 Oct 2014 22:17

Download (2.98 KB)

View differences:

src/properties.cpp (working copy)
99 99
    extern const XmpPropertyInfo xmpVideoInfo[];
100 100
    extern const XmpPropertyInfo xmpAudioInfo[];
101 101
    extern const XmpPropertyInfo xmpDwCInfo[];
102
    extern const XmpPropertyInfo xmpLrInfo[];
102 103

  
103 104
    extern const XmpNsInfo xmpNsInfo[] = {
104 105
        // Schemas   -   NOTE: Schemas which the XMP-SDK doesn't know must be registered in XmpParser::initialize - Todo: Automate this
......
112 113
        { "http://ns.adobe.com/xap/1.0/t/pg/",            "xmpTPg",         xmpXmpTPgInfo,    N_("XMP Paged-Text schema")                     },
113 114
        { "http://ns.adobe.com/xmp/1.0/DynamicMedia/",    "xmpDM",          xmpXmpDMInfo,     N_("XMP Dynamic Media schema")                  },
114 115
        { "http://ns.microsoft.com/photo/1.0/",           "MicrosoftPhoto", xmpMicrosoftInfo, N_("Microsoft Photo schema")                    },
116
        { "http://ns.adobe.com/lightroom/1.0/",           "lr",             xmpLrInfo,        N_("Adobe LightRoom schema")                    },
115 117
        { "http://ns.adobe.com/pdf/1.3/",                 "pdf",            xmpPdfInfo,       N_("Adobe PDF schema")                          },
116 118
        { "http://ns.adobe.com/photoshop/1.0/",           "photoshop",      xmpPhotoshopInfo, N_("Adobe photoshop schema")                    },
117 119
        { "http://ns.adobe.com/camera-raw-settings/1.0/", "crs",            xmpCrsInfo,       N_("Camera Raw schema")                         },
......
399 401
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
400 402
    };
401 403

  
404
    extern const XmpPropertyInfo xmpLrInfo[] = {
405
        { "hierarchicalsubject",    N_("HierarchicalSubject"),    "bag Text",  xmpBag,      xmpExternal, N_("Hierarchical Subject.")    },
406
        { "privatertkinfo",         N_("PrivateRTKInfo"),         "Text",      xmpText,     xmpExternal, N_("Private RTK Info.")        },
407
        // End of list marker
408
        { 0, 0, 0, invalidTypeId, xmpInternal, 0 }
409
    };
410
        
402 411
    extern const XmpPropertyInfo xmpPdfInfo[] = {
403 412
        { "Keywords",   N_("Keywords"),    "Text",      xmpText, xmpExternal, N_("Keywords.") },
404 413
        { "PDFVersion", N_("PDF Version"), "Text",      xmpText, xmpInternal, N_("The PDF file version (for example: 1.0, 1.3, and so on).") },
src/xmp.cpp (working copy)
403 403
            xmpLockFct_ = xmpLockFct;
404 404
            pLockData_ = pLockData;
405 405
            initialized_ = SXMPMeta::Initialize();
406
	        SXMPMeta::RegisterNamespace("http://ns.adobe.com/lightroom/1.0/", "lr");
406 407
	        SXMPMeta::RegisterNamespace("http://rs.tdwg.org/dwc/index.htm", "dwc");
407 408
            SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/1.0/", "digiKam");
408 409
            SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/kipi/1.0/", "kipi");
Redmine Appliance - Powered by TurnKey Linux