]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBase.C
add Lsstream.h
[lyx.git] / src / frontends / controllers / ControlBase.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 ControlBase.C
12  * \author Angus Leeming <a.leeming@ic.ac.uk>
13  */
14
15 #ifdef __GNUG__
16 #pragma implementation
17 #endif
18
19 #include <config.h>
20
21 #include "ButtonController.h"
22 #include "ControlBase.h"
23
24 void ControlBase::ApplyButton()
25 {
26         apply();
27         bc().apply();
28 }
29
30
31 void ControlBase::OKButton()
32 {
33         apply();
34         hide();
35         bc().ok();
36 }
37
38
39 void ControlBase::CancelButton()
40 {
41         hide();
42         bc().cancel();
43 }
44
45
46 void ControlBase::RestoreButton()
47 {
48         update();
49         bc().undoAll();
50 }