X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbmap.h;h=2ffe6885f15c2c452fb40a0f1b7a0364e4fcaa57;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=edadfaa9c641881f5e57f3c4b95f853561b5ed2e;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/kbmap.h b/src/kbmap.h index edadfaa9c6..2ffe6885f1 100644 --- a/src/kbmap.h +++ b/src/kbmap.h @@ -19,6 +19,8 @@ #include "frontends/key_state.h" #include "frontends/LyXKeySym.h" +#include "support/docstream.h" + #include #include @@ -43,8 +45,12 @@ public: // 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. @@ -64,7 +70,7 @@ public: 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). @@ -108,9 +114,6 @@ private: 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