]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.h
Comment.
[lyx.git] / src / output_xhtml.h
index 327c40274b281dbb62d9b13e92992a6120d7f5b5..1b68261be34f34db94f61c56a715dd895d15bee2 100644 (file)
@@ -60,6 +60,9 @@ struct EndTag {
 // Tags like <img />
 struct CompTag {
        ///
+       CompTag(std::string const & tag)
+               : tag_(tag) {}
+       ///
        CompTag(std::string const & tag, std::string const & attr)
                : tag_(tag), attr_(attr) {}
        /// <tag_ attr_ />
@@ -98,12 +101,20 @@ public:
        XHTMLStream & operator<<(EndTag const &);
        ///
        XHTMLStream & operator<<(CompTag const &);
+       /// A trivial struct that functions as a stream modifier.
+       /// << NextRaw() causes the next string-like thing sent to the
+       /// stream not to be escaped.
+       struct NextRaw {};
+       ///
+       XHTMLStream & operator<<(NextRaw const &);
 private:
        ///
        void clearTagDeque();
        ///
        bool isTagOpen(std::string const &);
        ///
+       void writeError(std::string const &);
+       ///
        odocstream & os_;
        ///
        // int tab_;
@@ -115,6 +126,8 @@ private:
        TagDeque pending_tags_;
        /// remembers the history, so we can make sure we nest properly.
        TagStack tag_stack_;
+       /// 
+       bool nextraw_;
 };
 
 ///