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:
factor (
str
) – Alias for field number 0scale (
str
) – Alias for field number 1page_x (
str
) – Alias for field number 2page_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.
See also
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
and400
. Default is100
.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
See also
- 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:
- property prop_factor: int
Gets/Sets Scaling factor. Value from
10
to400
.- Return type:
int