00001 #ifndef _CGI_HTMLDOCUMENT_H 00002 #define _CGI_HTMLDOCUMENT_H 00003 00004 #include "ElementList.h" 00005 00006 namespace Cgi 00007 { 00008 00009 00010 class HtmlDocument : public ElementList 00011 { 00012 public: 00013 HtmlDocument(doctype_t = DOCTYPE_HTML_401_TRANSITIONAL); 00014 ~HtmlDocument(); 00015 00016 std::string ToString() const; 00017 00018 Element *Copy() { return new HtmlDocument(*this); } 00019 00020 doctype_t GetDoctype() { return m_doctype; } 00021 00022 private: 00023 doctype_t m_doctype; 00024 }; 00025 00026 00027 } // namespace Cgi 00028 00029 00030 #endif // _CGI_HTMLDOCUMENT_H