]> git.lyx.org Git - lyx.git/blob - src/funcrequest.C
13a5c1285219482a5b000fd50840b4a7ebd519f4
[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, mouse_button::state but)
38         : view_(view), action(act), argument(), x(ax), y(ay), button_(but)
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 }
52
53
54 mouse_button::state FuncRequest::button() const
55 {
56         return button_;
57 }
58