#ifndef LYX_H
#define LYX_H
-#include <boost/scoped_ptr.hpp>
-#include <boost/utility.hpp>
-
#include <string>
namespace lyx {
class LyXFunc;
class Server;
class ServerSocket;
-class LyXView;
class Messages;
class Mover;
class Movers;
class Session;
class KeyMap;
+class CmdDef;
extern bool use_gui;
-namespace frontend { class Application; }
+namespace frontend {
+class Application;
+class LyXView;
+}
/// initial startup
-class LyX : boost::noncopyable {
+class LyX {
public:
LyX();
KeyMap & topLevelKeymap();
KeyMap const & topLevelKeymap() const;
+ ///
+ CmdDef & topLevelCmdDef();
+
///
Converters & converters();
Converters & systemConverters();
void setGuiLanguage(std::string const & language);
///
- LyXView * newLyXView();
+ 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 * const updateInset(Inset const *) const;
+ Buffer const * updateInset(Inset const *) const;
void hideDialogs(std::string const & name, Inset * inset) const;
void addFileToLoad(support::FileName const &);
private:
+ /// noncopyable
+ LyX(LyX const &);
+ void operator=(LyX const &);
+
/// Do some cleanup in preparation of an exit.
void prepareExit();
/// initial LyX set up
bool init();
- /// set up the default key bindings
- void defaultKeyBindings(KeyMap * kbmap);
/// set up the default dead key bindings if requested
void deadKeyBindings(KeyMap * kbmap);
/** Check for the existence of the user's support directory and,
/// Use the Pimpl idiom to hide the internals.
struct Singletons;
- boost::scoped_ptr<Singletons> pimpl_;
+ Singletons * pimpl_;
friend Movers & theMovers();
friend Mover const & getMover(std::string const & fmt);