]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Application.C
remove unused stuff
[lyx.git] / src / frontends / Application.C
index fadd7d956cfa5f67f29a65637f48c25c75420e8c..9f9aaee0be66725c9c0673cdf3ff86897fdd6b79 100644 (file)
@@ -1,95 +1,95 @@
-/**\r
- * \file frontend/Application.C\r
- * This file is part of LyX, the document processor.\r
- * Licence details can be found in the file COPYING.\r
- *\r
- * \author Abdelrazak Younes\r
- *\r
- * Full author contact details are available in file CREDITS.\r
- */\r
-\r
-#include <config.h>\r
-\r
-#include "Application.h"\r
-\r
-#include "funcrequest.h"\r
-#include "LyXAction.h"\r
-#include "lyxrc.h"\r
-#include "LyXView.h"\r
-\r
-#include "support/lstrings.h"\r
-#include "support/os.h"\r
-#include "support/package.h"\r
-\r
-#include <boost/scoped_ptr.hpp>\r
-\r
-using lyx::support::package;\r
-\r
-namespace lyx {\r
-namespace frontend {\r
-\r
-\r
-Application::Application(int & argc, char ** argv)\r
-{\r
-}\r
-\r
-\r
-LyXFunc & Application::lyxFunc()\r
-{\r
-       return *lyxfunc_.get(); \r
-}\r
-\r
-\r
-LyXFunc const & Application::lyxFunc() const\r
-{\r
-       return *lyxfunc_.get(); \r
-}\r
-\r
-\r
-LyXServer & Application::server()\r
-{\r
-       return *lyx_server_.get(); \r
-}\r
-\r
-\r
-LyXServer const & Application::server() const \r
-{\r
-       return *lyx_server_.get(); \r
-}\r
-\r
-\r
-LyXServerSocket & Application::socket()\r
-{\r
-       return *lyx_socket_.get();\r
-}\r
-\r
-\r
-LyXServerSocket const & Application::socket() const\r
-{\r
-       return *lyx_socket_.get();\r
-}\r
-\r
-\r
-void Application::setBufferView(BufferView * buffer_view)\r
-{\r
-       buffer_view_ = buffer_view;\r
-}\r
-\r
-\r
-int Application::start(std::string const & batch)\r
-{\r
-       lyx_server_.reset(new LyXServer(lyxfunc_.get(), lyxrc.lyxpipes));\r
-       lyx_socket_.reset(new LyXServerSocket(lyxfunc_.get(), \r
-               lyx::support::os::internal_path(package().temp_dir() + "/lyxsocket")));\r
-\r
-       // handle the batch commands the user asked for\r
-       if (!batch.empty()) {\r
-               lyxfunc_->dispatch(lyxaction.lookupFunc(batch));\r
-       }\r
-\r
-       return exec();\r
-}\r
-\r
-\r
-} // namespace frontend\r
-} // namespace lyx\r
+/**
+ * \file frontend/Application.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Abdelrazak Younes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#include <config.h>
+
+#include "Application.h"
+
+#include "funcrequest.h"
+#include "LyXAction.h"
+#include "lyxrc.h"
+#include "LyXView.h"
+
+#include "support/lstrings.h"
+#include "support/os.h"
+#include "support/package.h"
+
+#include <boost/scoped_ptr.hpp>
+
+using lyx::support::package;
+
+namespace lyx {
+namespace frontend {
+
+
+Application::Application(int &, char **)
+{
+}
+
+
+LyXFunc & Application::lyxFunc()
+{
+       return *lyxfunc_.get(); 
+}
+
+
+LyXFunc const & Application::lyxFunc() const
+{
+       return *lyxfunc_.get(); 
+}
+
+
+LyXServer & Application::server()
+{
+       return *lyx_server_.get(); 
+}
+
+
+LyXServer const & Application::server() const 
+{
+       return *lyx_server_.get(); 
+}
+
+
+LyXServerSocket & Application::socket()
+{
+       return *lyx_socket_.get();
+}
+
+
+LyXServerSocket const & Application::socket() const
+{
+       return *lyx_socket_.get();
+}
+
+
+void Application::setBufferView(BufferView * buffer_view)
+{
+       buffer_view_ = buffer_view;
+}
+
+
+int Application::start(std::string const & batch)
+{
+       lyx_server_.reset(new LyXServer(lyxfunc_.get(), lyxrc.lyxpipes));
+       lyx_socket_.reset(new LyXServerSocket(lyxfunc_.get(), 
+               lyx::support::os::internal_path(package().temp_dir() + "/lyxsocket")));
+
+       // handle the batch commands the user asked for
+       if (!batch.empty()) {
+               lyxfunc_->dispatch(lyxaction.lookupFunc(batch));
+       }
+
+       return exec();
+}
+
+
+} // namespace frontend
+} // namespace lyx