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

namedtuple ooodev.format.inner.modify.calc.page.sheet.printing.PrintProps(headers, grid, comments, obj_img, charts, draw_obj, formula, zero_val)[source]

Bases: NamedTuple

Inner Properties

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

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

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

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

  5.  charts (str) – Alias for field number 4

  6.  draw_obj (str) – Alias for field number 5

  7.  formula (str) – Alias for field number 6

  8.  zero_val (str) – Alias for field number 7

class ooodev.format.inner.modify.calc.page.sheet.printing.Printing(*, header=None, grid=None, comment=None, obj_img=None, chart=None, drawing=None, formula=None, zero_value=None, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Bases: CellStyleBase

Page Style Order.

New in version 0.9.0.

__init__(*, header=None, grid=None, comment=None, obj_img=None, chart=None, drawing=None, formula=None, zero_value=None, style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles')[source]

Constructor

Parameters:
  • header (bool, optional) – Specifies if headers are printed.

  • grid (bool, optional) – Specifies if grids are printed.

  • comment (bool, optional) – Specifies if comments are printed.

  • obj_img (bool, optional) – Specifies if objects and images are printed.

  • chart (bool, optional) – Specifies if charts are printed.

  • drawing (bool, optional) – Specifies if drawings are printed.

  • formula (bool, optional) – Specifies if formulas are printed.

  • zero_value (bool, optional) – Specifies if zero values are printed.

  • 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:

Printing instance from document properties.

Return type:

Printing

property prop_chart: bool | None

Gets/Sets Print Charts.

Return type:

bool | None

property prop_comment: bool | None

Gets/Sets Print Comments.

Return type:

bool | None

property prop_drawing: bool | None

Gets/Sets Print Drawing.

Return type:

bool | None

property prop_formula: bool | None

Gets/Sets Print Formulas.

Return type:

bool | None

property prop_grid: bool | None

Gets/Sets Print Grid.

Return type:

bool | None

property prop_header: bool | None

Gets/Sets Print Headers

Return type:

bool | None

property prop_obj_img: bool | None

Gets/Sets Print Object/images.

Return type:

bool | None

property prop_zero_value: bool | None

Gets/Sets Print Zero Values.

Return type:

bool | None