ooodev.adapter.frame.transient_documents_document_content_factory_partial module

class ooodev.adapter.frame.transient_documents_document_content_factory_partial.TransientDocumentsDocumentContentFactoryPartial(component, interface=com.sun.star.frame.XTransientDocumentsDocumentContentFactory)[source]

Bases: object

Partial class for XTransientDocumentsDocumentContentFactory.

Parameters:
  • component (XTransientDocumentsDocumentContentFactory) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.frame.XTransientDocumentsDocumentContentFactory)[source]

Constructor

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

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

Return type:

None

create_document_content(model)[source]

Creates a com.sun.star.ucb.TransientDocumentsDocumentContent based on a given com.sun.star.document.OfficeDocument.

Raises:

com.sun.star.lang.IllegalArgumentExceptionIllegalArgumentException

Return type:

XContent

Parameters:

model (XModel) –