]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.h
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / LaTeX.h
index fdc9f523325f658093c0ef065210faeb51da99a4..f9502806b64201b40aba398c258d784d1cd58e05 100644 (file)
@@ -23,6 +23,8 @@
 #include "DepTable.h"
 #include <vector>
 
+#include <boost/utility.hpp>
+
 class MiniBuffer;
 
 ///
@@ -61,13 +63,13 @@ private:
 
 
 ///
-class LaTeX {
+class LaTeX : public noncopyable {
 public:
        /** Return values from scanLogFile() and run() (to come)
-
-         This enum should be enlarged a bit so that one could
-         get more feedback from the LaTeX run.
-         */
+           
+           This enum should be enlarged a bit so that one could
+           get more feedback from the LaTeX run.
+       */
        enum log_status {
                ///
                NO_ERRORS = 0,
@@ -109,6 +111,9 @@ public:
           path = name of the files original path.
        */
        LaTeX(string const & cmd, string const & file, string const & path);
+
+       ///
+       virtual ~LaTeX() {}
        
        /// runs LaTeX several times
        int run(TeXErrors &, MiniBuffer *);
@@ -118,21 +123,17 @@ public:
 
        /// use this for running LaTeX once
        int operator() ();
+
+       ///
+       int scanLogFile(TeXErrors &);
+
 protected:
        /// The dependency file.
        string depfile;
 
-       /// unavail
-       LaTeX(LaTeX const &);
-       /// unavail
-       LaTeX & operator= (LaTeX const &);
-       
        ///
        void deplog(DepTable & head);
 
-       ///
-       int scanLogFile(TeXErrors &);
-
        ///
        bool runMakeIndex(string const &);
 
@@ -154,7 +155,7 @@ protected:
        ///
        string path;
 
-       // used by scanLogFile
+       /// used by scanLogFile
        int num_errors;
 };