]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.h
comment
[lyx.git] / src / LyXVC.h
index 1a23afaa9fd60f001493b0f6cfc06e9da16743b6..09998c952f98b14480bc1a6356c39c195e8006e1 100644 (file)
@@ -45,11 +45,11 @@ public:
        ///
        ~LyXVC();
        /** Not a good name perhaps. This function should be called whenever
-         LyX loads a file. This function then checks for a master VC file
-         (for RCS this is *,v or RCS/ *,v) if this file is found, the loaded
-         file is assumed to be under controll by VC (only RCS so far), and
-         the appropiate actions is taken. Returns true if the file is under
-         control by a VCS.
+         LyX loads a file. This function then checks for a master VC file (for
+         RCS this is *,v or RCS/ *,v ; for CVS this is CVS/Entries) if this
+         file is found, the loaded file is assumed to be under controll by VC
+         (only RCS and CVS so far), and the appropiate actions is taken.
+         Returns true if the file is under control by a VCS.
          */
        bool file_found_hook(support::FileName const & fn);
 
@@ -63,26 +63,32 @@ public:
        static bool file_not_found_hook(support::FileName const & fn);
 
        ///
-       void buffer(Buffer *);
+       void setBuffer(Buffer *);
 
        /// Register the document as an VC file.
        void registrer();
 
        /// Unlock and commit changes.
        void checkIn();
+       /// Does the current VC supports this operation?
+       bool checkInEnabled();
 
        /// Lock and prepare to edit document.
        void checkOut();
+       /// Does the current VC supports this operation?
+       bool checkOutEnabled();
 
        /// Revert to last version
        void revert();
 
        /// Undo last check-in.
        void undoLast();
+       /// Does the current VC supports this operation?
+       bool undoLastEnabled();
 
        /**
         * Generate a log file and return the filename.
-        * It is the caller's responsibility to unlink the
+        * It is the caller's responsibility to remove the
         * file after use.
         */
        const std::string getLogFile() const;