UNPKG

@openxmldev/linq-to-ooxml

Version:

OOXML Namespace-related Classes for LINQ to XML for TypeScript

182 lines (181 loc) 7.16 kB
/** * @author Thomas Barnekow * @license MIT */ import { XAttribute, XName, XNamespace } from '@openxmldev/linq-to-xml'; /** * Declares XNamespace and XName fields for the `xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"` namespace. */ export declare class WP { /** * Defines the XML namespace associated with the `wp` prefix. */ static readonly wp: XNamespace; /** * Returns the namespace declaration `XAttribute` for this namespace. */ static get namespaceDeclaration(): XAttribute; /** * 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} */ static readonly align: XName; /** * 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} */ static readonly anchor: XName; /** * 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} */ static readonly cNvGraphicFramePr: XName; /** * 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} */ static readonly docPr: XName; /** * 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} */ static readonly effectExtent: XName; /** * 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} */ static readonly extent: XName; /** * 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} */ static readonly inline: XName; /** * Represents the `wp:lineTo` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ static readonly lineTo: XName; /** * 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} */ static readonly positionH: XName; /** * 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} */ static readonly positionV: XName; /** * 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} */ static readonly posOffset: XName; /** * Represents the `wp:simplePos` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} */ static readonly simplePos: XName; /** * Represents the `wp:start` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode wrapPolygon wp:wrapPolygon} */ static readonly start: XName; /** * Represents the `wp:wrapNone` XML element. * * @remarks * As an XML element, it has the following: * - parent XML elements: {@linkcode anchor wp:anchor} */ static readonly wrapNone: XName; /** * 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} */ static readonly wrapPolygon: XName; /** * 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} */ static readonly wrapSquare: XName; /** * 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} */ static readonly wrapThrough: XName; /** * 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} */ static readonly wrapTight: XName; /** * 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} */ static readonly wrapTopAndBottom: XName; }