@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Class: SheetClipboardService
Extends
Implements
Constructors
new SheetClipboardService()
new SheetClipboardService(
_logService,
_univerInstanceService,
_selectionManagerService,
_clipboardInterfaceService,
_undoRedoService,
_commandService,
_markSelectionService,
_notificationService,
_platformService,
_renderManagerService,
_themeService,
_localeService,
_errorService,
_injector): SheetClipboardService
Parameters
Parameter | Type |
---|---|
_logService | ILogService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
_clipboardInterfaceService | IClipboardInterfaceService |
_undoRedoService | IUndoRedoService |
_commandService | ICommandService |
_markSelectionService | IMarkSelectionService |
_notificationService | INotificationService |
_platformService | IPlatformService |
_renderManagerService | IRenderManagerService |
_themeService | ThemeService |
_localeService | LocaleService |
_errorService | ErrorService |
_injector | Injector |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:124
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
clipboardHooks$ | readonly | Observable <ISheetClipboardHook []> | undefined | - | submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:116 |
Methods
addClipboardHook()
addClipboardHook(hook): IDisposable
Parameters
Parameter | Type |
---|---|
hook | ISheetClipboardHook |
Returns
Implementation of
ISheetClipboardService
.addClipboardHook
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:257
copy()
copy(copyType): Promise<boolean>
Parameters
Parameter | Type | Default value |
---|---|---|
copyType | COPY_TYPE | COPY_TYPE.COPY |
Returns
Promise
<boolean
>
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:163
copyContentCache()
copyContentCache(): CopyContentCache
Returns
CopyContentCache
Implementation of
ISheetClipboardService
.copyContentCache
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:151
cut()
cut(): Promise<boolean>
Returns
Promise
<boolean
>
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:204
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
generateCopyContent()
generateCopyContent(
workbookId,
worksheetId,
range): Nullable<ICopyContent>
Parameters
Parameter | Type |
---|---|
workbookId | string |
worksheetId | string |
range | IRange |
Returns
Nullable
<ICopyContent
>
Implementation of
ISheetClipboardService
.generateCopyContent
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:155
getClipboardHooks()
getClipboardHooks(): ISheetClipboardHook[]
Returns
Implementation of
ISheetClipboardService
.getClipboardHooks
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:282
legacyPaste()
legacyPaste(html?, text?): Promise<boolean>
Parameters
Parameter | Type |
---|---|
html ? | string |
text ? | string |
Returns
Promise
<boolean
>
Implementation of
ISheetClipboardService
.legacyPaste
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:242
paste()
paste(item, pasteType): Promise<boolean>
Parameters
Parameter | Type | Default value |
---|---|---|
item | ClipboardItem | undefined |
pasteType | string | PREDEFINED_HOOK_NAME.DEFAULT_PASTE |
Returns
Promise
<boolean
>
Implementation of
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:208
removeMarkSelection()
removeMarkSelection(): void
Returns
void
Implementation of
ISheetClipboardService
.removeMarkSelection
Defined in
submodules/univer/packages/sheets-ui/src/services/clipboard/clipboard.service.ts:1072