#include "LyXFunc.h"
#include "Lexer.h"
#include "Paragraph.h"
+#include "TextClass.h"
#include "TocBackend.h"
#include "ToolbarBackend.h"
// first one later
KeyMap::Bindings bindings = theTopLevelKeymap().findBindings(func_);
- if (bindings.size()) {
+ if (bindings.size())
return bindings.begin()->print(KeySequence::ForGui);
- } else {
- LYXERR(Debug::KBMAP)
- << "No binding for "
- << lyxaction.getActionName(func_.action)
- << '(' << to_utf8(func_.argument()) << ')' << endl;
- return docstring();
- }
+ LYXERR(Debug::KBMAP, "No binding for "
+ << lyxaction.getActionName(func_.action)
+ << '(' << to_utf8(func_.argument()) << ')');
+ return docstring();
}
// We cannot use a for loop as the buffer list cycles.
do {
- docstring label = makeDisplayPath(b->absFileName(), 20);
- if (!b->isClean()) label = label + "*";
+ docstring label = b->fileName().displayName(20);
+ if (!b->isClean())
+ label = label + "*";
if (ii < 10)
label = convert<docstring>(ii) + ". " + label + '|' + convert<docstring>(ii);
tomenu.add(MenuItem(MenuItem::Command, label,
} else {
tomenu.add(MenuItem(MenuItem::Command, _("No Documents Open!"),
FuncRequest(LFUN_NOACTION)));
- return;
}
}