#include <utility>
#include <algorithm>
+using namespace lyx::support;
+
using std::pair;
using std::make_pair;
using std::endl;
disable = !mathcursor;
break;
- case LFUN_DIALOG_SHOW: {
+ case LFUN_DIALOG_SHOW: {
string const name = ev.getArg(0);
if (!buf) {
disable = !(name == "aboutlyx" ||
}
goto exit_with_message;
case LFUN_DOWN:
- if (boost::next(TEXT()->cursor.row()) != TEXT()->rows().end())
+ if (boost::next(TEXT()->cursorRow()) != TEXT()->rows().end())
TEXT()->cursorDown(view());
else
TEXT()->cursorRight(view());
BufferView * LyXFunc::view() const
{
- lyx::Assert(owner);
+ Assert(owner);
return owner->view().get();
}