@univerjssheets-uiindexinterfacesIsheetclipboardservice

@univerjs/sheets-ui v0.5.4


Interface: ISheetClipboardService

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:104

Properties

PropertyTypeDefined in
pasteOptionsCache$Observable<null | IPasteOptionCache>submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:108
setShowMenu(show: boolean) => voidsubmodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:106
showMenu$Observable<boolean>submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:105

Methods

addClipboardHook()

addClipboardHook(hook): IDisposable

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:120

Parameters

ParameterType
hookISheetClipboardHook

Returns

IDisposable


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

ParameterType
workbookIdstring
worksheetIdstring
rangeIRange

Returns

Nullable<ICopyContent>


getClipboardHooks()

getClipboardHooks(): ISheetClipboardHook[]

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:121

Returns

ISheetClipboardHook[]


legacyPaste()

legacyPaste(html?, text?): Promise<boolean>

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:114

Parameters

ParameterType
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

ParameterType
itemClipboardItem
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

ParameterType
typeIPasteHookKeyType

Returns

boolean


updatePasteOptionsCache()

updatePasteOptionsCache(cache): void

Defined in: submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:109

Parameters

ParameterType
cachenull | IPasteOptionCache

Returns

void