ooxml-ui 1.46.0 → 1.48.0
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 +1 -1
- package/dist/chart/format-pane-axis.d.ts +0 -1
- package/dist/chart/format-pane-model.d.ts +0 -1
- package/dist/chart/format-pane-targets.d.ts +0 -1
- package/dist/chart/format-pane-types.d.ts +0 -1
- package/dist/chart/format-pane-view.d.ts +0 -1
- package/dist/{chunk-NH33G6LA.js → chunk-G5CALQUW.js} +43 -2
- package/dist/{chunk-HNSFEOSG.js → chunk-J3ROBM74.js} +1 -1
- package/dist/docx/backstage-options.d.ts +4 -0
- package/dist/docx/backstage-trust.d.ts +11 -0
- package/dist/docx/docx-webfonts.d.ts +23 -3
- package/dist/docx/element-api.d.ts +3 -1
- package/dist/docx/font-downloads.d.ts +8 -0
- package/dist/docx/locales/en.d.ts +6 -0
- package/dist/docx/locales/options.d.ts +6 -0
- package/dist/docx/locales/trust.d.ts +15 -0
- package/dist/docx/localization-strings.d.ts +6 -0
- package/dist/docx.js +154 -13
- package/dist/fonts/font-download-policy.d.ts +23 -0
- package/dist/fonts/webfonts.d.ts +34 -13
- package/dist/fonts/webfonts.d.ts.map +1 -1
- package/dist/form/color-input/live-color-input.d.ts +0 -1
- package/dist/form/range-control.d.ts +0 -1
- package/dist/index.js +2 -2
- package/dist/pptx/{chunk-Y5I2GPXN.cjs → chunk-2C2C27ML.cjs} +99 -2
- package/dist/pptx/{chunk-Z6HDGNW6.mjs → chunk-C4GZLKDW.mjs} +97 -3
- package/dist/pptx/{chunk-F2LOZTP3.mjs → chunk-JUEKQZSB.mjs} +1 -1
- package/dist/pptx/{chunk-XPTB4LSI.cjs → chunk-N5WPJIMK.cjs} +42 -42
- package/dist/pptx/dom/index.cjs +370 -370
- package/dist/pptx/dom/index.mjs +4 -4
- package/dist/pptx/index.cjs +3074 -3062
- package/dist/pptx/index.mjs +1 -1
- package/dist/pptx/render/deck-webfont-readiness.d.ts +11 -0
- package/dist/pptx/render/deck-webfont-readiness.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +2 -0
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/inline-text-paragraph-marker.d.ts +3 -0
- package/dist/pptx/render/inline-text-paragraph-marker.d.ts.map +1 -0
- package/dist/pptx/render/inline-trailing-space.d.ts +14 -0
- package/dist/pptx/render/inline-trailing-space.d.ts.map +1 -0
- package/dist/pptx/render/morph-predicates.d.ts +5 -1
- package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-O4B3T6TS.cjs → smartart-insert-preview-3BLHZGCE.cjs} +3 -3
- package/dist/pptx/{smartart-insert-preview-Q6V3WY7W.mjs → smartart-insert-preview-WRSYENYB.mjs} +2 -2
- package/dist/render-cache.d.ts +0 -1
- package/dist/teams.js +1 -1
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/dist/visio/controller.d.ts +6 -0
- package/dist/visio/locales/trust-center.d.ts +7 -0
- package/dist/visio/viewer-behaviour.d.ts +5 -0
- package/dist/visio/viewer-element.d.ts +5 -3
- package/dist/visio/viewer-options-categories.d.ts +6 -0
- package/dist/visio/viewer-options-trust.d.ts +10 -0
- package/dist/visio/viewer-options.d.ts +6 -0
- package/dist/visio/viewer-webfonts.d.ts +15 -3
- package/dist/visio.js +184 -16
- package/dist/xlsx/backstage/options-trust.d.ts +9 -0
- package/dist/xlsx/backstage/parts.d.ts +4 -0
- package/dist/xlsx/element-api.d.ts +9 -7
- package/dist/xlsx/font-downloads.d.ts +8 -0
- package/dist/xlsx/webfonts.d.ts +21 -1
- package/dist/xlsx.js +130 -20
- package/package.json +2 -2
- /package/dist/{chunk-6G6KERIZ.js → chunk-MUY444GW.js} +0 -0
|
@@ -40,6 +40,11 @@ export interface VisioBehaviour extends TabSettings, QuickAccessSettings {
|
|
|
40
40
|
autoRecover: boolean;
|
|
41
41
|
/** Minutes between AutoRecover copies. */
|
|
42
42
|
autoRecoverMinutes: number;
|
|
43
|
+
/**
|
|
44
|
+
* Trust Center: download missing fonts (Google Fonts) when the host left `googleFonts` unset.
|
|
45
|
+
* Off unless the reader turns it on; a host value overrides it (`fonts/font-download-policy`).
|
|
46
|
+
*/
|
|
47
|
+
allowFontDownloads: boolean;
|
|
43
48
|
}
|
|
44
49
|
export declare const DEFAULT_BEHAVIOUR: Readonly<VisioBehaviour>;
|
|
45
50
|
/**
|
|
@@ -66,9 +66,11 @@ export declare class VisioViewerElement extends BaseElement {
|
|
|
66
66
|
* Webfont fallback for fonts the drawing uses that the reader has not installed (Calibri,
|
|
67
67
|
* Cambria, Aptos and other Office fonts load as their metric-compatible clones Carlito,
|
|
68
68
|
* Caladea and so on; other catalogue families load as themselves), so text wraps as saved.
|
|
69
|
-
*
|
|
70
|
-
* (
|
|
71
|
-
*
|
|
69
|
+
* This is the host's decision: unset leaves it to the reader's File > Options > Trust Center
|
|
70
|
+
* toggle (off until the reader turns it on, then Google Fonts); a value set here shows that
|
|
71
|
+
* toggle read-only. `false`: off, no request is made. `{ baseUrl }`: CSS2 requests go to that
|
|
72
|
+
* mirror (an absolute http(s) URL without credentials, query or fragment; anything else warns
|
|
73
|
+
* and stays off), for example `{ baseUrl: 'https://fonts.googleapis.com/css2' }` for Google
|
|
72
74
|
* itself. Only public catalogue family names are sent, never text. Read when a drawing loads:
|
|
73
75
|
* the first show waits briefly (150 ms, with the loading state up) for the faces, and a face that
|
|
74
76
|
* arrives later redraws the page. Setting it applies to the open drawing at once.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type OfficeOptionCategory } from '../controls.js';
|
|
2
2
|
import { MAX_UNDO_LEVELS } from './viewer-behaviour.js';
|
|
3
|
+
import type { VisioLocale } from './ribbon-locale.js';
|
|
3
4
|
export { MAX_UNDO_LEVELS };
|
|
4
5
|
/**
|
|
5
6
|
* Visio's File > Options categories, in Visio's order, built from the shared Office categories.
|
|
@@ -10,3 +11,8 @@ export { MAX_UNDO_LEVELS };
|
|
|
10
11
|
* viewer cannot honour is shown disabled with the reason.
|
|
11
12
|
*/
|
|
12
13
|
export declare const VISIO_OPTION_CATEGORIES: readonly OfficeOptionCategory[];
|
|
14
|
+
/**
|
|
15
|
+
* The categories for a display language and the host's font download decision: the Trust
|
|
16
|
+
* Center is rebuilt in that language and locked when the host set `googleFonts`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function visioOptionCategories(locale: VisioLocale, fontDownloadsLocked?: boolean): readonly OfficeOptionCategory[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OfficeOptionCategory } from '../controls.js';
|
|
2
|
+
import { type VisioLocale } from './ribbon-locale.js';
|
|
3
|
+
/** The Trust Center toggle's key in the options values and the saved behaviour. */
|
|
4
|
+
export declare const FONT_DOWNLOADS_KEY = "allowFontDownloads";
|
|
5
|
+
/**
|
|
6
|
+
* Visio's File > Options > Trust Center, PowerPoint's wording with one setting: whether fonts
|
|
7
|
+
* that are neither installed nor embedded are downloaded. `locked` is the host's decision
|
|
8
|
+
* (`fontDownloadLock(googleFonts)`): when set, the toggle is read-only and says why.
|
|
9
|
+
*/
|
|
10
|
+
export declare function visioTrustCategory(locale?: VisioLocale, locked?: boolean): OfficeOptionCategory;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type OfficeProfile } from '../controls.js';
|
|
2
2
|
import { DEFAULT_BEHAVIOUR, readBehaviour, type VisioBehaviour } from './viewer-behaviour.js';
|
|
3
3
|
import { VISIO_OPTION_CATEGORIES } from './viewer-options-categories.js';
|
|
4
|
+
import type { VisioLocale } from './ribbon-locale.js';
|
|
4
5
|
export { VISIO_OPTION_CATEGORIES };
|
|
5
6
|
export { DEFAULT_BEHAVIOUR, readBehaviour, type VisioBehaviour };
|
|
6
7
|
/** The status bar's look: Visio's product colour ("Colorful") or the neutral suite bar. */
|
|
@@ -32,6 +33,11 @@ export declare class ViewerProfile {
|
|
|
32
33
|
/** Applies the behaviour Options, now and after each change. */
|
|
33
34
|
onBehaviour?: (behaviour: VisioBehaviour) => void);
|
|
34
35
|
get profile(): OfficeProfile;
|
|
36
|
+
/**
|
|
37
|
+
* The Trust Center's language and the host's font download decision (`fontDownloadLock`):
|
|
38
|
+
* `undefined` leaves the toggle to the reader, a boolean shows it read-only with that value.
|
|
39
|
+
*/
|
|
40
|
+
setTrust(locale: VisioLocale, fontDownloadsLocked: boolean | undefined): void;
|
|
35
41
|
/** Open Visio Options, on General as Visio does. */
|
|
36
42
|
showOptions(category?: string): void;
|
|
37
43
|
wire(): () => void;
|
|
@@ -4,8 +4,9 @@ import { prepareWebfonts, type WebfontReadiness } from '../fonts/webfonts.js';
|
|
|
4
4
|
/** The managed `<link>` id of the first viewer in a document; later ones add a number. */
|
|
5
5
|
export declare const VISIO_WEBFONT_LINK_ID = "visio-viewer-webfonts";
|
|
6
6
|
/**
|
|
7
|
-
* The `googleFonts` webfont fallback of one `<visio-viewer>`: which CSS2 base the option
|
|
8
|
-
*
|
|
7
|
+
* The `googleFonts` webfont fallback of one `<visio-viewer>`: which CSS2 base the host's option
|
|
8
|
+
* and the reader's Trust Center choice resolve to (both unset means off, unlike PowerPoint), and
|
|
9
|
+
* the managed `<link>` in the host
|
|
9
10
|
* document's head (a shadow root's `@font-face` rules would not apply). Each viewer owns its own
|
|
10
11
|
* link, so two viewers on one page never remove each other's faces.
|
|
11
12
|
*/
|
|
@@ -17,7 +18,13 @@ export declare class ViewerWebfonts {
|
|
|
17
18
|
constructor(host: () => Document, prepare?: typeof prepareWebfonts);
|
|
18
19
|
get option(): GoogleFontsOption | undefined;
|
|
19
20
|
set option(value: GoogleFontsOption | undefined);
|
|
20
|
-
/** The
|
|
21
|
+
/** The reader's Trust Center choice, used only while the host left `option` unset. */
|
|
22
|
+
get readerAllows(): boolean;
|
|
23
|
+
set readerAllows(value: boolean);
|
|
24
|
+
/**
|
|
25
|
+
* The CSS2 base requested, or `null` when the fallback is off: the host's option when set,
|
|
26
|
+
* else Google Fonts when the reader allowed downloads (`effectiveFontDownloads`).
|
|
27
|
+
*/
|
|
21
28
|
base(): string | null;
|
|
22
29
|
/**
|
|
23
30
|
* Load the faces the drawing draws in families the reader has neither installed nor gets from
|
|
@@ -25,6 +32,11 @@ export declare class ViewerWebfonts {
|
|
|
25
32
|
* no webfont was needed; otherwise the readiness, after the bounded wait. Never rejects.
|
|
26
33
|
*/
|
|
27
34
|
load(document: VisioDocument | null): Promise<WebfontReadiness | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Start downloading the faces the file declares before it is parsed (see `prefetchWebfonts`),
|
|
37
|
+
* so they are usually ready when {@link load} waits. Never throws.
|
|
38
|
+
*/
|
|
39
|
+
prefetch(bytes: Uint8Array | ArrayBuffer): void;
|
|
28
40
|
/** Remove this viewer's stylesheet (option off, viewer destroyed). */
|
|
29
41
|
remove(): void;
|
|
30
42
|
}
|
package/dist/visio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { trackPointerPan, ownsCaptureLoss } from './chunk-GSXOZCAN.js';
|
|
2
|
-
import { prepareWebfonts, syncGoogleWebfontStylesheet, attachShareDialog, connectedServicesLabels, chartExSpaceFormatSource } from './chunk-
|
|
2
|
+
import { FONT_DOWNLOADS_DEFAULT, fontDownloadLock, prepareWebfonts, effectiveFontDownloads, prefetchWebfonts, syncGoogleWebfontStylesheet, attachShareDialog, connectedServicesLabels, chartExSpaceFormatSource } from './chunk-G5CALQUW.js';
|
|
3
3
|
import { createRecoveryScheduler } from './chunk-DA57FPSN.js';
|
|
4
4
|
import { syncRibbonAddIns, createHostBackstagePages, syncHostMenuChildren, tidyMenuSeparators } from './chunk-ZTLP52FH.js';
|
|
5
5
|
export { RIBBON_ADD_IN_EVENT } from './chunk-ZTLP52FH.js';
|
|
@@ -583,6 +583,7 @@ var ViewerController = class {
|
|
|
583
583
|
#clipboard;
|
|
584
584
|
#clipboardQueued = false;
|
|
585
585
|
#beforeShow;
|
|
586
|
+
#beforeParse;
|
|
586
587
|
get state() {
|
|
587
588
|
return this.#state;
|
|
588
589
|
}
|
|
@@ -671,6 +672,14 @@ var ViewerController = class {
|
|
|
671
672
|
setBeforeShow(hook) {
|
|
672
673
|
this.#beforeShow = hook;
|
|
673
674
|
}
|
|
675
|
+
/**
|
|
676
|
+
* Run `hook` with a file's bytes just before they are parsed (the viewer starts the drawing's
|
|
677
|
+
* webfonts there, so they download during the parse). It must not keep the bytes; one that
|
|
678
|
+
* throws is ignored.
|
|
679
|
+
*/
|
|
680
|
+
setBeforeParse(hook) {
|
|
681
|
+
this.#beforeParse = hook;
|
|
682
|
+
}
|
|
674
683
|
setDocument(document2) {
|
|
675
684
|
this.#assertAlive();
|
|
676
685
|
if (document2) assertViewableDocument(document2);
|
|
@@ -879,6 +888,10 @@ var ViewerController = class {
|
|
|
879
888
|
if (bytes.byteLength > MAX_INPUT_BYTES)
|
|
880
889
|
throw new Error("This viewer accepts files up to 32 MiB.");
|
|
881
890
|
const owned = bytes instanceof Uint8Array ? Uint8Array.from(bytes) : new Uint8Array(bytes.slice(0));
|
|
891
|
+
try {
|
|
892
|
+
this.#beforeParse?.(owned);
|
|
893
|
+
} catch {
|
|
894
|
+
}
|
|
882
895
|
document2 = await this.parser(Uint8Array.from(owned));
|
|
883
896
|
if (this.#destroyed || id !== this.#loadId) return;
|
|
884
897
|
assertViewableDocument(document2);
|
|
@@ -10242,14 +10255,63 @@ var zhCNBackstage = {
|
|
|
10242
10255
|
"Could not update {provider}. Try again.": "\u65E0\u6CD5\u66F4\u65B0 {provider}\u3002\u8BF7\u91CD\u8BD5\u3002"
|
|
10243
10256
|
};
|
|
10244
10257
|
|
|
10258
|
+
// src/visio/locales/trust-center.ts
|
|
10259
|
+
var VISIO_TRUST_STRINGS = {
|
|
10260
|
+
en: {
|
|
10261
|
+
"Trust Center": "Trust Center",
|
|
10262
|
+
"Help keep your documents safe and secure.": "Help keep your documents safe and secure.",
|
|
10263
|
+
"Security settings": "Security settings",
|
|
10264
|
+
"These settings help keep the content you open safe. We recommend the defaults.": "These settings help keep the content you open safe. We recommend the defaults.",
|
|
10265
|
+
"Download fonts that are not installed or embedded (Google Fonts)": "Download fonts that are not installed or embedded (Google Fonts)",
|
|
10266
|
+
"When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.": "When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.",
|
|
10267
|
+
"This setting is managed by your organization": "This setting is managed by your organization"
|
|
10268
|
+
},
|
|
10269
|
+
de: {
|
|
10270
|
+
"Trust Center": "Trust Center",
|
|
10271
|
+
"Help keep your documents safe and secure.": "Sorgen Sie f\xFCr die Sicherheit Ihrer Dokumente.",
|
|
10272
|
+
"Security settings": "Sicherheitseinstellungen",
|
|
10273
|
+
"These settings help keep the content you open safe. We recommend the defaults.": "Diese Einstellungen tragen dazu bei, ge\xF6ffnete Inhalte sicher zu halten. Wir empfehlen die Standardwerte.",
|
|
10274
|
+
"Download fonts that are not installed or embedded (Google Fonts)": "Nicht installierte oder eingebettete Schriftarten herunterladen (Google Fonts)",
|
|
10275
|
+
"When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.": "Wenn aktiviert, ruft Ihr Browser fehlende Schriftarten von fonts.googleapis.com und fonts.gstatic.com (oder vom Schriftartserver Ihrer Organisation) ab. Wenn deaktiviert, verwendet Text installierte, eingebettete oder Ersatzschriftarten, sodass Zeilenumbr\xFCche von Visio abweichen k\xF6nnen.",
|
|
10276
|
+
"This setting is managed by your organization": "Diese Einstellung wird von Ihrer Organisation verwaltet"
|
|
10277
|
+
},
|
|
10278
|
+
es: {
|
|
10279
|
+
"Trust Center": "Centro de confianza",
|
|
10280
|
+
"Help keep your documents safe and secure.": "Ayude a mantener sus documentos seguros y protegidos.",
|
|
10281
|
+
"Security settings": "Configuraci\xF3n de seguridad",
|
|
10282
|
+
"These settings help keep the content you open safe. We recommend the defaults.": "Esta configuraci\xF3n ayuda a mantener seguro el contenido que abre. Recomendamos los valores predeterminados.",
|
|
10283
|
+
"Download fonts that are not installed or embedded (Google Fonts)": "Descargar fuentes que no est\xE1n instaladas ni incrustadas (Google Fonts)",
|
|
10284
|
+
"When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.": "Cuando est\xE1 activado, el navegador se conecta a fonts.googleapis.com y fonts.gstatic.com (o al servidor de fuentes de su organizaci\xF3n) para obtener las fuentes que faltan. Cuando est\xE1 desactivado, el texto usa fuentes instaladas, incrustadas o sustitutas, por lo que los saltos de l\xEDnea pueden diferir de Visio.",
|
|
10285
|
+
"This setting is managed by your organization": "Esta configuraci\xF3n la administra su organizaci\xF3n"
|
|
10286
|
+
},
|
|
10287
|
+
fr: {
|
|
10288
|
+
"Trust Center": "Centre de gestion de la confidentialit\xE9",
|
|
10289
|
+
"Help keep your documents safe and secure.": "Assurez la s\xE9curit\xE9 et la protection de vos documents.",
|
|
10290
|
+
"Security settings": "Param\xE8tres de s\xE9curit\xE9",
|
|
10291
|
+
"These settings help keep the content you open safe. We recommend the defaults.": "Ces param\xE8tres contribuent \xE0 la s\xE9curit\xE9 du contenu que vous ouvrez. Nous recommandons les valeurs par d\xE9faut.",
|
|
10292
|
+
"Download fonts that are not installed or embedded (Google Fonts)": "T\xE9l\xE9charger les polices non install\xE9es ni incorpor\xE9es (Google Fonts)",
|
|
10293
|
+
"When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.": "Lorsque cette option est activ\xE9e, votre navigateur contacte fonts.googleapis.com et fonts.gstatic.com (ou le serveur de polices de votre organisation) pour obtenir les polices manquantes. Lorsqu'elle est d\xE9sactiv\xE9e, le texte utilise des polices install\xE9es, incorpor\xE9es ou de substitution, et les sauts de ligne peuvent donc diff\xE9rer de Visio.",
|
|
10294
|
+
"This setting is managed by your organization": "Ce param\xE8tre est g\xE9r\xE9 par votre organisation"
|
|
10295
|
+
},
|
|
10296
|
+
"zh-CN": {
|
|
10297
|
+
"Trust Center": "\u4FE1\u4EFB\u4E2D\u5FC3",
|
|
10298
|
+
"Help keep your documents safe and secure.": "\u5E2E\u52A9\u786E\u4FDD\u60A8\u7684\u6587\u6863\u5B89\u5168\u53EF\u9760\u3002",
|
|
10299
|
+
"Security settings": "\u5B89\u5168\u8BBE\u7F6E",
|
|
10300
|
+
"These settings help keep the content you open safe. We recommend the defaults.": "\u8FD9\u4E9B\u8BBE\u7F6E\u6709\u52A9\u4E8E\u786E\u4FDD\u60A8\u6253\u5F00\u7684\u5185\u5BB9\u5B89\u5168\u3002\u6211\u4EEC\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\u3002",
|
|
10301
|
+
"Download fonts that are not installed or embedded (Google Fonts)": "\u4E0B\u8F7D\u672A\u5B89\u88C5\u6216\u672A\u5D4C\u5165\u7684\u5B57\u4F53\uFF08Google Fonts\uFF09",
|
|
10302
|
+
"When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.": "\u5F00\u542F\u65F6\uFF0C\u6D4F\u89C8\u5668\u4F1A\u8FDE\u63A5 fonts.googleapis.com \u548C fonts.gstatic.com\uFF08\u6216\u8D35\u7EC4\u7EC7\u8BBE\u7F6E\u7684\u5B57\u4F53\u670D\u52A1\u5668\uFF09\u4EE5\u83B7\u53D6\u7F3A\u5C11\u7684\u5B57\u4F53\u3002\u5173\u95ED\u65F6\uFF0C\u6587\u672C\u4F7F\u7528\u5DF2\u5B89\u88C5\u3001\u5DF2\u5D4C\u5165\u6216\u66FF\u4EE3\u5B57\u4F53\uFF0C\u56E0\u6B64\u6362\u884C\u53EF\u80FD\u4E0E Visio \u4E0D\u540C\u3002",
|
|
10303
|
+
"This setting is managed by your organization": "\u6B64\u8BBE\u7F6E\u7531\u4F60\u7684\u7EC4\u7EC7\u7BA1\u7406"
|
|
10304
|
+
}
|
|
10305
|
+
};
|
|
10306
|
+
|
|
10245
10307
|
// src/visio/ribbon-locale.ts
|
|
10246
10308
|
var VISIO_LOCALES = ["en", "de", "es", "fr", "zh-CN"];
|
|
10247
10309
|
var VISIO_RIBBON_STRINGS = {
|
|
10248
|
-
en: { ...enCommands, ...enText, ...enBackstage },
|
|
10249
|
-
de: { ...deCommands, ...deText, ...deBackstage },
|
|
10250
|
-
es: { ...esCommands, ...esText, ...esBackstage },
|
|
10251
|
-
fr: { ...frCommands, ...frText, ...frBackstage },
|
|
10252
|
-
"zh-CN": { ...zhCNCommands, ...zhCNText, ...zhCNBackstage }
|
|
10310
|
+
en: { ...enCommands, ...enText, ...enBackstage, ...VISIO_TRUST_STRINGS.en },
|
|
10311
|
+
de: { ...deCommands, ...deText, ...deBackstage, ...VISIO_TRUST_STRINGS.de },
|
|
10312
|
+
es: { ...esCommands, ...esText, ...esBackstage, ...VISIO_TRUST_STRINGS.es },
|
|
10313
|
+
fr: { ...frCommands, ...frText, ...frBackstage, ...VISIO_TRUST_STRINGS.fr },
|
|
10314
|
+
"zh-CN": { ...zhCNCommands, ...zhCNText, ...zhCNBackstage, ...VISIO_TRUST_STRINGS["zh-CN"] }
|
|
10253
10315
|
};
|
|
10254
10316
|
function normalizeVisioLocale(value) {
|
|
10255
10317
|
return normalizeLocale(value, VISIO_LOCALES, "en");
|
|
@@ -14827,6 +14889,7 @@ var DEFAULT_BEHAVIOUR = {
|
|
|
14827
14889
|
checkSpelling: true,
|
|
14828
14890
|
autoRecover: false,
|
|
14829
14891
|
autoRecoverMinutes: 10,
|
|
14892
|
+
allowFontDownloads: FONT_DOWNLOADS_DEFAULT,
|
|
14830
14893
|
...tabDefaults,
|
|
14831
14894
|
...qatDefaults
|
|
14832
14895
|
};
|
|
@@ -15717,6 +15780,7 @@ var ViewerWebfonts = class {
|
|
|
15717
15780
|
host;
|
|
15718
15781
|
prepare;
|
|
15719
15782
|
#option;
|
|
15783
|
+
#readerAllows = FONT_DOWNLOADS_DEFAULT;
|
|
15720
15784
|
linkId;
|
|
15721
15785
|
/** Bumped by every request and option change, so a superseded wait is ignored. */
|
|
15722
15786
|
#generation = 0;
|
|
@@ -15725,12 +15789,30 @@ var ViewerWebfonts = class {
|
|
|
15725
15789
|
}
|
|
15726
15790
|
set option(value) {
|
|
15727
15791
|
this.#option = value;
|
|
15792
|
+
this.#changed();
|
|
15793
|
+
}
|
|
15794
|
+
/** The reader's Trust Center choice, used only while the host left `option` unset. */
|
|
15795
|
+
get readerAllows() {
|
|
15796
|
+
return this.#readerAllows;
|
|
15797
|
+
}
|
|
15798
|
+
set readerAllows(value) {
|
|
15799
|
+
this.#readerAllows = value;
|
|
15800
|
+
this.#changed();
|
|
15801
|
+
}
|
|
15802
|
+
#changed() {
|
|
15728
15803
|
++this.#generation;
|
|
15729
15804
|
if (this.base() === null) this.remove();
|
|
15730
15805
|
}
|
|
15731
|
-
/**
|
|
15806
|
+
/**
|
|
15807
|
+
* The CSS2 base requested, or `null` when the fallback is off: the host's option when set,
|
|
15808
|
+
* else Google Fonts when the reader allowed downloads (`effectiveFontDownloads`).
|
|
15809
|
+
*/
|
|
15732
15810
|
base() {
|
|
15733
|
-
return resolveGoogleFontsCss2Base(
|
|
15811
|
+
return resolveGoogleFontsCss2Base(
|
|
15812
|
+
effectiveFontDownloads(this.#option, this.#readerAllows),
|
|
15813
|
+
null,
|
|
15814
|
+
"visio-viewer"
|
|
15815
|
+
);
|
|
15734
15816
|
}
|
|
15735
15817
|
/**
|
|
15736
15818
|
* Load the faces the drawing draws in families the reader has neither installed nor gets from
|
|
@@ -15755,6 +15837,16 @@ var ViewerWebfonts = class {
|
|
|
15755
15837
|
if (generation !== this.#generation || readiness.families.length === 0) return void 0;
|
|
15756
15838
|
return readiness;
|
|
15757
15839
|
}
|
|
15840
|
+
/**
|
|
15841
|
+
* Start downloading the faces the file declares before it is parsed (see `prefetchWebfonts`),
|
|
15842
|
+
* so they are usually ready when {@link load} waits. Never throws.
|
|
15843
|
+
*/
|
|
15844
|
+
prefetch(bytes) {
|
|
15845
|
+
try {
|
|
15846
|
+
prefetchWebfonts({ document: this.host(), linkId: this.linkId, bytes, base: this.base() });
|
|
15847
|
+
} catch {
|
|
15848
|
+
}
|
|
15849
|
+
}
|
|
15758
15850
|
/** Remove this viewer's stylesheet (option off, viewer destroyed). */
|
|
15759
15851
|
remove() {
|
|
15760
15852
|
++this.#generation;
|
|
@@ -17911,6 +18003,35 @@ var ViewerPanZoom = class {
|
|
|
17911
18003
|
}
|
|
17912
18004
|
};
|
|
17913
18005
|
|
|
18006
|
+
// src/visio/viewer-options-trust.ts
|
|
18007
|
+
var FONT_DOWNLOADS_KEY = "allowFontDownloads";
|
|
18008
|
+
var FONT_DOWNLOADS_INFO = "When on, your browser contacts fonts.googleapis.com and fonts.gstatic.com (or the font server your organisation set up) to get missing fonts. When off, text uses installed, embedded or substitute fonts, so line breaks can differ from Visio.";
|
|
18009
|
+
function visioTrustCategory(locale = "en", locked) {
|
|
18010
|
+
const t = (text2) => translateRibbonText(locale, text2);
|
|
18011
|
+
const toggle = {
|
|
18012
|
+
kind: "toggle",
|
|
18013
|
+
key: FONT_DOWNLOADS_KEY,
|
|
18014
|
+
label: t("Download fonts that are not installed or embedded (Google Fonts)"),
|
|
18015
|
+
info: t(FONT_DOWNLOADS_INFO),
|
|
18016
|
+
...locked === void 0 ? {} : { disabled: t("This setting is managed by your organization") }
|
|
18017
|
+
};
|
|
18018
|
+
return {
|
|
18019
|
+
id: "trust",
|
|
18020
|
+
label: t("Trust Center"),
|
|
18021
|
+
description: t("Help keep your documents safe and secure."),
|
|
18022
|
+
sections: [
|
|
18023
|
+
{
|
|
18024
|
+
id: "trustSettings",
|
|
18025
|
+
title: t("Security settings"),
|
|
18026
|
+
description: t(
|
|
18027
|
+
"These settings help keep the content you open safe. We recommend the defaults."
|
|
18028
|
+
),
|
|
18029
|
+
controls: [toggle]
|
|
18030
|
+
}
|
|
18031
|
+
]
|
|
18032
|
+
};
|
|
18033
|
+
}
|
|
18034
|
+
|
|
17914
18035
|
// src/visio/viewer-options-categories.ts
|
|
17915
18036
|
var visio = { product: "Visio", t: (text2) => text2 };
|
|
17916
18037
|
var disabled = (reason) => ({ disabled: `Not available. ${reason}` });
|
|
@@ -18131,8 +18252,13 @@ var VISIO_OPTION_CATEGORIES = [
|
|
|
18131
18252
|
]
|
|
18132
18253
|
},
|
|
18133
18254
|
unavailableCategory(visio, "addins"),
|
|
18134
|
-
|
|
18255
|
+
visioTrustCategory()
|
|
18135
18256
|
];
|
|
18257
|
+
function visioOptionCategories(locale, fontDownloadsLocked) {
|
|
18258
|
+
return VISIO_OPTION_CATEGORIES.map(
|
|
18259
|
+
(category) => category.id === "trust" ? visioTrustCategory(locale, fontDownloadsLocked) : category
|
|
18260
|
+
);
|
|
18261
|
+
}
|
|
18136
18262
|
|
|
18137
18263
|
// src/visio/viewer-options.ts
|
|
18138
18264
|
var THEME_KEY = "ooxml-visio-office-theme";
|
|
@@ -18152,9 +18278,11 @@ function writeStatusBarTheme(theme) {
|
|
|
18152
18278
|
}
|
|
18153
18279
|
}
|
|
18154
18280
|
var isOfficeThemeChoice = (value) => value === "dark" || isStatusBarTheme(value);
|
|
18155
|
-
function profileValues(profile, officeTheme, behaviour) {
|
|
18281
|
+
function profileValues(profile, officeTheme, behaviour, fontDownloadsLocked) {
|
|
18156
18282
|
return {
|
|
18157
18283
|
...behaviour,
|
|
18284
|
+
// A host decision shows read-only in place of the reader's own choice.
|
|
18285
|
+
...fontDownloadsLocked === void 0 ? {} : { [FONT_DOWNLOADS_KEY]: fontDownloadsLocked },
|
|
18158
18286
|
officeTheme,
|
|
18159
18287
|
userName: profile.displayName,
|
|
18160
18288
|
userInitials: profile.initial ?? ""
|
|
@@ -18193,14 +18321,27 @@ var ViewerProfile = class {
|
|
|
18193
18321
|
onBehaviour;
|
|
18194
18322
|
#profile = readOfficeProfile();
|
|
18195
18323
|
#behaviour = readBehaviour();
|
|
18324
|
+
#locale = "en";
|
|
18325
|
+
#fontDownloadsLocked;
|
|
18196
18326
|
#dialog;
|
|
18197
18327
|
#account;
|
|
18198
18328
|
get profile() {
|
|
18199
18329
|
return { ...this.#profile };
|
|
18200
18330
|
}
|
|
18331
|
+
/**
|
|
18332
|
+
* The Trust Center's language and the host's font download decision (`fontDownloadLock`):
|
|
18333
|
+
* `undefined` leaves the toggle to the reader, a boolean shows it read-only with that value.
|
|
18334
|
+
*/
|
|
18335
|
+
setTrust(locale, fontDownloadsLocked) {
|
|
18336
|
+
if (locale === this.#locale && fontDownloadsLocked === this.#fontDownloadsLocked) return;
|
|
18337
|
+
this.#locale = locale;
|
|
18338
|
+
this.#fontDownloadsLocked = fontDownloadsLocked;
|
|
18339
|
+
this.#dialog.categories = visioOptionCategories(locale, fontDownloadsLocked);
|
|
18340
|
+
this.#sync();
|
|
18341
|
+
}
|
|
18201
18342
|
/** Open Visio Options, on General as Visio does. */
|
|
18202
18343
|
showOptions(category = "general") {
|
|
18203
|
-
this.#dialog.values =
|
|
18344
|
+
this.#dialog.values = this.#values();
|
|
18204
18345
|
this.#dialog.category = category;
|
|
18205
18346
|
this.#dialog.show();
|
|
18206
18347
|
}
|
|
@@ -18216,7 +18357,10 @@ var ViewerProfile = class {
|
|
|
18216
18357
|
this.theme.set(values.officeTheme);
|
|
18217
18358
|
if (values.officeTheme !== "dark") writeStatusBarTheme(values.officeTheme);
|
|
18218
18359
|
}
|
|
18219
|
-
const next = mergeBehaviour(
|
|
18360
|
+
const next = mergeBehaviour(
|
|
18361
|
+
this.#behaviour,
|
|
18362
|
+
this.#fontDownloadsLocked === void 0 ? values : { ...values, [FONT_DOWNLOADS_KEY]: this.#behaviour.allowFontDownloads }
|
|
18363
|
+
);
|
|
18220
18364
|
if (behaviourChanged(next, this.#behaviour)) {
|
|
18221
18365
|
this.#behaviour = next;
|
|
18222
18366
|
writeBehaviour(next);
|
|
@@ -18246,7 +18390,15 @@ var ViewerProfile = class {
|
|
|
18246
18390
|
}
|
|
18247
18391
|
#sync() {
|
|
18248
18392
|
if (this.#account) this.#account.profile = this.#profile;
|
|
18249
|
-
this.#dialog.values =
|
|
18393
|
+
this.#dialog.values = this.#values();
|
|
18394
|
+
}
|
|
18395
|
+
#values() {
|
|
18396
|
+
return profileValues(
|
|
18397
|
+
this.#profile,
|
|
18398
|
+
this.theme.get(),
|
|
18399
|
+
this.#behaviour,
|
|
18400
|
+
this.#fontDownloadsLocked
|
|
18401
|
+
);
|
|
18250
18402
|
}
|
|
18251
18403
|
};
|
|
18252
18404
|
|
|
@@ -30948,9 +31100,11 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
30948
31100
|
* Webfont fallback for fonts the drawing uses that the reader has not installed (Calibri,
|
|
30949
31101
|
* Cambria, Aptos and other Office fonts load as their metric-compatible clones Carlito,
|
|
30950
31102
|
* Caladea and so on; other catalogue families load as themselves), so text wraps as saved.
|
|
30951
|
-
*
|
|
30952
|
-
* (
|
|
30953
|
-
*
|
|
31103
|
+
* This is the host's decision: unset leaves it to the reader's File > Options > Trust Center
|
|
31104
|
+
* toggle (off until the reader turns it on, then Google Fonts); a value set here shows that
|
|
31105
|
+
* toggle read-only. `false`: off, no request is made. `{ baseUrl }`: CSS2 requests go to that
|
|
31106
|
+
* mirror (an absolute http(s) URL without credentials, query or fragment; anything else warns
|
|
31107
|
+
* and stays off), for example `{ baseUrl: 'https://fonts.googleapis.com/css2' }` for Google
|
|
30954
31108
|
* itself. Only public catalogue family names are sent, never text. Read when a drawing loads:
|
|
30955
31109
|
* the first show waits briefly (150 ms, with the loading state up) for the faces, and a face that
|
|
30956
31110
|
* arrives later redraws the page. Setting it applies to the open drawing at once.
|
|
@@ -30960,6 +31114,7 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
30960
31114
|
}
|
|
30961
31115
|
set googleFonts(value) {
|
|
30962
31116
|
this.#webfonts.option = value;
|
|
31117
|
+
this.#syncTrust();
|
|
30963
31118
|
void this.#refreshWebfonts();
|
|
30964
31119
|
}
|
|
30965
31120
|
/** What `collaboration-change` last reported. */
|
|
@@ -31277,6 +31432,7 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
31277
31432
|
})
|
|
31278
31433
|
});
|
|
31279
31434
|
this.#disposeInputs = this.#wireInputs();
|
|
31435
|
+
this.controller.setBeforeParse((bytes) => this.#webfonts.prefetch(bytes));
|
|
31280
31436
|
this.controller.setBeforeShow(
|
|
31281
31437
|
(document2) => this.#webfonts.base() === null ? void 0 : this.#webfonts.load(document2)
|
|
31282
31438
|
);
|
|
@@ -31595,9 +31751,20 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
31595
31751
|
attributeChangedCallback() {
|
|
31596
31752
|
this.#localizeRibbon();
|
|
31597
31753
|
}
|
|
31754
|
+
/** The Trust Center in the display language, locked while the host set `googleFonts`. */
|
|
31755
|
+
#syncTrust() {
|
|
31756
|
+
this.#profile?.setTrust(
|
|
31757
|
+
normalizeVisioLocale(this.#locale()),
|
|
31758
|
+
fontDownloadLock(this.#webfonts.option)
|
|
31759
|
+
);
|
|
31760
|
+
}
|
|
31598
31761
|
/** Put the File > Options behaviour settings to work on the pieces they govern. */
|
|
31599
31762
|
#applyBehaviour() {
|
|
31600
31763
|
const behaviour = this.#behaviour;
|
|
31764
|
+
if (this.#webfonts.readerAllows !== behaviour.allowFontDownloads) {
|
|
31765
|
+
this.#webfonts.readerAllows = behaviour.allowFontDownloads;
|
|
31766
|
+
void this.#refreshWebfonts();
|
|
31767
|
+
}
|
|
31601
31768
|
this.controller.undoLevels = behaviour.undoLevels;
|
|
31602
31769
|
this.#edit.spellcheck = behaviour.checkSpelling;
|
|
31603
31770
|
this.#edit.autoSize = behaviour.autoSizeText;
|
|
@@ -31633,6 +31800,7 @@ var VisioViewerElement = class extends BaseElement {
|
|
|
31633
31800
|
restoreScreenTips(this.#toolbar);
|
|
31634
31801
|
localizeRibbon(this.#toolbar, this.#locale());
|
|
31635
31802
|
this.#backstage?.localize();
|
|
31803
|
+
this.#syncTrust();
|
|
31636
31804
|
this.#shareUi.relocalize();
|
|
31637
31805
|
applyScreenTips(this.#toolbar, this.#behaviour.screenTips);
|
|
31638
31806
|
this.#overflow.refit();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Excel's File > Options > Trust Center: PowerPoint's Security settings section with the one
|
|
3
|
+
* setting Excel has, "Download fonts that are not installed or embedded". When the host set
|
|
4
|
+
* `googleFonts` the toggle is read-only and shows the host's value.
|
|
5
|
+
*/
|
|
6
|
+
import type { OfficeOptionCategory, OptionsContext } from '../../controls.js';
|
|
7
|
+
/** The option key of the font download toggle. */
|
|
8
|
+
export declare const FONT_DOWNLOADS_OPTION = "allowFontDownloads";
|
|
9
|
+
export declare function trustCategory(context: OptionsContext, locked: boolean): OfficeOptionCategory;
|
|
@@ -20,6 +20,10 @@ export interface EditorOptions {
|
|
|
20
20
|
author: string;
|
|
21
21
|
calculation: CalculationMode;
|
|
22
22
|
iteration: IterationSettings;
|
|
23
|
+
/** Trust Center: download missing fonts (the host's locked value, or the reader's choice). */
|
|
24
|
+
allowFontDownloads?: boolean;
|
|
25
|
+
/** The host set `googleFonts`, so the font download toggle is read-only. */
|
|
26
|
+
fontDownloadsLocked?: boolean;
|
|
23
27
|
}
|
|
24
28
|
/** What the File view needs from the editor; every value is read when a page opens. */
|
|
25
29
|
export interface BackstageHost {
|
|
@@ -33,13 +33,15 @@ export declare class XlsxEditorApi extends HTMLElementBase {
|
|
|
33
33
|
set storage(value: DocumentStorage | null | undefined);
|
|
34
34
|
/**
|
|
35
35
|
* Webfont fallback for workbook fonts the reader has neither installed nor embedded. Unset (the
|
|
36
|
-
* default)
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
36
|
+
* default): the reader decides with File > Options > Trust Center > "Download fonts that are
|
|
37
|
+
* not installed or embedded", which is off until they turn it on. Set, it is the host's
|
|
38
|
+
* decision and that toggle is shown read-only: `false` is off (no request leaves the page;
|
|
39
|
+
* text uses installed or substitute fonts), `{ baseUrl }` requests the fonts the workbook uses
|
|
40
|
+
* that the bundled Google Fonts catalogue serves (or their metric-compatible clone, such as
|
|
41
|
+
* Carlito for Calibri) from that CSS2 endpoint (`https://fonts.googleapis.com/css2` for Google,
|
|
42
|
+
* or a self-hosted mirror) with one `<link>` in the document head, then the font files it
|
|
43
|
+
* names. Only public catalogue family names are sent, never cell text; an invalid `baseUrl`
|
|
44
|
+
* warns and stays off. Changing it applies to the open workbook.
|
|
43
45
|
*/
|
|
44
46
|
get googleFonts(): GoogleFontsOption | undefined;
|
|
45
47
|
set googleFonts(value: GoogleFontsOption | null | undefined);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The localStorage key of the choice (`"true"` or `"false"`). */
|
|
2
|
+
export declare const FONT_DOWNLOADS_KEY = "ooxml.xlsx.allowFontDownloads";
|
|
3
|
+
/** The reader's choice: the stored value, else the session's, else the default (off). */
|
|
4
|
+
export declare function readerAllowsFontDownloads(): boolean;
|
|
5
|
+
/** Records the reader's choice. */
|
|
6
|
+
export declare function setReaderAllowsFontDownloads(allow: boolean): void;
|
|
7
|
+
/** Forgets the choice (tests, and a reset). */
|
|
8
|
+
export declare function clearReaderFontDownloads(): void;
|
package/dist/xlsx/webfonts.d.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* The webfont fallback of `<xlsx-editor>` (the `googleFonts` property): for workbook fonts the
|
|
3
3
|
* reader has neither installed nor embedded, one managed `<link>` loads the face the bundled
|
|
4
4
|
* Google Fonts catalogue serves (or its verified metric-compatible clone, which every workbook
|
|
5
|
-
* font stack lists right after the font, see `workbookFontFamily`).
|
|
5
|
+
* font stack lists right after the font, see `workbookFontFamily`). Who decides is the shared
|
|
6
|
+
* rule (`fonts/font-download-policy`): the host's value when it set one, otherwise the reader's
|
|
7
|
+
* Trust Center choice (`font-downloads.ts`), which is off until the reader turns it on.
|
|
6
8
|
*
|
|
7
9
|
* A file opened with `load()` waits (bounded, see `prepareWebfonts`) before it is shown, while
|
|
8
10
|
* `loading` is true; a workbook assigned directly is shown at once. Either way, once faces arrive
|
|
@@ -30,8 +32,26 @@ export declare class XlsxWebfonts {
|
|
|
30
32
|
/** This editor's managed `<link>` id (one per editor, so two editors never fight over it). */
|
|
31
33
|
readonly linkId: string;
|
|
32
34
|
constructor(owner: XlsxWebfontsHost);
|
|
35
|
+
/** The option the loader uses: the host's value when set, else the reader's choice. */
|
|
36
|
+
effective(): GoogleFontsOption;
|
|
37
|
+
/** The value the Trust Center toggle shows read-only, or `undefined` when the reader decides. */
|
|
38
|
+
lock(): boolean | undefined;
|
|
39
|
+
/** Whether the Trust Center toggle is on: the host's locked value, else the reader's choice. */
|
|
40
|
+
allowed(): boolean;
|
|
41
|
+
/** The reader's Trust Center choice: stored, and applied to the open workbook at once. */
|
|
42
|
+
setReaderAllows(allow: boolean): void;
|
|
33
43
|
/** The CSS2 base the option requests, or `null` when the fallback is off (the default). */
|
|
34
44
|
base(): string | null;
|
|
45
|
+
/**
|
|
46
|
+
* After the host value or the reader's choice changed: on, prepare the open workbook's faces
|
|
47
|
+
* and measure again; off, remove the stylesheets and repaint with installed or substitute fonts.
|
|
48
|
+
*/
|
|
49
|
+
apply(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Start downloading the faces the file declares before it is parsed (see `prefetchWebfonts`),
|
|
52
|
+
* so they are usually ready when {@link prepare} waits. Never throws.
|
|
53
|
+
*/
|
|
54
|
+
prefetch(bytes: Uint8Array | ArrayBuffer): void;
|
|
35
55
|
/**
|
|
36
56
|
* Injects the stylesheet for the workbook's missing fonts and waits (bounded) for their faces.
|
|
37
57
|
* Off, it removes this editor's link. Never rejects; one wait per workbook and base.
|