Class: RangeProtectionRefRangeService
Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:62
Extends
Constructors
new RangeProtectionRefRangeService()
new RangeProtectionRefRangeService(
_selectionProtectionRuleModel,
_univerInstanceService,
_commandService,
_refRangeService,
_selectionProtectionRenderModel,
_rangeProtectionCache,
_sheetInterceptorService,
_rangeProtectionRuleModel): RangeProtectionRefRangeService
Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:65
Parameters
Parameter | Type |
---|---|
_selectionProtectionRuleModel | RangeProtectionRuleModel |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_refRangeService | RefRangeService |
_selectionProtectionRenderModel | RangeProtectionRenderModel |
_rangeProtectionCache | RangeProtectionCache |
_sheetInterceptorService | SheetInterceptorService |
_rangeProtectionRuleModel | RangeProtectionRuleModel |
Returns
RangeProtectionRefRangeService
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 |
disposableCollection | public | DisposableCollection | undefined | - | submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:63 |
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
refRangeHandle()
refRangeHandle(
config,
unitId,
subUnitId):
| {
redos: {
id: string;
params: ISetRangeProtectionMutationParams;
}[];
undos: {
id: string;
params: ISetRangeProtectionMutationParams;
}[];
}
| {
redos: IMutationInfo<
| IDeleteRangeProtectionMutationParams
| IAddRangeProtectionMutationParams
| ISetRangeProtectionMutationParams>[];
undos: IMutationInfo<
| IDeleteRangeProtectionMutationParams
| IAddRangeProtectionMutationParams
| ISetRangeProtectionMutationParams>[];
}
Defined in: submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:139
Parameters
Parameter | Type |
---|---|
config | EffectRefRangeParams |
unitId | string |
subUnitId | string |
Returns
| {
redos
: {
id
: string
;
params
: ISetRangeProtectionMutationParams
;
}[];
undos
: {
id
: string
;
params
: ISetRangeProtectionMutationParams
;
}[];
}
| {
redos
: IMutationInfo
<
| IDeleteRangeProtectionMutationParams
| IAddRangeProtectionMutationParams
| ISetRangeProtectionMutationParams
>[];
undos
: IMutationInfo
<
| IDeleteRangeProtectionMutationParams
| IAddRangeProtectionMutationParams
| ISetRangeProtectionMutationParams
>[];
}