/** * DOCX Module - Constants * * XML namespaces, relationship types, content types, and other constants * for the OOXML WordprocessingML format. */ /** WordprocessingML main namespace (w:). */ export declare const NS_W = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"; /** Relationships namespace (r:). */ export declare const NS_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"; /** DrawingML Word Processing Drawing namespace (wp:). */ export declare const NS_WP = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"; /** DrawingML main namespace (a:). */ export declare const NS_A = "http://schemas.openxmlformats.org/drawingml/2006/main"; /** DrawingML picture namespace (pic:). */ export declare const NS_PIC = "http://schemas.openxmlformats.org/drawingml/2006/picture"; /** Markup compatibility namespace (mc:). */ export declare const NS_MC = "http://schemas.openxmlformats.org/markup-compatibility/2006"; /** Strict WordprocessingML main namespace. */ export declare const NS_W_STRICT = "http://purl.oclc.org/ooxml/wordprocessingml/main"; /** Strict Relationships namespace. */ export declare const NS_R_STRICT = "http://purl.oclc.org/ooxml/officeDocument/relationships"; /** Strict DrawingML Word Processing Drawing namespace. */ export declare const NS_WP_STRICT = "http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing"; /** Strict DrawingML main namespace. */ export declare const NS_A_STRICT = "http://purl.oclc.org/ooxml/drawingml/main"; /** Strict DrawingML picture namespace. */ export declare const NS_PIC_STRICT = "http://purl.oclc.org/ooxml/drawingml/picture"; /** Strict Markup compatibility namespace. */ export declare const NS_MC_STRICT = "http://purl.oclc.org/ooxml/markup-compatibility/2006"; /** * Maps ISO 29500 Strict namespace URIs to their Transitional equivalents. * Used during reading to normalize Strict documents into the internal model. */ export declare const STRICT_TO_TRANSITIONAL_NS: ReadonlyMap; /** VML namespace (v:). */ export declare const NS_V = "urn:schemas-microsoft-com:vml"; /** Office VML extensions (o:). */ export declare const NS_O = "urn:schemas-microsoft-com:office:office"; /** Math namespace (m:). */ export declare const NS_M = "http://schemas.openxmlformats.org/officeDocument/2006/math"; /** Word 2010 extensions (w14:). */ export declare const NS_W14 = "http://schemas.microsoft.com/office/word/2010/wordml"; /** Word 2013 extensions (w15:). */ export declare const NS_W15 = "http://schemas.microsoft.com/office/word/2012/wordml"; /** Word Processing Group (wpg:). */ export declare const NS_WPG = "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"; /** Word Processing Ink (wpi:). */ export declare const NS_WPI = "http://schemas.microsoft.com/office/word/2010/wordprocessingInk"; /** Word Processing Shape (wps:). */ export declare const NS_WPS = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"; /** Word Processing Canvas (wpc:). */ export declare const NS_WPC = "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"; /** Word Processing Drawing 2010 (wp14:). */ export declare const NS_WP14 = "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"; /** Office Word (w10:). */ export declare const NS_W10 = "urn:schemas-microsoft-com:office:word"; /** SVG extension (asvg:). */ export declare const NS_ASVG = "http://schemas.microsoft.com/office/drawing/2016/SVG/main"; /** SVG extension GUID for a:ext. */ export declare const GUID_SVG = "{96DAC541-7B7A-43D3-8B79-37D633B846F1}"; /** Dublin Core elements (dc:). */ export declare const NS_DC = "http://purl.org/dc/elements/1.1/"; /** Dublin Core terms (dcterms:). */ export declare const NS_DCTERMS = "http://purl.org/dc/terms/"; /** Dublin Core DCMI type (dcmitype:). */ export declare const NS_DCMITYPE = "http://purl.org/dc/dcmitype/"; /** Core properties namespace (cp:). */ export declare const NS_CP = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"; /** Extended properties namespace. */ export declare const NS_EP = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"; /** Doc props VTypes namespace (vt:). */ export declare const NS_VT = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"; /** Custom properties namespace. */ export declare const NS_CUSTOM = "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"; /** XML Schema instance namespace (xsi:). */ export declare const NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"; /** Content Types namespace. */ export declare const NS_CONTENT_TYPES = "http://schemas.openxmlformats.org/package/2006/content-types"; /** Package relationships namespace. */ export declare const NS_PKG_RELS = "http://schemas.openxmlformats.org/package/2006/relationships"; /** DrawingML picture URI for graphicData. */ export declare const URI_PIC = "http://schemas.openxmlformats.org/drawingml/2006/picture"; /** DrawingML chart namespace (c:). */ export declare const NS_C_CHART = "http://schemas.openxmlformats.org/drawingml/2006/chart"; /** Chart Extensions namespace (cx:) — Office 2016+ chartEx. */ export declare const NS_CX_CHART = "http://schemas.microsoft.com/office/drawing/2014/chartex"; /** Flat OPC packaging namespace. */ export declare const NS_PKG = "http://schemas.microsoft.com/office/2006/xmlPackage"; /** Standard namespace attributes for w:document root element. */ export declare const DOCUMENT_NAMESPACES: Readonly>; /** * Maps ISO 29500 Strict relationship type URIs to their Transitional equivalents. * Used during reading to normalize Strict documents. */ export declare const STRICT_TO_TRANSITIONAL_REL: ReadonlyMap; /** OOXML relationship type URIs. */ export declare const RelType: { readonly OfficeDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"; readonly CoreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"; readonly ExtendedProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"; readonly CustomProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties"; readonly Styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; readonly Settings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"; readonly FontTable: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"; readonly Numbering: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"; readonly Footnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"; readonly Endnotes: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"; readonly Header: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"; readonly Footer: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"; readonly Image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"; readonly Hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"; readonly Theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"; readonly Comments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"; readonly CommentsExtended: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentsExtended"; readonly WebSettings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"; readonly Glossary: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/glossaryDocument"; readonly Font: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font"; readonly Chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"; readonly ChartEx: "http://schemas.microsoft.com/office/2014/relationships/chartEx"; readonly Diagram: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData"; readonly CustomXml: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml"; readonly CustomXmlProps: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps"; readonly VbaProject: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vbaProject"; readonly People: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/people"; readonly Package: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"; readonly DigitalSignature: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/digital-signature/signature"; }; /** OOXML content type strings. */ export declare const ContentType: { readonly Relationships: "application/vnd.openxmlformats-package.relationships+xml"; readonly Xml: "application/xml"; readonly Document: "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"; /** Macro-enabled document (.docm) main part. */ readonly DocumentMacroEnabled: "application/vnd.ms-word.document.macroEnabled.main+xml"; /** Template (.dotx) main part. */ readonly Template: "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml"; /** Macro-enabled template (.dotm) main part. */ readonly TemplateMacroEnabled: "application/vnd.ms-word.template.macroEnabled.main+xml"; readonly Styles: "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"; readonly Settings: "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"; readonly FontTable: "application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"; readonly Numbering: "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"; readonly Footnotes: "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"; readonly Endnotes: "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"; readonly Header: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"; readonly Footer: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml"; readonly Theme: "application/vnd.openxmlformats-officedocument.theme+xml"; readonly CoreProperties: "application/vnd.openxmlformats-package.core-properties+xml"; readonly ExtendedProperties: "application/vnd.openxmlformats-officedocument.extended-properties+xml"; readonly CustomProperties: "application/vnd.openxmlformats-officedocument.custom-properties+xml"; readonly Comments: "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"; readonly CommentsExtended: "application/vnd.ms-word.commentsExtended+xml"; readonly People: "application/vnd.ms-word.people+xml"; readonly WebSettings: "application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"; readonly Png: "image/png"; readonly Jpeg: "image/jpeg"; readonly Gif: "image/gif"; readonly Bmp: "image/bmp"; readonly Tiff: "image/tiff"; readonly Svg: "image/svg+xml"; readonly Webp: "image/webp"; readonly Emf: "image/x-emf"; readonly Wmf: "image/x-wmf"; readonly ObfuscatedFont: "application/vnd.openxmlformats-officedocument.obfuscatedFont"; readonly Chart: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"; readonly ChartEx: "application/vnd.ms-office.chartEx+xml"; readonly Xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; readonly CustomXml: "application/xml"; readonly VbaProject: "application/vnd.ms-office.vbaProject"; /** Glossary (Building Blocks) document part. */ readonly Glossary: "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml"; /** OLE embedded object binary. */ readonly OleObject: "application/vnd.openxmlformats-officedocument.oleObject"; }; /** Map from image file extension to content type. */ export declare const IMAGE_CONTENT_TYPES: Record; /** Standard XML declaration attributes. */ export declare const STD_DOC_ATTRIBUTES: { version: string; encoding: string; standalone: string; }; /** Default page size: US Letter (8.5" x 11") in twips. */ export declare const DEFAULT_PAGE_WIDTH = 12240; export declare const DEFAULT_PAGE_HEIGHT = 15840; /** A4 page size in twips. */ export declare const A4_PAGE_WIDTH = 11906; export declare const A4_PAGE_HEIGHT = 16838; /** Default margins: 1 inch all around. */ export declare const DEFAULT_MARGIN = 1440; export declare const DEFAULT_HEADER_FOOTER_MARGIN = 720; /** Default column space. */ export declare const DEFAULT_COLUMN_SPACE = 720; /** Standard DOCX part file paths within the ZIP package. */ export declare const PartPath: { readonly ContentTypes: "[Content_Types].xml"; readonly PackageRels: "_rels/.rels"; readonly Document: "word/document.xml"; readonly DocumentRels: "word/_rels/document.xml.rels"; readonly Styles: "word/styles.xml"; readonly Settings: "word/settings.xml"; readonly FontTable: "word/fontTable.xml"; readonly Numbering: "word/numbering.xml"; readonly Footnotes: "word/footnotes.xml"; readonly Endnotes: "word/endnotes.xml"; readonly Comments: "word/comments.xml"; readonly CommentsExtended: "word/commentsExtended.xml"; readonly People: "word/people.xml"; readonly WebSettings: "word/webSettings.xml"; readonly Theme: "word/theme/theme1.xml"; readonly CoreProps: "docProps/core.xml"; readonly AppProps: "docProps/app.xml"; readonly CustomProps: "docProps/custom.xml"; readonly Thumbnail: "docProps/thumbnail.jpeg"; readonly header: (n: number) => string; readonly headerRels: (n: number) => string; readonly footer: (n: number) => string; readonly footerRels: (n: number) => string; readonly media: (name: string) => string; };