X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbsequence.C;h=f37afa95767c685d511bd5c58202dd2d11a8be07;hb=2c832e6578ae146a2b51967cbc78cd640959f196;hp=ffe1661c5b562dc05d1cf60df5f9e9e068c57a21;hpb=500fa5f5912440de5cc5f1dcb75955f4b09b9e50;p=lyx.git diff --git a/src/kbsequence.C b/src/kbsequence.C index ffe1661c5b..f37afa9576 100644 --- a/src/kbsequence.C +++ b/src/kbsequence.C @@ -21,6 +21,9 @@ #include "frontends/LyXKeySym.h" #include "frontends/LyXKeySymFactory.h" + +namespace lyx { + using std::make_pair; using std::string; @@ -127,9 +130,9 @@ string::size_type kb_sequence::parse(string const & s) } -string const kb_sequence::print() const +docstring const kb_sequence::print() const { - string buf; + docstring buf; //if (deleted_) // return buf; @@ -137,7 +140,7 @@ string const kb_sequence::print() const KeySequence::size_type i, length = sequence.size(); for (i = 0; i < length; ++i) { - buf += kb_keymap::printKeySym(*sequence[i], modifiers[i].first); + buf += sequence[i]->print(modifiers[i].first); // append a blank if (i + 1 < length) { @@ -148,9 +151,9 @@ string const kb_sequence::print() const } -string const kb_sequence::printOptions() const +docstring const kb_sequence::printOptions() const { - string buf; + docstring buf; buf += print(); @@ -180,3 +183,6 @@ void kb_sequence::clear() sequence.clear(); reset(); } + + +} // namespace lyx