]> git.lyx.org Git - lyx.git/blobdiff - src/xml.h
DocBook: add a layout tag to tell whether an item is the abstract or not.
[lyx.git] / src / xml.h
index 5478a66361d8fe099d70a030967a556634c9a662..b585a48a9dc8fd90e75d87c4e96544d85c12fc42 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -82,7 +82,8 @@ public:
        enum EscapeSettings {
                ESCAPE_NONE,
                ESCAPE_AND, // meaning &
-               ESCAPE_ALL  // meaning <, >, &, at present
+               ESCAPE_ALL, // meaning <, >, &, at present
+               ESCAPE_COMMENTS // Anything that is forbidden within comments
        };
        /// Sets what we are going to escape on the NEXT write.
        /// Everything is reset for the next time.
@@ -125,6 +126,8 @@ private:
        TagDeque pending_tags_;
        ///
        TagDeque tag_stack_;
+public:
+       bool pending_tags_empty() { return pending_tags_.empty();};
 };
 
 namespace xml {
@@ -138,9 +141,6 @@ docstring escapeChar(char c, XMLStream::EscapeSettings e);
 /// Escape a word instead of a single character
 docstring escapeString(docstring const & raw, XMLStream::EscapeSettings e=XMLStream::ESCAPE_ALL);
 
-/// Converts a string to a form safe for links, etc.
-docstring xmlize(docstring const &str, XMLStream::EscapeSettings e);
-
 /// cleans \param str for use as an attribute by replacing all non-altnum by "_"
 docstring cleanAttr(docstring const & str);
 
@@ -151,7 +151,7 @@ docstring escapeChar(char c, XMLStream::EscapeSettings e);
 docstring cleanID(docstring const &orig);
 
 /// returns a unique numeric ID
-docstring const uniqueID(docstring const & label);
+docstring uniqueID(docstring const & label);
 
 struct FontTag;
 struct EndFontTag;