@openxmldev/linq-to-ooxml
Version:
OOXML Namespace-related Classes for LINQ to XML for TypeScript
64 lines • 2.15 kB
JavaScript
/**
* @author Thomas Barnekow
* @license MIT
*/
import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml';
/**
* Declares XNamespace and XName fields for the `xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main"` namespace.
*/
export class SL {
/** @internal */
constructor() {
// Ignore
}
/**
* Returns the namespace declaration `XAttribute` for this namespace.
*/
static get namespaceDeclaration() {
return new XAttribute(XNamespace.xmlns.getName('sl'), SL.sl.namespaceName);
}
}
/**
* Defines the XML namespace associated with the `sl` prefix.
*/
SL.sl = XNamespace.get('http://schemas.openxmlformats.org/schemaLibrary/2006/main');
/**
* Represents the `sl:manifestLocation` XML attribute.
*
* @remarks
* As an XML attribute, it is contained in the following XML elements: {@linkcode schema sl:schema}
*/
SL.manifestLocation = SL.sl.getName('manifestLocation');
/**
* Represents the `sl:schema` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode schemaLibrary sl:schemaLibrary}
* - XML attributes: {@linkcode manifestLocation sl:manifestLocation}, {@linkcode schemaLocation sl:schemaLocation}, {@linkcode uri sl:uri}
*/
SL.schema = SL.sl.getName('schema');
/**
* Represents the `sl:schemaLibrary` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode A.graphicData a:graphicData}, {@linkcode W.settings w:settings}
* - child XML elements: {@linkcode schema sl:schema}
*/
SL.schemaLibrary = SL.sl.getName('schemaLibrary');
/**
* Represents the `sl:schemaLocation` XML attribute.
*
* @remarks
* As an XML attribute, it is contained in the following XML elements: {@linkcode schema sl:schema}
*/
SL.schemaLocation = SL.sl.getName('schemaLocation');
/**
* Represents the `sl:uri` XML attribute.
*
* @remarks
* As an XML attribute, it is contained in the following XML elements: {@linkcode schema sl:schema}
*/
SL.uri = SL.sl.getName('uri');
//# sourceMappingURL=SL.js.map