]> git.lyx.org Git - features.git/blobdiff - src/xml.h
XML: use the new mechanisms for CR detection with errors.
[features.git] / src / xml.h
index 9a7cf17f2849dbae17f9c3e3b479aa69c3ae080a..45c62aba324dcbe282ece1092978fb7551cc86e4 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -103,9 +103,13 @@ public:
        /// that simplifies the logic using this code.
        bool isLastTagCR() const { return is_last_tag_cr_; };
        ///
-       void writeError(std::string const &) const;
+       void writeError(std::string const &);
        ///
-       void writeError(docstring const &) const;
+       void writeError(docstring const &);
+       ///
+       typedef std::shared_ptr<xml::StartTag> TagPtr;
+       /// Returns the last element on the tag stack. XMLStream keeps ownership of the item.
+       TagPtr getLastStackTag();
 private:
        ///
        void clearTagDeque();