#include <string>
#include <vector>
+namespace lyx {
+
class Buffer;
class BufferList;
class ErrorItem;
class LyXServer;
class LyXServerSocket;
class LyXView;
+class Session;
class kb_keymap;
-
-namespace lyx {
extern bool use_gui;
-class Session;
-namespace frontend {
-class Application;
-}
-}
+
+namespace frontend { class Application; }
/// initial startup
class LyX : boost::noncopyable {
BufferList & bufferList();
BufferList const & bufferList() const;
///
- lyx::Session & session();
- lyx::Session const & session() const;
+ Session & session();
+ Session const & session() const;
///
LyXFunc & lyxFunc();
LyXFunc const & lyxFunc() const;
LyXServerSocket const & socket() const;
///
- lyx::frontend::Application & application();
- lyx::frontend::Application const & application() const;
+ frontend::Application & application();
+ frontend::Application const & application() const;
///
kb_keymap & topLevelKeymap();
kb_keymap const & topLevelKeymap() const;
- void addLyXView(LyXView * lyxview);
+ LyXView * newLyXView();
/** redraw \c inset in all the BufferViews in which it is currently
* visible. If successful return a pointer to the owning Buffer.
/// Create a View and restore GUI Session.
void restoreGuiSession(std::vector<std::string> const & files);
+ ///
+ void addLyXView(LyXView * lyxview);
+
/// Initialize RC font for the GUI.
void initGuiFont();
bool geometryOption_;
};
+} // namespace lyx
+
#endif // LYX_MAIN_H