mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Integrate Application_pimpl into Application.C.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15206 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2c72e0ecaa
commit
d1e7c7e0ab
@ -428,7 +428,6 @@ src_insets_files = Split('''
|
||||
src_frontends_header_files = Split('''
|
||||
Alert.h
|
||||
Alert_pimpl.h
|
||||
Application_pimpl.h
|
||||
Application.h
|
||||
Clipboard.h
|
||||
Dialogs.h
|
||||
|
@ -12,14 +12,17 @@
|
||||
|
||||
#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;
|
||||
|
@ -1,40 +0,0 @@
|
||||
/**
|
||||
* \file frontend/Application_pimpl.h
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef LYX_APPLICATION_PIMPL_H
|
||||
#define LYX_APPLICATION_PIMPL_H
|
||||
|
||||
#include "bufferlist.h"
|
||||
#include "funcrequest.h"
|
||||
#include "lyxserver.h"
|
||||
#include "lyxsocket.h"
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
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_;
|
||||
};
|
||||
|
||||
} // namespace frontend
|
||||
} // namespace lyx
|
||||
|
||||
#endif // LYX_APPLICATION_PIMPL_H
|
@ -16,7 +16,6 @@ libfrontends_la_SOURCES = \
|
||||
Alert.C \
|
||||
Alert.h \
|
||||
Alert_pimpl.h \
|
||||
Application_pimpl.h \
|
||||
Application.C \
|
||||
Application.h \
|
||||
Dialogs.C \
|
||||
|
Loading…
Reference in New Issue
Block a user