UNPKG

@openxmldev/linq-to-ooxml

Version:

OOXML Namespace-related Classes for LINQ to XML for TypeScript

29 lines 1.07 kB
import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml'; /** * Declares XNamespace and XName fields for the `xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage"` namespace. */ export class PKG { /** @internal */ constructor() { // Ignore } /** * Returns the namespace declaration `XAttribute` for this namespace. */ static get namespaceDeclaration() { return new XAttribute(XNamespace.xmlns.getName('pkg'), PKG.pkg.namespaceName); } } /** * Defines the XML namespace associated with the `pkg` prefix. */ PKG.pkg = XNamespace.get('http://schemas.microsoft.com/office/2006/xmlPackage'); PKG.binaryData = PKG.pkg.getName('binaryData'); PKG.compression = PKG.pkg.getName('compression'); PKG.contentType = PKG.pkg.getName('contentType'); PKG.name_ = PKG.pkg.getName('name'); PKG.package = PKG.pkg.getName('package'); PKG.padding = PKG.pkg.getName('padding'); PKG.part = PKG.pkg.getName('part'); PKG.xmlData = PKG.pkg.getName('xmlData'); //# sourceMappingURL=PKG.js.map