X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.h;h=ccce7a31549bf1f1099a9db0944f8bc1d4ea87f9;hb=68ee68103a77300c3aa01db9e63bd01b8243a0eb;hp=bc898d6b4c755561982b944ebe56c8c1c0e73038;hpb=16fd47ad8f5d78a3b7266520b0868c1e2bd0dcac;p=lyx.git diff --git a/src/LyX.h b/src/LyX.h index bc898d6b4c..ccce7a3154 100644 --- a/src/LyX.h +++ b/src/LyX.h @@ -28,6 +28,7 @@ class ErrorItem; class FuncRequest; class FuncStatus; class KeyMap; +class LaTeXFonts; class Messages; class Mover; class Movers; @@ -59,8 +60,8 @@ class Application; /// initial startup class LyX { + friend class LyXConsoleApp; public: - LyX(); ~LyX(); @@ -84,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(); @@ -143,11 +147,12 @@ 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(); friend Session & theSession(); + friend LaTeXFonts & theLaTeXFonts(); friend CmdDef & theTopLevelCmdDef(); friend SpellChecker * theSpellChecker(); friend void setSpellChecker(); @@ -178,4 +183,3 @@ void dispatch(FuncRequest const & action, DispatchResult & dr); } // namespace lyx #endif // LYX_H -