I’m trying to write app for LibreOffice made using SDK.
I write loadComponentFromURL with loadProps
xDesktop2->loadComponentFromURL(
sAbsoluteDocUrl, OUString("_default"),
0, loadProps);
with options
Sequence<PropertyValue> loadProps(3);
loadProps[0].Name = OUString::createFromAscii("Hidden");
loadProps[0].Value = Any(true);
loadProps[1].Name = OUString::createFromAscii("UpdateDocMode");
loadProps[1].Value = Any(sal_Int16(com::sun::star::document::UpdateDocMode::FULL_UPDATE));
loadProps[2].Name = OUString::createFromAscii("Silent");
loadProps[2].Value = Any(true);
(it works frame not opens)
and then use
rDispatchHelper->executeDispatch(rDispatchProvider,
OUString::createFromAscii(".uno:Save"),
OUString::createFromAscii(""), 0, args);
rDispatchHelper->executeDispatch(rDispatchProvider,
OUString::createFromAscii(".uno:Quit"),
OUString::createFromAscii(""), 0, args);
but the document doesn’t updates/save.
how to run and save (.docx) libreoffice app in inline mode without any interface?( the program would work without desktop)
if i run with .odt file - all is ok