]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex.C
* src/insets/insetbase.h
[lyx.git] / src / lyxlex.C
index 69a1003678b95f05f474b67cc1af7696b992636c..edb0896be26dd3ec0582ee8473aa76739f5d1633 100644 (file)
@@ -99,7 +99,7 @@ void LyXLex::printError(string const & message) const
 }
 
 
-bool LyXLex::setFile(string const & filename)
+bool LyXLex::setFile(support::FileName const & filename)
 {
        return pimpl_->setFile(filename);
 }
@@ -266,6 +266,16 @@ LyXLex & LyXLex::operator>>(std::string & s)
 }
 
 
+LyXLex & LyXLex::operator>>(docstring & s)
+{
+       if (isOK()) {
+               next();
+               s = getDocString();
+       }
+       return *this;
+}
+
+
 LyXLex & LyXLex::operator>>(double & s)
 {
        if (isOK()) {