]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlPrefs.C
Add skeleton prefs controller and dialog to allow further work
[features.git] / src / frontends / controllers / ControlPrefs.C
1 /**
2  * \file ControlPrefs.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "ControlPrefs.h"
18
19 //#include "frontends/Dialogs.h"
20 #include "commandtags.h"
21 #include "frontends/LyXView.h"
22
23 ControlPrefs::ControlPrefs(LyXView & lv, Dialogs & d)
24         : ControlDialogBI(lv, d)
25 {}
26
27
28 void ControlPrefs::apply()
29 {
30         lyxrc = rc_; 
31 }
32
33
34 void ControlPrefs::save()
35 {
36         lyxrc = rc_;
37         lv_.dispatch(FuncRequest(LFUN_SAVEPREFERENCES));
38 }