]> git.lyx.org Git - lyx.git/blobdiff - src/kbsequence.C
more cleanup:
[lyx.git] / src / kbsequence.C
index ffe1661c5b562dc05d1cf60df5f9e9e068c57a21..f37afa95767c685d511bd5c58202dd2d11a8be07 100644 (file)
@@ -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