@docx4j/core-ts 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +410 -10
- package/dist/model/content/Body.d.mts +109 -4
- package/dist/model/content/Body.mjs +300 -29
- package/dist/model/content/Comment.d.mts +78 -0
- package/dist/model/content/Comment.mjs +429 -0
- package/dist/model/content/ContentControl.d.mts +173 -0
- package/dist/model/content/ContentControl.mjs +638 -0
- package/dist/model/content/Font.d.mts +48 -8
- package/dist/model/content/Font.mjs +55 -13
- package/dist/model/content/InlinePicture.d.mts +103 -0
- package/dist/model/content/InlinePicture.mjs +361 -0
- package/dist/model/content/List.d.mts +253 -0
- package/dist/model/content/List.mjs +778 -0
- package/dist/model/content/Paragraph.d.mts +213 -16
- package/dist/model/content/Paragraph.mjs +611 -57
- package/dist/model/content/Range.d.mts +48 -4
- package/dist/model/content/Range.mjs +161 -4
- package/dist/model/content/Table.d.mts +130 -0
- package/dist/model/content/Table.mjs +429 -0
- package/dist/model/content/TrackedChange.d.mts +96 -0
- package/dist/model/content/TrackedChange.mjs +352 -0
- package/dist/model/content/comments.d.mts +122 -0
- package/dist/model/content/comments.mjs +248 -0
- package/dist/model/content/index.d.mts +13 -3
- package/dist/model/content/index.mjs +15 -3
- package/dist/model/content/ooxml.d.mts +17 -0
- package/dist/model/content/ooxml.mjs +214 -0
- package/dist/model/content/styles.d.mts +21 -0
- package/dist/model/content/styles.mjs +86 -0
- package/dist/model/content/tracking.d.mts +104 -0
- package/dist/model/content/tracking.mjs +313 -0
- package/dist/model/content/tree.d.mts +56 -9
- package/dist/model/content/tree.mjs +104 -31
- package/dist/model/customxml/CustomXmlPart.d.mts +158 -0
- package/dist/model/customxml/CustomXmlPart.mjs +415 -0
- package/dist/model/customxml/CustomXmlPartCollection.d.mts +68 -0
- package/dist/model/customxml/CustomXmlPartCollection.mjs +183 -0
- package/dist/model/customxml/XmlMapping.d.mts +46 -0
- package/dist/model/customxml/XmlMapping.mjs +98 -0
- package/dist/model/customxml/bindings.d.mts +41 -0
- package/dist/model/customxml/bindings.mjs +230 -0
- package/dist/model/customxml/index.d.mts +7 -0
- package/dist/model/customxml/index.mjs +9 -0
- package/dist/model/customxml/insert.d.mts +20 -0
- package/dist/model/customxml/insert.mjs +22 -0
- package/dist/model/customxml/kinds.d.mts +103 -0
- package/dist/model/customxml/kinds.mjs +267 -0
- package/dist/model/customxml/xpath.d.mts +52 -0
- package/dist/model/customxml/xpath.mjs +205 -0
- package/dist/model/fonts/CJKToEnglish.d.mts +2 -0
- package/dist/model/fonts/CJKToEnglish.mjs +16 -0
- package/dist/model/fonts/FontFallback.d.mts +58 -0
- package/dist/model/fonts/FontFallback.mjs +219 -0
- package/dist/model/fonts/IdentityPlusMapper.d.mts +7 -0
- package/dist/model/fonts/IdentityPlusMapper.mjs +19 -0
- package/dist/model/fonts/LanguageTagToScriptMapping.d.mts +7 -0
- package/dist/model/fonts/LanguageTagToScriptMapping.mjs +67 -0
- package/dist/model/fonts/Mapper.d.mts +190 -0
- package/dist/model/fonts/Mapper.mjs +481 -0
- package/dist/model/fonts/PhysicalFont.d.mts +34 -0
- package/dist/model/fonts/PhysicalFont.mjs +62 -0
- package/dist/model/fonts/RunFontSelector.d.mts +194 -0
- package/dist/model/fonts/RunFontSelector.mjs +441 -0
- package/dist/model/fonts/ThemeFonts.d.mts +17 -0
- package/dist/model/fonts/ThemeFonts.mjs +76 -0
- package/dist/model/fonts/defaultTheme.d.mts +37 -0
- package/dist/model/fonts/defaultTheme.mjs +57 -0
- package/dist/model/fonts/families.generated.d.mts +11 -0
- package/dist/model/fonts/families.generated.mjs +17 -0
- package/dist/model/fonts/fontsInUse.d.mts +39 -0
- package/dist/model/fonts/fontsInUse.mjs +183 -0
- package/dist/model/fonts/index.d.mts +14 -0
- package/dist/model/fonts/index.mjs +29 -0
- package/dist/model/fonts/lookup.d.mts +5 -0
- package/dist/model/fonts/lookup.mjs +12 -0
- package/dist/model/fonts/registry.d.mts +31 -0
- package/dist/model/fonts/registry.mjs +103 -0
- package/dist/model/fonts/scripts.d.mts +2 -0
- package/dist/model/fonts/scripts.mjs +78 -0
- package/dist/model/fonts/substitutions.generated.d.mts +30 -0
- package/dist/model/fonts/substitutions.generated.mjs +12 -0
- package/dist/model/fonts/themes.generated.d.mts +6 -0
- package/dist/model/fonts/themes.generated.mjs +11 -0
- package/dist/model/index.d.mts +5 -0
- package/dist/model/index.mjs +13 -1
- package/dist/model/listnumbering/Emulator.d.mts +187 -0
- package/dist/model/listnumbering/Emulator.mjs +332 -0
- package/dist/model/listnumbering/definitions.d.mts +251 -0
- package/dist/model/listnumbering/definitions.mjs +571 -0
- package/dist/model/listnumbering/formats.d.mts +25 -0
- package/dist/model/listnumbering/formats.mjs +320 -0
- package/dist/model/listnumbering/index.d.mts +4 -0
- package/dist/model/listnumbering/index.mjs +15 -0
- package/dist/model/listnumbering/state.d.mts +97 -0
- package/dist/model/listnumbering/state.mjs +179 -0
- package/dist/model/properties/PropertyResolver.d.mts +216 -0
- package/dist/model/properties/PropertyResolver.mjs +524 -0
- package/dist/model/properties/catalogue.d.mts +179 -0
- package/dist/model/properties/catalogue.mjs +860 -0
- package/dist/model/properties/index.d.mts +4 -0
- package/dist/model/properties/index.mjs +9 -0
- package/dist/model/properties/log.d.mts +7 -0
- package/dist/model/properties/log.mjs +25 -0
- package/dist/model/properties/styleUtil.d.mts +112 -0
- package/dist/model/properties/styleUtil.mjs +359 -0
- package/dist/node/index.d.mts +1 -0
- package/dist/node/index.mjs +12 -0
- package/dist/office-js/document.d.mts +111 -0
- package/dist/office-js/document.mjs +267 -0
- package/dist/office-js/enums.d.mts +187 -0
- package/dist/office-js/enums.mjs +176 -0
- package/dist/office-js/errors.d.mts +29 -0
- package/dist/office-js/errors.mjs +39 -0
- package/dist/office-js/extras.d.mts +5 -0
- package/dist/office-js/extras.mjs +29 -0
- package/dist/office-js/fragment.d.mts +10 -0
- package/dist/office-js/fragment.mjs +23 -0
- package/dist/office-js/index.d.mts +183 -0
- package/dist/office-js/index.mjs +54 -0
- package/dist/office-js/proxy.d.mts +72 -0
- package/dist/office-js/proxy.mjs +279 -0
- package/dist/office-js/run.d.mts +32 -0
- package/dist/office-js/run.mjs +66 -0
- package/dist/office-js/supported.d.mts +7 -0
- package/dist/office-js/supported.generated.d.mts +1 -0
- package/dist/office-js/supported.generated.mjs +235 -0
- package/dist/office-js/supported.mjs +53 -0
- package/dist/office-js/toApiScript.d.mts +25 -0
- package/dist/office-js/toApiScript.mjs +394 -0
- package/dist/opc/ContentTypes.d.mts +1 -0
- package/dist/opc/ContentTypes.mjs +1 -0
- package/dist/opc/DirectoryPartStore.d.mts +47 -0
- package/dist/opc/DirectoryPartStore.mjs +123 -0
- package/dist/opc/exceptions.d.mts +30 -0
- package/dist/opc/exceptions.mjs +38 -0
- package/dist/opc/index.d.mts +1 -1
- package/dist/opc/index.mjs +1 -1
- package/dist/packages/OpcPackage.d.mts +19 -1
- package/dist/packages/OpcPackage.mjs +29 -0
- package/dist/packages/PresentationMLPackage.d.mts +71 -1
- package/dist/packages/PresentationMLPackage.mjs +179 -0
- package/dist/packages/SpreadsheetMLPackage.d.mts +30 -1
- package/dist/packages/SpreadsheetMLPackage.mjs +78 -0
- package/dist/packages/WordprocessingMLPackage.d.mts +124 -2
- package/dist/packages/WordprocessingMLPackage.mjs +309 -2
- package/dist/packages/index.d.mts +1 -1
- package/dist/packages/index.mjs +1 -1
- package/dist/parts/DefaultXmlPart.d.mts +18 -0
- package/dist/parts/DefaultXmlPart.mjs +34 -5
- package/dist/parts/PartRegistry.mjs +1 -0
- package/dist/parts/XmlPart.d.mts +33 -0
- package/dist/parts/XmlPart.mjs +105 -2
- package/dist/parts/pml/defaults.d.mts +6 -0
- package/dist/parts/pml/defaults.mjs +53 -0
- package/dist/parts/pml/index.d.mts +66 -3
- package/dist/parts/pml/index.mjs +206 -7
- package/dist/parts/pml/placeholders.d.mts +71 -0
- package/dist/parts/pml/placeholders.mjs +141 -0
- package/dist/parts/sml/index.d.mts +19 -1
- package/dist/parts/sml/index.mjs +60 -1
- package/dist/parts/wml/comments.d.mts +1 -0
- package/dist/parts/wml/comments.mjs +179 -0
- package/dist/parts/wml/defaultNumbering.d.mts +1 -0
- package/dist/parts/wml/defaultNumbering.mjs +216 -0
- package/dist/parts/wml/index.d.mts +121 -0
- package/dist/parts/wml/index.mjs +291 -0
- package/dist/xml/dom.mjs +1 -2
- package/package.json +25 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import type * as wml from '@docx4j/generated-objects-ts/modules/org_docx4j_wml';
|
|
2
|
+
/** Run properties: `w:rPr` and the paragraph mark's `w:pPr/w:rPr`, which have the same members. */
|
|
3
|
+
export type RunProps = wml.RPr | wml.ParaRPr;
|
|
4
|
+
/** How a more specific value merges over an inherited one. Returns the value to store. */
|
|
5
|
+
export type Merge<V> = (source: V | undefined, destination: V | undefined) => V | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* One member of a properties element: its name, accessors, merge, emptiness and whether it
|
|
8
|
+
* formats the content (as opposed to naming a style, recording a revision, or caching a
|
|
9
|
+
* computed condition).
|
|
10
|
+
*/
|
|
11
|
+
export interface Property<O, V> {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
/** False for a style reference, a revision record or Word's condition cache: `hasDirectFormatting` leaves those out. */
|
|
14
|
+
readonly isFormatting: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether `isEmpty(owner)` counts this member. False for the few members docx4j's
|
|
17
|
+
* hand-written `isEmpty` omits (`w:bidiVisual`, `w:tblCaption`, `w:tblDescription`), kept
|
|
18
|
+
* so that the tables stay one-entry-per-member and the quirk stays visible.
|
|
19
|
+
*/
|
|
20
|
+
readonly countsEmpty: boolean;
|
|
21
|
+
get(owner: O): V | undefined;
|
|
22
|
+
set(owner: O, value: V | undefined): void;
|
|
23
|
+
merge(source: V | undefined, destination: V | undefined): V | undefined;
|
|
24
|
+
isEmpty(value: V | undefined): boolean;
|
|
25
|
+
/** A copy of a value of this member's type, sharing nothing with it. */
|
|
26
|
+
copyOf(value: V): V;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A structural copy of a leaf value, without its `PARENT` link: what the merges store, so
|
|
30
|
+
* that nothing in an effective `w:pPr` or `w:rPr` is a styles-part object.
|
|
31
|
+
*/
|
|
32
|
+
export declare function copyLeaf<T>(value: T): T;
|
|
33
|
+
/** A merge with no per-attribute rule: a copy of the source where it has one, else the inherited. */
|
|
34
|
+
export declare function mergeReplace<V>(source: V | undefined, destination: V | undefined): V | undefined;
|
|
35
|
+
/** `<w:b/>` and `<w:b w:val="0"/>` both count: an explicit false is applied. */
|
|
36
|
+
export declare function isEmptyBool(value: wml.BooleanDefaultTrue | undefined): boolean;
|
|
37
|
+
/** A `BooleanDefaultTrue`'s value: absent `w:val` means true (docx4j `isVal()`). */
|
|
38
|
+
export declare function isTrue(value: wml.BooleanDefaultTrue | undefined): boolean;
|
|
39
|
+
export declare function isEmptyRStyle(value: wml.RStyle | undefined): boolean;
|
|
40
|
+
/** docx4j `isEmpty(RFonts)`: insensitive to a `w:hint` (which `apply` still carries). */
|
|
41
|
+
export declare function isEmptyRFonts(value: wml.RFonts | undefined): boolean;
|
|
42
|
+
export declare function isEmptyColor(value: wml.Color | undefined): boolean;
|
|
43
|
+
export declare function isEmptyU(value: wml.U | undefined): boolean;
|
|
44
|
+
export declare function isEmptyHighlight(value: wml.Highlight | undefined): boolean;
|
|
45
|
+
/** @since CR-015 phase 1: a style stating only `w:lang` used to count as empty and was never applied. */
|
|
46
|
+
export declare function isEmptyLang(value: wml.CTLanguage | undefined): boolean;
|
|
47
|
+
export declare function isEmptyShd(value: wml.CTShd | undefined): boolean;
|
|
48
|
+
export declare function isEmptyBorder(value: wml.CTBorder | undefined): boolean;
|
|
49
|
+
export declare function isEmptyPBdr(value: wml.PPrBase.PBdr | undefined): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* docx4j `isEmpty(Ind)`: `w:start`/`w:end` (the strict-conformance spellings) count too
|
|
52
|
+
* (17.0.5); dropping them lost them in style resolution.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isEmptyInd(value: wml.PPrBase.Ind | undefined): boolean;
|
|
55
|
+
/** An explicit `w:beforeAutospacing`/`w:afterAutospacing` of either value is a statement too. */
|
|
56
|
+
export declare function isEmptySpacing(value: wml.PPrBase.Spacing | undefined): boolean;
|
|
57
|
+
export declare function isEmptyTabs(value: wml.Tabs | undefined): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* A `w:numPr` is empty only when it states neither `w:numId` nor `w:ilvl`: each inherits on
|
|
60
|
+
* its own (CR-015 probe styles-numpr-ilvl-only).
|
|
61
|
+
*/
|
|
62
|
+
export declare function isEmptyNumPr(value: wml.PPrBase.NumPr | undefined): boolean;
|
|
63
|
+
/** `w:anchorLock` defaults to true, so only an explicit `w:anchorLock="0"` makes a frame non-empty by itself. */
|
|
64
|
+
export declare function isEmptyFramePr(value: wml.CTFramePr | undefined): boolean;
|
|
65
|
+
/** docx4j `apply(BooleanDefaultTrue, BooleanDefaultTrue)`: a copy of the source where it states one. */
|
|
66
|
+
export declare function mergeBool(source: wml.BooleanDefaultTrue | undefined, destination: wml.BooleanDefaultTrue | undefined): wml.BooleanDefaultTrue | undefined;
|
|
67
|
+
export declare const mergeRStyle: Merge<wml.RStyle>;
|
|
68
|
+
export declare const mergeHighlight: Merge<wml.Highlight>;
|
|
69
|
+
export declare const mergeEm: Merge<wml.CTEm>;
|
|
70
|
+
export declare const mergeVertAlign: Merge<wml.CTVerticalAlignRun>;
|
|
71
|
+
export declare const mergeEffect: Merge<wml.CTTextEffect>;
|
|
72
|
+
export declare const mergeHps: Merge<wml.HpsMeasure>;
|
|
73
|
+
export declare const mergeSignedHps: Merge<wml.CTSignedHpsMeasure>;
|
|
74
|
+
export declare const mergeSignedTwips: Merge<wml.CTSignedTwipsMeasure>;
|
|
75
|
+
export declare const mergeTextScale: Merge<wml.CTTextScale>;
|
|
76
|
+
export declare const mergeJc: Merge<wml.Jc>;
|
|
77
|
+
export declare const mergeOutlineLvl: Merge<wml.PPrBase.OutlineLvl>;
|
|
78
|
+
export declare const mergeTextAlignment: Merge<wml.PPrBase.TextAlignment>;
|
|
79
|
+
export declare const mergeTextDirection: Merge<wml.TextDirection>;
|
|
80
|
+
export declare const mergeTextboxTightWrap: Merge<wml.CTTextboxTightWrap>;
|
|
81
|
+
export declare const mergeCnf: Merge<wml.CTCnf>;
|
|
82
|
+
export declare const mergePStyle: Merge<wml.PPrBase.PStyle>;
|
|
83
|
+
/**
|
|
84
|
+
* `w:rFonts`: a theme reference trumps an explicit face within one element, and a source with
|
|
85
|
+
* only a `w:hint` still says something. A null source leaves the destination alone (until
|
|
86
|
+
* CR-015 phase 1 it was given an empty `w:rFonts`, so every merged `w:rPr` read as directly
|
|
87
|
+
* formatted).
|
|
88
|
+
*/
|
|
89
|
+
export declare const mergeRFonts: Merge<wml.RFonts>;
|
|
90
|
+
export declare const mergeColor: Merge<wml.Color>;
|
|
91
|
+
/** `w:val` and the colour attributes each inherit on their own (CR-015 phase 1). */
|
|
92
|
+
export declare const mergeU: Merge<wml.U>;
|
|
93
|
+
/** `w:val`, `w:eastAsia` and `w:bidi` each name the language of one script range and each inherits. */
|
|
94
|
+
export declare const mergeLang: Merge<wml.CTLanguage>;
|
|
95
|
+
export declare const mergeShd: Merge<wml.CTShd>;
|
|
96
|
+
export declare const mergeBorder: Merge<wml.CTBorder>;
|
|
97
|
+
export declare const mergePBdr: Merge<wml.PPrBase.PBdr>;
|
|
98
|
+
/** `w:numId` and `w:ilvl` each inherit on their own; see {@link isEmptyNumPr}. */
|
|
99
|
+
export declare const mergeNumPr: Merge<wml.PPrBase.NumPr>;
|
|
100
|
+
/**
|
|
101
|
+
* `w:ind`: `w:firstLine` and `w:hanging` are two spellings of one property (ECMA-376
|
|
102
|
+
* 17.3.1.12), so whichever of the two the more specific `w:ind` states replaces both; the
|
|
103
|
+
* rest inherit per attribute.
|
|
104
|
+
*/
|
|
105
|
+
export declare const mergeInd: Merge<wml.PPrBase.Ind>;
|
|
106
|
+
/**
|
|
107
|
+
* `w:spacing`: the autospacing attributes survive the merge, and `w:lineRule` qualifies
|
|
108
|
+
* `w:line` - a source stating `w:line` states a rule too (auto when it names none), and a
|
|
109
|
+
* source stating no `w:line` leaves both inherited (CR-015 probe styles-linerule).
|
|
110
|
+
*/
|
|
111
|
+
export declare const mergeSpacing: Merge<wml.PPrBase.Spacing>;
|
|
112
|
+
/**
|
|
113
|
+
* `w:tabs`: the custom tab stops are the union of those declared and those inherited, a stop
|
|
114
|
+
* at the same position replaces the inherited one, and `w:val="clear"` only removes
|
|
115
|
+
* (ECMA-376 17.3.1.38, 17.3.1.37). Word holds them in ascending position order.
|
|
116
|
+
*/
|
|
117
|
+
export declare const mergeTabs: Merge<wml.Tabs>;
|
|
118
|
+
/**
|
|
119
|
+
* `w:framePr`'s attributes each inherit on their own: a paragraph whose direct `w:framePr`
|
|
120
|
+
* gives only `w:x`/`w:y` keeps the anchors its style states. `w:anchorLock` defaults to true,
|
|
121
|
+
* and docx4j's merge writes that default out explicitly.
|
|
122
|
+
*/
|
|
123
|
+
export declare const mergeFramePr: Merge<wml.CTFramePr>;
|
|
124
|
+
/**
|
|
125
|
+
* The members of `w:rPr` (17.3.2) and of the paragraph mark's `w:pPr/w:rPr`, in schema order,
|
|
126
|
+
* plus the w14 extensions the generated interfaces carry. Not listed: `w:rPrChange` and the
|
|
127
|
+
* paragraph mark's `w:ins`/`w:del`/`w:moveFrom`/`w:moveTo`, which record revisions and are
|
|
128
|
+
* never inherited.
|
|
129
|
+
*/
|
|
130
|
+
export declare const RUN: readonly Property<RunProps, never>[];
|
|
131
|
+
/** Members of `w:rPr` and `w:pPr/w:rPr` that are not in {@link RUN} (revision records). */
|
|
132
|
+
export declare const RUN_EXCLUDED: readonly string[];
|
|
133
|
+
/**
|
|
134
|
+
* The names of the **toggle properties** of `w:rPr`, in the order ECMA-376-1 §17.7.3 lists
|
|
135
|
+
* them. Twelve, and no more: `w:dstrike`, `w:noProof`, `w:snapToGrid`, `w:webHidden`,
|
|
136
|
+
* `w:rtl`, `w:cs`, `w:specVanish` and `w:oMath` are Boolean but are not toggles.
|
|
137
|
+
*/
|
|
138
|
+
export declare const TOGGLE_NAMES: ReadonlySet<string>;
|
|
139
|
+
/** {@link TOGGLE_NAMES} as members of {@link RUN}. */
|
|
140
|
+
export declare const TOGGLES: readonly Property<RunProps, wml.BooleanDefaultTrue>[];
|
|
141
|
+
/** The `w:ind` member's name: the paragraph merge applies it last, after the numbering level's. */
|
|
142
|
+
export declare const IND = "ind";
|
|
143
|
+
/**
|
|
144
|
+
* The members of `w:pPr` shared with a style's `w:pPr` (`PPrBase`, 17.3.1), in schema order.
|
|
145
|
+
* Not formatting: `w:pStyle` (the style reference), `w:divId` (an HTML import artefact),
|
|
146
|
+
* `w:cnfStyle` (Word's cache of the table conditions that apply) and `w14:collapsed` (the
|
|
147
|
+
* outline view's state). A `w:pPr`'s own `w:rPr` (the paragraph mark) and `w:sectPr` are
|
|
148
|
+
* outside `PPrBase` and outside this list.
|
|
149
|
+
*/
|
|
150
|
+
export declare const PARAGRAPH: readonly Property<wml.PPrBase, never>[];
|
|
151
|
+
/** Members of `w:pPr` that are not in {@link PARAGRAPH}: the mark, the section, the revision. */
|
|
152
|
+
export declare const PARAGRAPH_EXCLUDED: readonly string[];
|
|
153
|
+
/**
|
|
154
|
+
* The members of `w:tblPr` (`CTTblPrBase`, 17.4.60), in schema order.
|
|
155
|
+
*
|
|
156
|
+
* Three quirks of docx4j's hand-written pair are reproduced and flagged: `w:bidiVisual` is
|
|
157
|
+
* applied but not counted by `isEmpty`, and `w:tblCaption` and `w:tblDescription` are neither
|
|
158
|
+
* applied nor counted (they are a table's accessibility text, not formatting a style carries).
|
|
159
|
+
*/
|
|
160
|
+
export declare const TABLE: readonly Property<wml.CTTblPrBase, never>[];
|
|
161
|
+
export declare const TABLE_EXCLUDED: readonly string[];
|
|
162
|
+
/**
|
|
163
|
+
* The members of `w:tcPr` (`TcPr`, 17.4.68), in schema order. `w:cellIns`, `w:cellDel`,
|
|
164
|
+
* `w:cellMerge` and `w:tcPrChange` record revisions and are excluded.
|
|
165
|
+
*/
|
|
166
|
+
export declare const CELL: readonly Property<wml.TcPr, never>[];
|
|
167
|
+
export declare const CELL_EXCLUDED: readonly string[];
|
|
168
|
+
/** The member of that name, or undefined. */
|
|
169
|
+
export declare function namedProperty<O>(catalogue: readonly Property<O, never>[], name: string): Property<O, never> | undefined;
|
|
170
|
+
/** Whether every member of `owner` is empty. */
|
|
171
|
+
export declare function isEmptyOf<O>(catalogue: readonly Property<O, never>[], owner: O | undefined): boolean;
|
|
172
|
+
/** Whether any formatting member is present (an element that is there, even with no attributes, counts: it was stated). */
|
|
173
|
+
export declare function hasDirectFormattingOf<O>(catalogue: readonly Property<O, never>[], owner: O | undefined): boolean;
|
|
174
|
+
/** Apply every member of `source` over `destination`, in place, except those named. */
|
|
175
|
+
export declare function applyCatalogue<O>(catalogue: readonly Property<O, never>[], source: O, destination: O, except?: ReadonlySet<string>): void;
|
|
176
|
+
/** Apply one member of `source` over `destination`. */
|
|
177
|
+
export declare function applyProperty<O, V>(p: Property<O, V>, source: O, destination: O): void;
|
|
178
|
+
/** Unset in `destination` every member that `source` states. */
|
|
179
|
+
export declare function unsetCatalogue<O>(catalogue: readonly Property<O, never>[], source: O, destination: O): void;
|