@openxmldev/linq-to-ooxml
Version:
OOXML Namespace-related Classes for LINQ to XML for TypeScript
70 lines • 2.79 kB
JavaScript
/**
* @author Thomas Barnekow
* @license MIT
*/
import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml';
/**
* Declares XNamespace and XName fields for the `xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"` namespace.
*/
export class WPC {
/** @internal */
constructor() {
// Ignore
}
/**
* Returns the namespace declaration `XAttribute` for this namespace.
*/
static get namespaceDeclaration() {
return new XAttribute(XNamespace.xmlns.getName('wpc'), WPC.wpc.namespaceName);
}
}
/**
* Defines the XML namespace associated with the `wpc` prefix.
*/
WPC.wpc = XNamespace.get('http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas');
/**
* Represents the `wpc:bg` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode wpc_ wpc:wpc_}
* - child XML elements: {@linkcode A.blipFill a:blipFill}, {@linkcode A.effectDag a:effectDag}, {@linkcode A.effectLst a:effectLst}, {@linkcode A.gradFill a:gradFill}, {@linkcode A.grpFill a:grpFill}, {@linkcode A.noFill a:noFill}, {@linkcode A.pattFill a:pattFill}, {@linkcode A.solidFill a:solidFill}
*/
WPC.bg = WPC.wpc.getName('bg');
/**
* Represents the `wpc:extLst` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode wpc_ wpc:wpc_}
* - child XML elements: {@linkcode A.ext a:ext}
*/
WPC.extLst = WPC.wpc.getName('extLst');
/**
* Represents the `wpc:graphicFrame` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode wpc_ wpc:wpc_}
* - child XML elements: {@linkcode A.graphic a:graphic}, {@linkcode WPG.cNvFrPr wpg:cNvFrPr}, {@linkcode WPG.cNvPr wpg:cNvPr}, {@linkcode WPG.extLst wpg:extLst}, {@linkcode WPG.xfrm wpg:xfrm}
*/
WPC.graphicFrame = WPC.wpc.getName('graphicFrame');
/**
* Represents the `wpc:whole` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode wpc_ wpc:wpc_}
* - child XML elements: {@linkcode A.effectDag a:effectDag}, {@linkcode A.effectLst a:effectLst}, {@linkcode A.ln a:ln}
*/
WPC.whole = WPC.wpc.getName('whole');
/**
* Represents the `wpc:wpc` XML element.
*
* @remarks
* As an XML element, it has the following:
* - parent XML elements: {@linkcode A.graphicData a:graphicData}
* - child XML elements: {@linkcode W14.contentPart w14:contentPart}, {@linkcode bg wpc:bg}, {@linkcode extLst wpc:extLst}, {@linkcode graphicFrame wpc:graphicFrame}, {@linkcode whole wpc:whole}, {@linkcode WPG.wgp wpg:wgp}, {@linkcode WPS.wsp wps:wsp}
*/
WPC.wpc_ = WPC.wpc.getName('wpc');
//# sourceMappingURL=WPC.js.map