]> git.lyx.org Git - lyx.git/blob - src/funcrequest.C
I had added that already but revertes the patch when searching for the
[lyx.git] / src / funcrequest.C
1 /**
2  * \file funcrequest.C
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author André Pönitz
7  */
8
9 #include "funcrequest.h"
10
11 FuncRequest::FuncRequest()
12         : view_(0), action(LFUN_UNKNOWN_ACTION)
13 {}
14
15
16 FuncRequest::FuncRequest(kb_action act)
17         : view_(0), action(act)
18 {}
19
20
21 FuncRequest::FuncRequest(kb_action act, string const & arg)
22         : view_(0), action(act), argument(arg)
23 {}
24
25
26 FuncRequest::FuncRequest(BufferView * view, kb_action act)
27         : view_(view), action(act)
28 {}
29
30
31 FuncRequest::FuncRequest(BufferView * view, kb_action act, string const & arg)
32         : view_(view), action(act), argument(arg)
33 {}
34
35
36 FuncRequest::FuncRequest
37                 (BufferView * view, kb_action act, int ax, int ay, int aextra)
38         : view_(view), action(act), argument(), x(ax), y(ay), extra(aextra)
39 {}
40
41
42 BufferView * FuncRequest::view() const
43 {
44         return view_;
45 }
46
47
48 void FuncRequest::setView(BufferView * view)
49 {
50         view_ = view;
51 }