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 /// for changing requests a bit
38 FuncRequest(FuncRequest const & cmd, string const & arg);
40 /// access to the view
41 BufferView * view() const;
42 /// access to the view
43 void setView(BufferView * view);
45 mouse_button::state button() const;
48 void message(string const & msg) const;
49 /// output an error message
50 void errorMessage(string const & msg) const;
53 /// the BufferView we are talking to
55 public: // should be private, too...
58 /// the action's string argument
60 /// the x coordinate of a mouse press
62 /// the y coordinate of a mouse press
64 /// some extra information (like button number)
65 mouse_button::state button_;
68 #endif // FUNCREQUEST_H