ooodev.adapter.io.temp_file_partial module

class ooodev.adapter.io.temp_file_partial.TempFilePartial(component, interface=com.sun.star.io.XTempFile)[source]

Bases: StreamPartial, SeekablePartial

Partial Class XTempFile.

Parameters:
  • component (XTempFile) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.io.XTempFile)[source]

Constructor

Parameters:
  • component (XTempFile) – UNO Component that implements com.sun.star.io.XTempFile interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XTempFile.

Return type:

None

property remove_file: bool

This attribute controls whether the file will be automatically removed on object destruction.

Return type:

bool

property resource_name: str

This attribute specifies the temp file name.

Return type:

str

property uri: str

This attribute specifies the URL of the temp file.

Return type:

str