Interface: ISheetClipboardService
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:104
Properties
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:120
Parameters
Parameter | Type |
---|---|
hook | ISheetClipboardHook |
Returns
copy()
copy(): Promise<boolean>
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:111
Returns
Promise
<boolean
>
copyContentCache()
copyContentCache(): CopyContentCache
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:119
Returns
CopyContentCache
cut()
cut(): Promise<boolean>
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:112
Returns
Promise
<boolean
>
disposePasteOptionsCache()
disposePasteOptionsCache(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:116
Returns
void
generateCopyContent()
generateCopyContent(
workbookId,
worksheetId,
range): Nullable<ICopyContent>
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:118
Parameters
Parameter | Type |
---|---|
workbookId | string |
worksheetId | string |
range | IRange |
Returns
Nullable
<ICopyContent
>
getClipboardHooks()
getClipboardHooks(): ISheetClipboardHook[]
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:121
Returns
legacyPaste()
legacyPaste(html?, text?): Promise<boolean>
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:114
Parameters
Parameter | Type |
---|---|
html ? | string |
text ? | string |
Returns
Promise
<boolean
>
paste()
paste(item, pasteType?): Promise<boolean>
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:113
Parameters
Parameter | Type |
---|---|
item | ClipboardItem |
pasteType ? | string |
Returns
Promise
<boolean
>
removeMarkSelection()
removeMarkSelection(): void
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:123
Returns
void
rePasteWithPasteType()
rePasteWithPasteType(type): boolean
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:115
Parameters
Parameter | Type |
---|---|
type | IPasteHookKeyType |
Returns
boolean
updatePasteOptionsCache()
updatePasteOptionsCache(cache): void
Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:109
Parameters
Parameter | Type |
---|---|
cache | null | IPasteOptionCache |
Returns
void