X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.h;h=0d8616eff9b98eef606cb2631ec62e76ae1f4049;hb=6c977615633e5e132494b9a7fa778588210f9c95;hp=f02ea652df5052de031dc0554bc790c0422de9cb;hpb=f4292fcec7356cf112ed4ce571187f74bb78613d;p=lyx.git diff --git a/src/LyX.h b/src/LyX.h index f02ea652df..0d8616eff9 100644 --- a/src/LyX.h +++ b/src/LyX.h @@ -54,6 +54,11 @@ public: /// Execute LyX. int exec(int & argc, char * argv[]); + /// Try to exit LyX properly. + /// \p exit_code is 0 by default, if a non zero value is passed, + /// emergencyCleanup() will be called before exiting. + void exit(int exit_code = 0) const; + static LyX & ref(); static LyX const & cref(); @@ -101,18 +106,11 @@ public: /// frontend::LyXView * newLyXView(); - /** redraw \c inset in all the BufferViews in which it is currently - * visible. If successful return a pointer to the owning Buffer. - */ - Buffer const * updateInset(Inset const *) const; - - void hideDialogs(std::string const & name, Inset * inset) const; - /// Execute batch commands if available. void execBatchCommands(); /// - void addFileToLoad(support::FileName const &); + void addFileToLoad(std::string const &); private: /// noncopyable @@ -137,12 +135,6 @@ private: */ void loadFiles(); - /// Create a View, load files and restore GUI Session. - void restoreGuiSession(); - - /// Initialize RC font for the GUI. - void initGuiFont(); - /// initial LyX set up bool init(); /// set up the default dead key bindings if requested