]> git.lyx.org Git - lyx.git/blob - src/support/ConsoleApplication.cpp
Account for old versions of Pygments
[lyx.git] / src / support / ConsoleApplication.cpp
1 /**
2  * \file ConsoleApplication.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Georg Baum
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "support/ConsoleApplication.h"
14
15 #include "support/ConsoleApplicationPrivate.h"
16
17
18 namespace lyx {
19
20 namespace support {
21
22
23 ConsoleApplication::~ConsoleApplication()
24 {
25         delete d;
26 }
27
28
29 ConsoleApplication::ConsoleApplication(std::string const & app,
30                 int & argc, char ** argv)
31         : d(new ConsoleApplicationPrivate(this, app, argc, argv))
32 {
33 }
34
35
36 int ConsoleApplication::exec()
37 {
38         return d->execute();
39 }
40
41
42 void ConsoleApplication::exit(int status)
43 {
44         d->exit(status);
45 }
46
47
48 } // namespace support
49 } // namespace lyx
50
51 #include "moc_ConsoleApplicationPrivate.cpp"