// -*- 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
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "lfuns.h"
+#include "LString.h"
+#include <boost/utility.hpp>
#include <map>
-#include "funcrequest.h"
-#include <boost/utility.hpp>
+
+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:
* Given a pseudo-action, return the real action and
* associated argument
*/
- std::pair<kb_action, string> retrieveActionArg(int pseudo) const;
+ FuncRequest retrieveActionArg(int pseudo) const;
/// Search for an existent pseudoaction, return -1 if it doesn't exist.
int searchActionArg(kb_action action, string const & arg) const;
/// 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;
/// singleton instance
extern LyXAction lyxaction;
-
+
#endif // LYXACTION_H