Class: DocAutoFormatService
Defined in: submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:83
service for auto-formatting, handle shortcut like Space
or Tab
.
Extends
Constructors
new DocAutoFormatService()
new DocAutoFormatService(_univerInstanceService, _textSelectionManagerService): DocAutoFormatService
Defined in: submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:85
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_textSelectionManagerService | DocSelectionManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
onAutoFormat()
onAutoFormat(id, params): ICommandInfo[]
Defined in: submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:112
Parameters
Parameter | Type |
---|---|
id | string |
params | Nullable <object > |
Returns
registerAutoFormat()
registerAutoFormat(match): IDisposable
Defined in: submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:92
Parameters
Parameter | Type |
---|---|
match | IAutoFormat |