Module doc_factory
- ooodev.utils.factory.doc_factory.doc_factory(doc, lo_inst)[source]
Gets an instance of a document.
- Parameters:
doc (Any) – Office document such as Writer, Calc, Draw, Impress.
lo_inst (LoInst) – Lo Instance. Can be
Lo.current_lo
.
- Raises:
ValueError – If no identifier found.
ValueError – If unknown identifier.
- Returns:
A document instance. Such as
ooodev.draw.DrawDoc
orooodev.calc.CalcDoc
.- Return type: