ooodev.adapter.frame.transient_documents_document_content_factory_comp module
- class ooodev.adapter.frame.transient_documents_document_content_factory_comp.TransientDocumentsDocumentContentFactoryComp(component)[source]
Bases:
ComponentBase
,TransientDocumentsDocumentContentFactoryPartial
Class for managing TransientDocumentsDocumentContentFactory Component.
- Parameters:
component (XTransientDocumentsDocumentContentFactory) –
- __init__(component)[source]
Constructor
- Parameters:
component (XTransientDocumentsDocumentContentFactory) – UNO Component that implements
com.sun.star.frame.XTransientDocumentsDocumentContentFactory
service.- Return type:
None
- create_document_content(model)[source]
Creates a
TransientDocumentsDocumentContentComp
based on a givencom.sun.star.document.OfficeDocument
.- Raises:
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Returns:
The created document content.
- Return type:
- Parameters:
model (XModel) –
- classmethod from_lo(lo_inst=None)[source]
Get the singleton instance from the Lo.
- Parameters:
lo_inst (LoInst, optional) – LoInst, Defaults to
Lo.current_lo
.- Returns:
The instance.
- Return type:
- property component: com.sun.star.frame.TransientDocumentsDocumentContentFactory
TransientDocumentsDocumentContentFactory Component
- Return type:
TransientDocumentsDocumentContentFactory