UNPKG

@openxmldev/linq-to-ooxml

Version:

OOXML Namespace-related Classes for LINQ to XML for TypeScript

188 lines 6.89 kB
/** * @author Thomas Barnekow * @license MIT */ import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml'; /** * Declares XNamespace and XName fields for the `xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"` namespace. */ export class WP { /** @internal */ constructor() { // Ignore } /** * Returns the namespace declaration `XAttribute` for this namespace. */ static get namespaceDeclaration() { return new XAttribute(XNamespace.xmlns.getName('wp'), WP.wp.namespaceName); } } /** * Defines the XML namespace associated with the `wp` prefix. */ WP.wp = XNamespace.get('http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing'); /** * Represents the `wp:align` XML elements. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode positionH wp:positionH}, {@linkcode positionV wp:positionV} */ WP.align = WP.wp.getName('align'); /** * Represents the `wp:anchor` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode A.graphicData a:graphicData}, {@linkcode W.drawing w:drawing} * - child XML elements: {@linkcode A.graphic a:graphic}, {@linkcode cNvGraphicFramePr wp:cNvGraphicFramePr}, {@linkcode docPr wp:docPr}, {@linkcode effectExtent wp:effectExtent}, {@linkcode extent wp:extent}, {@linkcode positionH wp:positionH}, {@linkcode positionV wp:positionV}, {@linkcode simplePos wp:simplePos}, {@linkcode wrapNone wp:wrapNone}, {@linkcode wrapSquare wp:wrapSquare}, {@linkcode wrapThrough wp:wrapThrough}, {@linkcode wrapTight wp:wrapTight}, {@linkcode wrapTopAndBottom wp:wrapTopAndBottom} */ WP.anchor = WP.wp.getName('anchor'); /** * Represents the `wp:cNvGraphicFramePr` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor}, {@linkcode inline wp:inline} * - child XML elements: {@linkcode A.extLst a:extLst}, {@linkcode A.graphicFrameLocks a:graphicFrameLocks} */ WP.cNvGraphicFramePr = WP.wp.getName('cNvGraphicFramePr'); /** * Represents the `wp:docPr` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor}, {@linkcode inline wp:inline} * - child XML elements: {@linkcode A.extLst a:extLst}, {@linkcode A.hlinkClick a:hlinkClick}, {@linkcode A.hlinkHover a:hlinkHover} */ WP.docPr = WP.wp.getName('docPr'); /** * Represents the `wp:effectExtent` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor}, {@linkcode inline wp:inline}, {@linkcode wrapSquare wp:wrapSquare}, {@linkcode wrapTopAndBottom wp:wrapTopAndBottom} */ WP.effectExtent = WP.wp.getName('effectExtent'); /** * Represents the `wp:extent` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor}, {@linkcode inline wp:inline} */ WP.extent = WP.wp.getName('extent'); /** * Represents the `wp:inline` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode A.graphicData a:graphicData}, {@linkcode W.drawing w:drawing} * - child XML elements: {@linkcode A.graphic a:graphic}, {@linkcode cNvGraphicFramePr wp:cNvGraphicFramePr}, {@linkcode docPr wp:docPr}, {@linkcode effectExtent wp:effectExtent}, {@linkcode extent wp:extent} */ WP.inline = WP.wp.getName('inline'); /** * Represents the `wp:lineTo` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ WP.lineTo = WP.wp.getName('lineTo'); /** * Represents the `wp:positionH` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode align wp:align}, {@linkcode posOffset wp:posOffset} */ WP.positionH = WP.wp.getName('positionH'); /** * Represents the `wp:positionV` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode align wp:align}, {@linkcode posOffset wp:posOffset} */ WP.positionV = WP.wp.getName('positionV'); /** * Represents the `wp:posOffset` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode positionH wp:positionH}, {@linkcode positionV wp:positionV} */ WP.posOffset = WP.wp.getName('posOffset'); /** * Represents the `wp:simplePos` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} */ WP.simplePos = WP.wp.getName('simplePos'); /** * Represents the `wp:start` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ WP.start = WP.wp.getName('start'); /** * Represents the `wp:wrapNone` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} */ WP.wrapNone = WP.wp.getName('wrapNone'); /** * Represents the `wp:wrapPolygon` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode wrapThrough wp:wrapThrough}, {@linkcode wrapTight wp:wrapTight} * - child XML elements: {@linkcode lineTo wp:lineTo}, {@linkcode start wp:start} */ WP.wrapPolygon = WP.wp.getName('wrapPolygon'); /** * Represents the `wp:wrapSquare` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode effectExtent wp:effectExtent} */ WP.wrapSquare = WP.wp.getName('wrapSquare'); /** * Represents the `wp:wrapThrough` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ WP.wrapThrough = WP.wp.getName('wrapThrough'); /** * Represents the `wp:wrapTight` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ WP.wrapTight = WP.wp.getName('wrapTight'); /** * Represents the `wp:wrapTopAndBottom` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} * - child XML elements: {@linkcode effectExtent wp:effectExtent} */ WP.wrapTopAndBottom = WP.wp.getName('wrapTopAndBottom'); //# sourceMappingURL=WP.js.map