X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.h;h=c9674eba37ad29ecd55d063536dcdec0a6ad288b;hb=c7e6a677c4df14b0f2f7d701e1f1976c4005a629;hp=238fe38de0c708f05ee4c8432ae6d1cc4fe2fa93;hpb=e8529a2ecf233b8c3ccadbad4da14941fa02fd07;p=lyx.git diff --git a/src/LyX.h b/src/LyX.h index 238fe38de0..c9674eba37 100644 --- a/src/LyX.h +++ b/src/LyX.h @@ -16,6 +16,8 @@ #include "support/strfwd.h" +#include + namespace lyx { class BufferList; @@ -34,7 +36,22 @@ class ServerSocket; class Session; class SpellChecker; +enum RunMode { + NEW_INSTANCE, + USE_REMOTE, + PREFERRED +}; + +enum OverwriteFiles { + NO_FILES, + MAIN_FILE, + ALL_FILES, + UNSPECIFIED +}; + extern bool use_gui; +extern RunMode run_mode; +extern OverwriteFiles force_overwrite; namespace frontend { class Application; @@ -118,6 +135,7 @@ private: friend FuncStatus getStatus(FuncRequest const & action); friend void dispatch(FuncRequest const & action); friend void dispatch(FuncRequest const & action, DispatchResult & dr); + friend std::vector & theFilesToLoad(); friend BufferList & theBufferList(); friend Server & theServer(); friend ServerSocket & theServerSocket();