]> git.lyx.org Git - lyx.git/blobdiff - src/funcrequest.C
multicol; small stuff
[lyx.git] / src / funcrequest.C
index 31c64098467d348eb6e5356d8301382616d202ce..75d9cbaab8efc217ad021543d40b12c8df066c24 100644 (file)
@@ -6,6 +6,8 @@
  * \author André Pönitz
  */
 
+#include <config.h>
+
 #include "funcrequest.h"
 #include "BufferView.h"
 #include "lyxfunc.h" // only for setMessage()
@@ -28,6 +30,12 @@ FuncRequest::FuncRequest(kb_action act, string const & arg)
 {}
 
 
+FuncRequest::FuncRequest
+               (kb_action act, int ax, int ay, mouse_button::state button)
+       : view_(0), action(act), argument(), x(ax), y(ay), button_(button)
+{}
+
+
 FuncRequest::FuncRequest(BufferView * view, kb_action act)
        : view_(view), action(act)
 {}
@@ -44,12 +52,17 @@ FuncRequest::FuncRequest
 {}
 
 
-
 FuncRequest::FuncRequest(FuncRequest const & cmd, string const & arg)
        : view_(cmd.view_), action(cmd.action), argument(arg),
          x(cmd.x), y(cmd.y), button_(cmd.button_)
 {}
-       
+
+
+FuncRequest::FuncRequest(FuncRequest const & cmd, BufferView * view)
+       : view_(view), action(cmd.action), argument(cmd.argument),
+         x(cmd.x), y(cmd.y), button_(cmd.button_)
+{}
+
 
 BufferView * FuncRequest::view() const
 {