#include "Action.h"
+// DispatchResult.h is needed by the windows compiler because lyx::dispatch
+// returns a DispatchResult const reference. Gcc does not complain. Weird...
+#include "DispatchResult.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "GuiView.h"
#include "LyX.h"
+
#include "qt_helpers.h"
#include "support/debug.h"
namespace frontend {
-Action::Action(GuiView * lyxView, QIcon const & icon,
+Action::Action(QIcon const & icon,
QString const & text, FuncRequest const & func,
QString const & tooltip, QObject * parent)
- : QAction(parent), func_(func), lyxView_(lyxView)
+ : QAction(parent), func_(func)
{
// only Qt/Mac handles that
setMenuRole(NoRole);