diff options
Diffstat (limited to 'kit/ChildSession.hpp')
-rw-r--r-- | kit/ChildSession.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/kit/ChildSession.hpp b/kit/ChildSession.hpp index bb6a3d7207..737b7d8e6b 100644 --- a/kit/ChildSession.hpp +++ b/kit/ChildSession.hpp @@ -53,12 +53,12 @@ public: /// if it is the last and only. virtual void onUnload(const ChildSession& session) = 0; + /// Access to the Kit instance. + virtual std::shared_ptr<lok::Office> getLOKit() = 0; + /// Access to the document instance. virtual std::shared_ptr<lok::Document> getLOKitDocument() = 0; - /// Access to the office instance. - virtual std::shared_ptr<lok::Office> getLOKit() = 0; - /// Send updated view info to all active sessions. virtual void notifyViewInfo() = 0; virtual void updateEditorSpeeds(int id, int speed) = 0; @@ -278,6 +278,18 @@ private: return _docManager.getLOKitDocument(); } + std::string getLOKitLastError() + { + char *lastErr = _docManager.getLOKit()->getError(); + std::string ret; + if (lastErr) + { + ret = std::string(lastErr, strlen(lastErr)); + free (lastErr); + } + return ret; + } + private: const std::string _jailId; DocumentManagerInterface& _docManager; |