#include "buffer.h"
#include "BufferView.h"
#include "frontends/LyXView.h"
-#include "lyxfunc.h"
+#include "funcrequest.h"
#include "support/FileInfo.h"
#include "support/path.h"
cmd += OnlyFilename(owner_->fileName());
cmd += "\"";
doVCCommand(cmd, owner_->filePath());
- owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
{
doVCCommand("ci -q -u -m\"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + "\"", owner_->filePath());
- owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
owner_->markClean();
doVCCommand("co -q -l \""
+ OnlyFilename(owner_->fileName()) + "\"", owner_->filePath());
- owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
+ OnlyFilename(owner_->fileName()) + "\"", owner_->filePath());
// We ignore changes and just reload!
owner_->markClean();
- owner_->getUser()->owner()
- ->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
{
doVCCommand("cvs -q add -m \"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + "\"", owner_->filePath());
- owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
doVCCommand("cvs -q commit -m \"" + msg + "\" \""
+ OnlyFilename(owner_->fileName()) + "\"",
owner_->filePath());
- owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}
doVCCommand("rm -f \"" + fil + "\"; cvs update \"" + fil + "\"",
owner_->filePath());
owner_->markClean();
- owner_->getUser()->owner()
- ->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+ owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
}