On 3/7/2025 12:37 PM, Miklos Vajna wrote:
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.
Please note that XFunctionAccess::callFunction (implemented by
ScFunctionAccess) already creates a special temporary document
internally. This interface doesn't rely on any existing document opened
by user.
--
Best regards,
Mike Kaganski