Kaydet (Commit) 968091e1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Enable passing in a UserInstallation also in the C++ API

Change-Id: I0549a58bc6cebdfd9d69c078b4a6e8a891182019
üst 713a8f3f
...@@ -284,9 +284,9 @@ public: ...@@ -284,9 +284,9 @@ public:
}; };
/// Factory method to create a lok::Office instance. /// Factory method to create a lok::Office instance.
inline Office* lok_cpp_init(const char* pInstallPath) inline Office* lok_cpp_init(const char* pInstallPath, const char* pUserProfilePath = NULL)
{ {
LibreOfficeKit* pThis = lok_init(pInstallPath); LibreOfficeKit* pThis = lok_init_2(pInstallPath, pUserProfilePath);
if (pThis == NULL || pThis->pClass->nSize == 0) if (pThis == NULL || pThis->pClass->nSize == 0)
return NULL; return NULL;
return new ::lok::Office(pThis); return new ::lok::Office(pThis);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment