@openxmldev/linq-to-ooxml
Version:
OOXML Namespace-related Classes for LINQ to XML for TypeScript
27 lines • 1.2 kB
JavaScript
import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml';
/**
* Declares XNamespace and XName fields for the `xmlns="http://schemas.openxmlformats.org/package/2006/relationships"` namespace.
*/
export class Relationships {
/** @internal */
constructor() {
// Ignore
}
/**
* Returns the namespace declaration `XAttribute` for the package-wide relationships.
*/
static get namespaceDeclaration() {
return new XAttribute(XNamespace.none.getName('xmlns'), Relationships.relationships.namespaceName);
}
}
/**
* Defines the XML namespace for the package-wide relationships.
*/
Relationships.relationships = XNamespace.get('http://schemas.openxmlformats.org/package/2006/relationships');
Relationships.Relationships = Relationships.relationships.getName('Relationships');
Relationships.Relationship = Relationships.relationships.getName('Relationship');
Relationships.TargetMode = XNamespace.none.getName('TargetMode');
Relationships.Target = XNamespace.none.getName('Target');
Relationships.Type = XNamespace.none.getName('Type');
Relationships.Id = XNamespace.none.getName('Id');
//# sourceMappingURL=Relationships.js.map