]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / Application.C
index 87d40fa60a98bce781c6eb549b390fb776bd74bc..66fcbfbd7c280bda1f329a85594253b5a8fb29ba 100644 (file)
 
 #include "Application.h"
 
-#include "Application_pimpl.h"
 #include "Gui.h"
 #include "LyXView.h"
 #include "WorkArea.h"
 
+#include "bufferlist.h"
+#include "funcrequest.h"
 #include "LyXAction.h"
 #include "lyxfunc.h"
 #include "lyxrc.h"
+#include "lyxserver.h"
+#include "lyxsocket.h"
 
 #include "support/lstrings.h"
 #include "support/os.h"
@@ -31,6 +34,20 @@ using lyx::support::package;
 namespace lyx {
 namespace frontend {
 
+/// The main application class private implementation.
+struct Application_pimpl 
+{
+       ///
+       BufferList buffer_list_;
+       /// our function handler
+       boost::scoped_ptr<LyXFunc> lyxfunc_;
+       ///
+       boost::scoped_ptr<LyXServer> lyx_server_;
+       ///
+       boost::scoped_ptr<LyXServerSocket> lyx_socket_;
+};
+
+
 Application::Application(int &, char **)
 {
        pimpl_ = new Application_pimpl;
@@ -91,7 +108,6 @@ void Application::setBufferView(BufferView * buffer_view)
 }
 
 
-// FIXME: this whole method needs to be moved to Application.
 LyXView & Application::createView(unsigned int width,
                                                                  unsigned int height,
                                                                  int posx, int posy,