UNPKG

@openxmldev/linq-to-ooxml

Version:

OOXML Namespace-related Classes for LINQ to XML for TypeScript

33 lines 1.18 kB
/** * @author Thomas Barnekow * @license MIT */ import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml'; /** * Declares XNamespace and XName fields for the `xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"` namespace. */ export class CP { /** @internal */ constructor() { // Ignore } /** * Returns the namespace declaration `XAttribute` for this namespace. */ static get namespaceDeclaration() { return new XAttribute(XNamespace.xmlns.getName('cp'), CP.cp.namespaceName); } } /** * Defines the XML namespace associated with the `cp` prefix. */ CP.cp = XNamespace.get('http://schemas.openxmlformats.org/package/2006/metadata/core-properties'); CP.category = CP.cp.getName('category'); CP.contentStatus = CP.cp.getName('contentStatus'); CP.contentType = CP.cp.getName('contentType'); CP.coreProperties = CP.cp.getName('coreProperties'); CP.keywords = CP.cp.getName('keywords'); CP.lastModifiedBy = CP.cp.getName('lastModifiedBy'); CP.lastPrinted = CP.cp.getName('lastPrinted'); CP.revision = CP.cp.getName('revision'); //# sourceMappingURL=CP.js.map