00001 /* -*- mode: c++; c-basic-offset: 4; -*- */ 00002 #ifndef HTML_TEXTATTR_HH 00003 #define HTML_TEXTATTR_HH 00004 00005 #include "Attrib.hh" 00006 00007 namespace html { 00008 class color; 00009 class size; 00010 class font; 00011 00018 class textAttr : public attList { 00019 public: 00023 textAttr(void); 00024 00028 virtual ~textAttr(void) {} 00029 00034 const color& getColor(void) const; 00035 00040 const font& getFont(void) const; 00041 00046 const size& getSize(void) const; 00047 00052 void setFont(const font& x); 00053 00058 void setColor(const color& x); 00059 00064 void setSize(const size& x); 00065 00070 void merge(const textAttr& x); 00071 00076 void merge(const attList& x) { 00077 attList::merge (x); } 00078 00083 void suppress(const textAttr& x); 00084 }; 00085 00086 } 00087 #endif // HTML_TEXTATTR_HH
1.5.4