]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.h
* src/insets/InsetNote.h:
[lyx.git] / src / Lexer.h
index a8da886c8ffb470e02f1cbe1273840ff85f6da39..d4e440121c87f726c9e939ba124cd24b1c010c0e 100644 (file)
 #ifndef LEXER_H
 #define LEXER_H
 
-#include "support/docstring.h"
-
-#include <boost/utility.hpp>
-
-#include <iosfwd>
+#include "support/strfwd.h"
 
 
 namespace lyx {
@@ -37,10 +33,10 @@ struct keyword_item {
 };
 
 /** Generalized simple lexical analizer.
-       Use the method isOK() to check if there is still data available 
+       Use the method isOK() to check if there is still data available
        for lexing. Use one of the the operators void* or ! to test if
        the last reading operation was successful.
-       
+
        Example:
 
        int readParam(LyxLex &lex) {
@@ -51,11 +47,11 @@ struct keyword_item {
                        if (lex) param = p; // only use the input if reading was successful
                }
                return param;
-       } 
+       }
 
     @see LyXRC.cpp for an example of usage.
   */
-class Lexer : boost::noncopyable {
+class Lexer {
 public:
        ///
        Lexer(keyword_item *, int);
@@ -76,11 +72,11 @@ public:
 
        /// stream is open and end of stream is not reached
        /// FIXME: test also if pushTok is not empty
-       /// FIXME: the method should be renamed to something like 
+       /// FIXME: the method should be renamed to something like
        ///        dataAvailable(), in order to reflect the real behavior
        bool isOK() const;
        /// FIXME: The next two operators should be replaced by one method
-       ///        called e.g. lastReadOk(), in order to reflect the real 
+       ///        called e.g. lastReadOk(), in order to reflect the real
        ///        behavior
        /// last read operation was successful.
        operator void const *() const;
@@ -175,6 +171,11 @@ public:
        static std::string const quoteString(std::string const &);
 
 private:
+       /// noncopiable
+       Lexer(Lexer const &);
+       void operator=(Lexer const &);
+
+       ///
        class Pimpl;
        ///
        Pimpl * pimpl_;