]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.h
LogUi.ui: string redundancy.
[lyx.git] / src / LyXVC.h
index 79490ec89179fe8b156582aef4ddbb827019dd8a..1d576f93d057a407dbeccc69061889f909fa07ff 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -65,7 +65,7 @@ public:
        void setBuffer(Buffer *);
 
        /// Register the document as an VC file.
-       void registrer();
+       bool registrer();
 
        /// Unlock and commit changes. Returns log.
        std::string checkIn();
@@ -77,6 +77,14 @@ public:
        /// Does the current VC supports this operation?
        bool checkOutEnabled();
 
+       /**
+        * Toggle locking property of the edited file,
+        * i.e. whether the file uses locking mechanism.
+        */
+       std::string lockingToggle();
+       /// Does the current VC supports this operation?
+       bool lockingToggleEnabled();
+
        /// Revert to last version
        void revert();