]> git.lyx.org Git - lyx.git/blobdiff - src/vc-backend.C
Look for mathed xpms. Doesn't do anything yet due to lack of workable XPMs
[lyx.git] / src / vc-backend.C
index 429014c026fcd464919ea780f5a459338b21eba7..65f0a79806fa468575dcd5a7e048947a2a818775 100644 (file)
@@ -9,7 +9,7 @@
 #include "buffer.h"
 #include "BufferView.h"
 #include "frontends/LyXView.h"
-#include "lyxfunc.h"
+#include "funcrequest.h"
 
 #include "support/FileInfo.h"
 #include "support/path.h"
@@ -159,7 +159,7 @@ void RCS::registrer(string const & msg)
        cmd += OnlyFilename(owner_->fileName());
        cmd += "\"";
        doVCCommand(cmd, owner_->filePath());
-       owner_->getUser()->owner()->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+       owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
 }
 
 
@@ -167,16 +167,16 @@ void RCS::checkIn(string const & msg)
 {
        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));
 }
 
 
 void RCS::checkOut()
 {
-       owner_->markLyxClean();
+       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));
 }
 
 
@@ -185,9 +185,8 @@ void RCS::revert()
        doVCCommand("co -f -u" + version() + " \""
                    + OnlyFilename(owner_->fileName()) + "\"", owner_->filePath());
        // We ignore changes and just reload!
-       owner_->markLyxClean();
-       owner_->getUser()->owner()
-               ->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+       owner_->markClean();
+       owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
 }
 
 
@@ -289,7 +288,7 @@ void CVS::registrer(string const & msg)
 {
        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));
 }
 
 
@@ -298,7 +297,7 @@ void CVS::checkIn(string const & msg)
        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));
 }
 
 
@@ -317,9 +316,8 @@ void CVS::revert()
 
        doVCCommand("rm -f \"" + fil + "\"; cvs update \"" + fil + "\"",
                    owner_->filePath());
-       owner_->markLyxClean();
-       owner_->getUser()->owner()
-               ->getLyXFunc()->dispatch(LFUN_MENURELOAD);
+       owner_->markClean();
+       owner_->getUser()->owner()->dispatch(FuncRequest(LFUN_MENURELOAD));
 }