]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlPrefs.h
Add skeleton prefs controller and dialog to allow further work
[features.git] / src / frontends / controllers / ControlPrefs.h
1 // -*- C++ -*-
2 /**
3  * \file ControlPrefs.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLPREFS_H
13 #define CONTROLPREFS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20 #include "LString.h"
21 #include "funcrequest.h"
22 #include "lyxrc.h"
23
24  
25 class ControlPrefs : public ControlDialogBI {
26 public:
27         ControlPrefs(LyXView &, Dialogs &);
28
29         // FIXME: we should probably devolve the individual
30         // settings to methods here. But for now, this will
31         // do
32  
33         LyXRC & rc() { return rc_; } 
34
35         LyXRC const & rc() const { return rc_; }
36  
37         /// save the rc
38         void save();
39  
40 private:
41         /// apply current lyxrc
42         virtual void apply();
43  
44         /// temporary lyxrc
45         LyXRC rc_;
46 };
47
48 #endif // CONTROLPREFS_H