// -*- C++ -*-
/**
* \file LyXAction.h
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
*/
#ifndef LYXACTION_H
#define LYXACTION_H
-#include <map>
+#include "lfuns.h"
-#include "funcrequest.h"
+#include "support/std_string.h"
#include <boost/utility.hpp>
+#include <map>
+
+
+class FuncRequest;
/**
* This class is a container for LyX actions. It also
string name;
/// the func_attrib values set
unsigned int attrib;
- /// the help text for this action
- string helpText;
};
public:
/// Return the name (and argument) associated with the given (pseudo) action
string const getActionName(int action) const;
- /// Return one line help text associated with (pseudo)action
- string const helpText(int action) const;
-
/// True if the command has `flag' set
bool funcHasFlag(kb_action action, func_attrib flag) const;
/// populate the action container with our actions
void init();
/// add the given action
- void newFunc(kb_action, string const & name,
- string const & helpText, unsigned int attrib);
+ void newFunc(kb_action, string const & name, unsigned int attrib);
/**
* This is a list of all the LyXFunc names with the
/**
* This is a mapping from action number to an object holding
- * info about this action. f.ex. helptext, command name (string),
+ * info about this action. f.ex. command name (string),
* command attributes (ro)
*/
info_map lyx_info_map;