html/document.hh

00001 /* -*- mode: c++; c-basic-offset: 4; -*- */
00002 #ifndef HTML_DOCUMENT_HH
00003 #define HTML_DOCUMENT_HH
00004 
00005 #include "html/Attrib.hh"
00006 #include "html/compound.hh"
00007 #include "html/style.hh"
00008 #include <string>
00009 
00010 namespace html {
00011   class color;
00012 
00022   class document : public compound {
00023   public:
00027     document(void);
00028 
00033     document(const document& x);
00034 
00039     document(const char* title);
00040 
00044     ~document(void);
00045 
00050     document* clone(void) const;
00051 
00054     const char* getTag(void) const;
00055 
00058     void write(writer& out) const;
00059 
00062     void setBackgroundColor(const color& color);
00063 
00068     void setRefresh(double t);
00069 
00075     void setStyle(const std::string& name, const StyleClass& c);
00076 
00077   private:
00078     std::string mTitle;
00079     style       mStyle;
00080     double      mRefresh;
00081   };
00082 }
00083 #endif  // HTML_DOCUMENT_HH

Generated on Sun Mar 8 19:20:48 2009 for dmt by  doxygen 1.5.4