ooodev.format.inner.modify.calc.page.sheet.scale_reduce_enlarge module

namedtuple ooodev.format.inner.modify.calc.page.sheet.scale_reduce_enlarge.ScaleProps(factor, scale, page_x, page_y)[source]

Bases: NamedTuple

ScaleProps(factor, scale, page_x, page_y)

Fields:
  1.  factor (str) – Alias for field number 0

  2.  scale (str) – Alias for field number 1

  3.  page_x (str) – Alias for field number 2

  4.  page_y (str) – Alias for field number 3

class ooodev.format.inner.modify.calc.page.sheet.scale_reduce_enlarge.ScaleReduceEnlarge(*, factor=100, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Bases: CellStyleBase

Page Style Scale Reduce or Enlarge.

New in version 0.9.0.

__init__(*, factor=100, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Constructor

Parameters:
  • factor (int) – Specifies scale factor between 10 and 400. Default is 100.

  • style_name (CalcStylePageKind, str, optional) – Specifies the Page Style that instance applies to. Default is Default Page Style.

  • style_family (str, optional) – Style family. Default PageStyles.

Return type:

None

classmethod from_style(doc, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Gets instance from Document.

Parameters:
  • doc (object) – UNO Document Object.

  • style_name (CalcStylePageKind, str, optional) – Specifies the Paragraph Style that instance applies to. Default is Default Paragraph Style.

  • style_family (str, optional) – Style family. Default PageStyles.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Order instance from document properties.

Return type:

Order

property prop_factor: int

Gets/Sets Scaling factor. Value from 10 to 400.

Return type:

int