3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
12 #include "commandtags.h"
13 #include "frontends/mouse_state.h"
19 * This class encapsulates a LyX action and its argument
20 * in order to pass it around easily.
24 /// just for putting thes things in std::container
26 /// actions without extra argument
27 explicit FuncRequest(kb_action act);
28 /// actions with extra argument
29 FuncRequest(kb_action act, string const & arg);
30 /// actions without extra argument
31 FuncRequest(BufferView * view, kb_action act);
32 /// actions with extra argument
33 FuncRequest(BufferView * view, kb_action act, string const & arg);
35 FuncRequest(BufferView * view, kb_action act,
36 int x, int y, mouse_button::state button);
37 /// access to the view
38 BufferView * view() const;
39 /// access to the view
40 void setView(BufferView * view);
42 mouse_button::state button() const;
45 /// the BufferView we are talking to
47 public: // should be private, too...
50 /// the action's string argument
52 /// the x coordinate of a mouse press
54 /// the y coordinate of a mouse press
56 /// some extra information (like button number)
57 mouse_button::state button_;
60 #endif // FUNCREQUEST_H