]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.h
cosmetics
[lyx.git] / src / Lexer.h
index 4088c75052d478ae93aecb7c016e19cc5744f1b7..46355905b4c7a32f7aa7b97fa99c95015ae088b9 100644 (file)
 #ifndef LEXER_H
 #define LEXER_H
 
-#include "support/docstring.h"
-
-#include <boost/utility.hpp>
-
-#include <iosfwd>
+#include "support/strfwd.h"
 
 
 namespace lyx {
@@ -43,19 +39,21 @@ struct keyword_item {
 
        Example:
 
-       int readParam(LyxLex &lex) {
-               int param = 1; // default value
+       int readParam(LyxLex & lex)
+       {
+               int param = 1;    // default value
                if (lex.isOK()) { // the lexer has data to read
-                       int p;    // temporary variable
+                       int p;          // temporary variable
                        lex >> p;
-                       if (lex) param = p; // only use the input if reading was successful
+                       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);
@@ -175,6 +173,11 @@ public:
        static std::string const quoteString(std::string const &);
 
 private:
+       /// noncopiable
+       Lexer(Lexer const &);
+       void operator=(Lexer const &);
+
+       ///
        class Pimpl;
        ///
        Pimpl * pimpl_;