html/font.hh

00001 /* -*- mode: c++; c-basic-offset: 4; -*- */
00002 #ifndef HTML_FONT_HH
00003 #define HTML_FONT_HH
00004 
00005 #include "html/Attrib.hh"
00006 #include <string>
00007 
00008 namespace html {
00009   class writer;
00010 
00011 
00018   class font : public attrib {
00019   public:
00020 
00025     font(void);
00026 
00031     font(const std::string& face);
00032 
00036     ~font(void);
00037 
00042     font* clone(void) const;
00043 
00047     bool isDefault(void) const;
00048 
00053     void putAttr(writer& w) const;
00054 
00060      bool operator==(const font& x) const;
00061 
00065     void setDefault(void);
00066 
00071     void setFace(const std::string& face);
00072 
00077     const char* getFace(void) const;
00078 
00079   private:
00080     std::string mFace;
00081   };
00082 
00083 }
00084 
00085 inline bool
00086 html::font::operator==(const html::font& x) const {
00087     return mFace == x.mFace;
00088 }
00089 
00090 inline const char*
00091 html::font::getFace(void) const {
00092     return mFace.c_str();
00093 }
00094 
00095 #endif //  HTML_FONT_HH

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