X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.h;h=9980ab5eef47d55a909b84b2a79b6535565cfd5c;hb=af16acb0b4c5379ac87fe0c9fae384af1babdc3a;hp=af43edc2d0bc039d125d6ce3d1aca043f4ed844a;hpb=869b84aef9dbec9c90ba4483db0b28a3fb92b947;p=lyx.git diff --git a/src/LyX.h b/src/LyX.h index af43edc2d0..9980ab5eef 100644 --- a/src/LyX.h +++ b/src/LyX.h @@ -60,8 +60,8 @@ class Application; /// initial startup class LyX { + friend class LyXConsoleApp; public: - LyX(); ~LyX(); @@ -85,6 +85,9 @@ private: */ int init(int & argc, char * argv[]); + /// Execute commandline commands if no GUI was requested. + int execWithoutGui(int & argc, char * argv[]); + /// Execute batch commands if available. void execCommands(); @@ -132,7 +135,7 @@ private: bool first_start; friend FuncStatus getStatus(FuncRequest const & action); - friend void dispatch(FuncRequest const & action); + friend DispatchResult const & dispatch(FuncRequest const & action); friend void dispatch(FuncRequest const & action, DispatchResult & dr); friend std::vector & theFilesToLoad(); friend BufferList & theBufferList(); @@ -144,7 +147,7 @@ private: friend Messages const & getGuiMessages(); friend KeyMap & theTopLevelKeymap(); friend Movers & theMovers(); - friend Mover const & getMover(std::string const & fmt); + friend Mover const & getMover(std::string const & fmt); friend void setMover(std::string const & fmt, std::string const & command); friend Movers & theSystemMovers(); friend frontend::Application * theApp(); @@ -172,7 +175,7 @@ void execBatchCommands(); FuncStatus getStatus(FuncRequest const & action); /// -void dispatch(FuncRequest const & action); +DispatchResult const & dispatch(FuncRequest const & action); /// void dispatch(FuncRequest const & action, DispatchResult & dr); @@ -180,4 +183,3 @@ void dispatch(FuncRequest const & action, DispatchResult & dr); } // namespace lyx #endif // LYX_H -