X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbsequence.h;h=6dc269a0357687f9f3e343c8927992a5a4036848;hb=67ae65f43093cc738e41607c8a5011854d47cbf9;hp=3d894a1ec31c54d1fe602cb7db77656a7d757095;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/kbsequence.h b/src/kbsequence.h index 3d894a1ec3..6dc269a035 100644 --- a/src/kbsequence.h +++ b/src/kbsequence.h @@ -14,20 +14,20 @@ #define KBSEQUENCE_H #include "frontends/key_state.h" - -#include +#include "frontends/LyXKeySym.h" #include #include + +namespace lyx { + class kb_keymap; -class LyXKeySym; class FuncRequest; /// Holds a key sequence and the current and standard keymaps class kb_sequence { public: - typedef boost::shared_ptr LyXKeySymPtr; typedef std::vector KeySequence; friend class kb_keymap; @@ -63,15 +63,19 @@ public: /** * Return the current sequence as a string. + * @param forgui true if the string should use translations and + * special characters. * @see parse() */ - std::string const print() const; + docstring const print(bool forgui) const; /** * Return the current sequence and available options as * a string. No options are added if no curmap kb map exists. + * @param forgui true if the string should use translations and + * special characters. */ - std::string const printOptions() const; + docstring const printOptions(bool forgui) const; /// Mark the sequence as deleted. void mark_deleted(); @@ -114,4 +118,7 @@ private: bool deleted_; }; + +} // namespace lyx + #endif