]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlButtons.C
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlButtons.C
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlButtons.C
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #include <config.h>
15
16 #ifdef __GNUG__
17 #pragma implementation
18 #endif
19
20 #include "ControlButtons.h"
21 #include "ButtonControllerBase.h"
22 #include "ViewBase.h"
23
24 void ControlButtons::ApplyButton()
25 {
26         apply();
27         bc().apply();
28 }
29
30
31 void ControlButtons::OKButton()
32 {
33         apply();
34         hide();
35         bc().ok();
36 }
37
38
39 void ControlButtons::CancelButton()
40 {
41         hide();
42         bc().cancel();
43 }
44
45
46 void ControlButtons::RestoreButton()
47 {
48         update();
49         bc().restore();
50 }