X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fxml.h;h=b585a48a9dc8fd90e75d87c4e96544d85c12fc42;hb=dab71087cf2954b77d3d2c0e67b868f9be82fba9;hp=5478a66361d8fe099d70a030967a556634c9a662;hpb=8ae0841826d90b8cdee1922f91fd6ccc5009f5ef;p=lyx.git diff --git a/src/xml.h b/src/xml.h index 5478a66361..b585a48a9d 100644 --- 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;