Hi,

On Thu, Mar 06, 2025 at 04:17:16PM +0200, Noel Grandin <noelgran...@gmail.com> 
wrote:
> > The hope is that SCFunctionAccess::callFunction (from 
> > core/sc/source/ui/unoobj/funcuno.cxx) can do that for me.
> > To be able to use that from Python, i could wrap it using boost::python
> > or swig. Does anyone have experience with wrapping LibreOffice
> > functions?

libreoffice has the UNO API, which implicitly makes ~all those API
functions available to Python; going via boost::python or swig would
reinvent the wheel.

> That would be pretty difficult, all of the LibreOffice code assumes that you 
> loaded a document via the normal load process.
> Calling them without having first established that context is going to be 
> rough.

Though you can always "load" the special "private:factory/scalc" URL to
just create an in-memory document -- that may be close enough to not
opening a file.

Regards,

Miklos

Reply via email to