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