Class TableItemProcessor

New in version 0.6.6.

class ooodev.formatters.table_item_processor.TableItemProcessor[source]

Process FormatterTableItem Instances

Warning

This class is intended as an internal class.

classmethod process_col(itm, idx_row, idx_col, idx_col_last, value)[source]

Process Col

Parameters:
  • itm (FormatterTableItem) – Current Instance

  • idx_row (int) – Current row index

  • idx_col (int) – Current col index

  • idx_col_last (int) – Index of last column

  • value (Any) – Value to format

Returns:

(True, str) if conditions are met; Otherwise, (False, Any)

Return type:

Tuple[bool, Any]

classmethod process_row(itm, idx_row, idx_col, idx_col_last, value)[source]

Process row

Parameters:
  • itm (FormatterTableItem) – Current Instance

  • idx_row (int) – Current row index

  • idx_col (int) – Current col index

  • idx_col_last (int) – Index of last column

  • value (Any) – Value to format

Returns:

(True, str) if conditions are met; Otherwise, (False, Any)

Return type:

Tuple[bool, Any]