namespace lyx {
-namespace support {
-class FileName;
-}
-
-class Buffer;
class BufferList;
+class CmdDef;
class Converters;
class ErrorItem;
-class Inset;
+class KeyMap;
class LyXFunc;
-class Server;
-class ServerSocket;
class Messages;
class Mover;
class Movers;
+class Server;
+class ServerSocket;
class Session;
-class KeyMap;
-class CmdDef;
extern bool use_gui;
frontend::Application & application();
frontend::Application const & application() const;
- ///
- KeyMap & topLevelKeymap();
- KeyMap const & topLevelKeymap() const;
-
///
CmdDef & topLevelCmdDef();
///
Messages & getGuiMessages();
///
- void setGuiLanguage(std::string const & language);
+ void setRcGuiLanguage();
///
frontend::LyXView * newLyXView();
/// Execute batch commands if available.
void execBatchCommands();
- ///
- void addFileToLoad(std::string const &);
-
private:
/// noncopyable
LyX(LyX const &);
int init(int & argc, char * argv[]);
/// Load files passed at command-line.
+ /// return true on success false if we encounter an error
/**
This method is used only in non-GUI mode.
*/
- void loadFiles();
+ bool loadFiles();
/// initial LyX set up
bool init();
- /// set up the default dead key bindings if requested
- void deadKeyBindings(KeyMap * kbmap);
/** Check for the existence of the user's support directory and,
* if not present, create it. Exits the program if the directory
* cannot be created.
bool queryUserLyXDir(bool explicit_userdir);
/// read lyxrc/preferences
bool readRcFile(std::string const & name);
- /// read the given ui (menu/toolbar) file
- bool readUIFile(std::string const & name, bool include = false);
/// read the given languages file
bool readLanguagesFile(std::string const & name);
/// read the encodings.
friend void setMover(std::string const & fmt, std::string const & command);
friend Movers & theSystemMovers();
friend frontend::Application * theApp();
+ friend KeyMap & theTopLevelKeymap();
};
} // namespace lyx