00001
00002 #ifndef HTML_ALIGN_HH
00003 #define HTML_ALIGN_HH
00004
00005 #include "html/Attrib.hh"
00006 #include <string>
00007
00008 namespace html {
00009 class writer;
00010
00017 class align : public attrib {
00018 public:
00023 align(void);
00024
00030 align(const std::string& clr);
00031
00035 ~align(void);
00036
00041 align* clone(void) const;
00042
00046 bool isDefault(void) const;
00047
00052 void putAttr(writer& w) const;
00053
00057 void setDefault(void);
00058
00066 void setAlign(const std::string& name);
00067
00073 bool operator==(const align& x) const;
00074
00075 private:
00076 enum AlignMode {
00077 k_default,
00078 k_left,
00079 k_right,
00080 k_center
00081 };
00082
00083 private:
00084 AlignMode mMode;
00085 };
00086
00087 }
00088
00089 #endif // HTML_ALIGN_HH