@univerjs-pro/sheets-print v0.5.0-beta.1Docs


Class: SheetPrintManagerService

Implements

Constructors

new SheetPrintManagerService()

new SheetPrintManagerService(
   _univerInstanceService, 
   _sheetsSelectionsSrv, 
   _sheetPrintInterceptorService, 
   _renderManagerService): SheetPrintManagerService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_sheetsSelectionsSrvSheetsSelectionsService
_sheetPrintInterceptorServiceSheetPrintInterceptorService
_renderManagerServiceIRenderManagerService

Returns

SheetPrintManagerService

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:121

Properties

PropertyModifierTypeDefined in
layoutConfig$readonlyObservable<ISheetPrintLayoutConfig>packages/sheets-print/src/services/sheet-print-manager.service.ts:115
layoutInfos$readonlyObservable<ISheetPrintLayoutInfo[]>packages/sheets-print/src/services/sheet-print-manager.service.ts:119
renderConfig$readonlyObservable<ISheetPrintRenderConfig>packages/sheets-print/src/services/sheet-print-manager.service.ts:117

Accessors

layoutConfig

Get Signature

get layoutConfig(): ISheetPrintLayoutConfig
Returns

ISheetPrintLayoutConfig

Implementation of

ISheetPrintManagerService.layoutConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:136


layoutInfos

Get Signature

get layoutInfos(): ISheetPrintLayoutInfo[]
Returns

ISheetPrintLayoutInfo[]

Implementation of

ISheetPrintManagerService.layoutInfos

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:128


paperMargin

Get Signature

get paperMargin(): IPrintMargin
Returns

IPrintMargin

Implementation of

ISheetPrintManagerService.paperMargin

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:155


paperSize

Get Signature

get paperSize(): {
  h: number;
  w: number;
}
Returns
{
  h: number;
  w: number;
}
NameTypeDefined in
hnumberpackages/sheets-print/src/common/types.ts:42
wnumberpackages/sheets-print/src/common/types.ts:42

Implementation of

ISheetPrintManagerService.paperSize

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:140


renderConfig

Get Signature

get renderConfig(): ISheetPrintRenderConfig
Returns

ISheetPrintRenderConfig

Implementation of

ISheetPrintManagerService.renderConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:132

Methods

reLayout()

reLayout(): void

Returns

void

Implementation of

ISheetPrintManagerService.reLayout

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:188


replaceLayoutConfig()

replaceLayoutConfig(config): void

Parameters

ParameterType
configISheetPrintLayoutConfig

Returns

void

Implementation of

ISheetPrintManagerService.replaceLayoutConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:169


replaceRenderConfig()

replaceRenderConfig(config): void

Parameters

ParameterType
configISheetPrintRenderConfig

Returns

void

Implementation of

ISheetPrintManagerService.replaceRenderConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:183


reset()

reset(): void

Returns

void

Implementation of

ISheetPrintManagerService.reset

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:193


updateLayoutConfig()

updateLayoutConfig(config): void

Parameters

ParameterType
configPartial<ISheetPrintLayoutConfig>

Returns

void

Implementation of

ISheetPrintManagerService.updateLayoutConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:160


updateRenderConfig()

updateRenderConfig(config): void

Parameters

ParameterType
configPartial<ISheetPrintRenderConfig>

Returns

void

Implementation of

ISheetPrintManagerService.updateRenderConfig

Defined in

packages/sheets-print/src/services/sheet-print-manager.service.ts:175