]> git.lyx.org Git - lyx.git/blob - src/lyx_main.h
Trivial fix for compiler warning.
[lyx.git] / src / lyx_main.h
1 // -*- C++ -*-
2 /**
3  * \file lyx_main.h
4  * Copyright 2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author unknown
8  */
9
10 #ifndef LYX_MAIN_H
11 #define LYX_MAIN_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "LString.h"
18
19 #include <boost/scoped_ptr.hpp>
20 #include <boost/utility.hpp>
21
22 #include <csignal>
23
24 class LyXGUI;
25 class LyXRC;
26 class LastFiles;
27 class Buffer;
28 class kb_keymap;
29
30
31 ///
32 extern string user_lyxdir;
33 ///
34 extern string system_lyxdir;
35 ///
36 extern string system_tempdir;
37 ///
38 extern boost::scoped_ptr<LastFiles> lastfiles;
39
40
41 class LyX : boost::noncopyable {
42 public:
43         LyX(int * argc, char * argv[]);
44
45         /// in the case of failure
46         static void emergencyCleanup();
47
48 private:
49         /// Should be a maximum of 1 LyXGUI.
50         boost::scoped_ptr<LyXGUI> lyxGUI;
51         /// does this user start lyx for the first time?
52         bool first_start;
53         ///
54         string batch_command;
55         ///
56         void runtime();
57         ///
58         void init(bool);
59         ///
60         void defaultKeyBindings(kb_keymap * kbmap);
61         ///
62         void deadKeyBindings(kb_keymap * kbmap);
63         ///
64         void queryUserLyXDir(bool explicit_userdir);
65         /** Search for and read the LyXRC file name, return
66             true if successfull.
67         */
68         bool readRcFile(string const & name);
69         /// Read the ui file `name'
70         void readUIFile(string const & name);
71         /// Read the languages file `name'
72         void readLanguagesFile(string const & name);
73         /// Read the encodings file `name'
74         void readEncodingsFile(string const & name);
75         ///
76         bool easyParse(int * argc, char * argv[]);
77 };
78
79 #endif