X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.h;h=4fc11faf957359e98c762553bba2a00dde7d415c;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=967263a7e0d0dfccfc0fe19e9c5b97df672ede99;hpb=377cdd5f6cc2dd67fabd0b03703d20722a9ed0ea;p=lyx.git diff --git a/src/Server.h b/src/Server.h index 967263a7e0..4fc11faf95 100644 --- a/src/Server.h +++ b/src/Server.h @@ -101,6 +101,9 @@ public: void read_ready(DWORD); #endif + /// Tell whether we asked another instance of LyX to open the files + bool deferredLoading() { return deferred_loading_; } + private: /// the filename of the in pipe std::string const inPipeName() const; @@ -114,6 +117,9 @@ private: /// Close pipes void closeConnection(); + /// Load files in another running instance of LyX + bool loadFilesInOtherInstance(); + #ifndef _WIN32 /// start a pipe int startPipe(std::string const &, bool); @@ -178,6 +184,9 @@ private: /// The client callback function ClientCallbackfct clientcb_; + + /// Did we defer loading of files to another instance? + bool deferred_loading_; }; @@ -197,6 +206,8 @@ public: ~Server(); /// void notifyClient(std::string const &); + /// + bool deferredLoadingToOtherInstance() { return pipes_.deferredLoading(); } /// whilst crashing etc. void emergencyCleanup() { pipes_.emergencyCleanup(); } @@ -221,6 +232,9 @@ private: /// Implementation is in LyX.cpp Server & theServer(); +/// Implementation is in LyX.cpp +extern std::vector & theFilesToLoad(); + } // namespace lyx