#include "frontends/key_state.h"
#include "frontends/LyXKeySym.h"
+#include "support/docstream.h"
+
#include <boost/shared_ptr.hpp>
#include <vector>
// Parse a bind file
bool read(std::string const & bind_file);
- /// print all available keysyms
- std::string const print() const;
+ /**
+ * print all available keysyms
+ * @param forgui true if the string should use translations and
+ * special characters.
+ */
+ docstring const print(bool forgui) const;
/**
* Look up a key press in the keymap.
Bindings findbindings(FuncRequest const & func) const;
/// Given an action, print the keybindings.
- std::string const printbindings(FuncRequest const & func) const;
+ docstring const printbindings(FuncRequest const & func) const;
/**
* Given an action, find the first 1-key binding (if it exists).
void defkey(kb_sequence * seq, FuncRequest const & func,
unsigned int r = 0);
- /// Returns a string of the given key
- std::string const printKey(kb_key const & key) const;
-
/**
* Given an action, find all keybindings
* @param func the action