#define KBSEQUENCE_H
#include "frontends/key_state.h"
-
-#include <boost/shared_ptr.hpp>
+#include "frontends/LyXKeySym.h"
#include <string>
#include <vector>
+
+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<LyXKeySym> LyXKeySymPtr;
typedef std::vector<LyXKeySymPtr> KeySequence;
friend class kb_keymap;
/**
* 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();
bool deleted_;
};
+
+} // namespace lyx
+
#endif