]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/texparser.h
* support/qstring_helpers.h: erase ucs4_to_qstring() method.
[lyx.git] / src / tex2lyx / texparser.h
index 0fc250e14f11a29b0c1aa463705c4b968b6d194a..8a1f37132f91f5cb311d9e914c38646f49942e1c 100644 (file)
@@ -17,6 +17,9 @@
 #include <utility>
 
 
+namespace lyx {
+
+
 enum mode_type {UNDECIDED_MODE, TEXT_MODE, MATH_MODE, MATHTEXT_MODE, TABLE_MODE};
 
 mode_type asMode(mode_type oldmode, std::string const & str);
@@ -150,6 +153,12 @@ public:
        std::string getFullOpt();
        /// \returns getArg('[', ']') including the brackets
        std::string getOpt();
+       /*!
+        * \returns the contents of the environment \p name.
+        * <tt>\begin{name}</tt> must be parsed already, <tt>\end{name}</tt>
+        * is parsed but not returned.
+        */
+       std::string const verbatimEnvironment(std::string const & name);
        /// Returns the character of the current token and increments the token position.
        char getChar();
        ///
@@ -199,4 +208,7 @@ private:
 };
 
 
+
+} // namespace lyx
+
 #endif