html::StyleClass Class Reference
[Html Document preparation]

#include <style.hh>

Inheritance diagram for html::StyleClass:

html::attList

List of all members.

Public Member Functions

 StyleClass (void)
 Constructor.
 ~StyleClass (void)
 Destructor.
void putAttr (writer &w) const
 Write an attribute.
StyleClasssetColor (const color &c)
 Set the color attribute.
StyleClasssetFace (const font &c)
 Set the font attribute.
StyleClasssetSize (const size &c)
 Set the size attribute.
StyleClasssetWeight (const std::string &c)
 Set the weight attribute.


Detailed Description

Class style contains text style attributes. brief Text style attribute.
Author:
John Zweizig
Version:
1.1; Last modified March 3, 2008

Constructor & Destructor Documentation

html::StyleClass::StyleClass ( void   ) 

Constructor.

Construct a style specifier.

html::StyleClass::~StyleClass ( void   ) 

Destructor.

Destroy a style specifier.


Member Function Documentation

void html::StyleClass::putAttr ( writer w  )  const [virtual]

Write an attribute.

Write an attribute to the a document.

Parameters:
w Writer to whic the attribute will be written.

Reimplemented from html::attList.

StyleClass& html::StyleClass::setColor ( const color c  ) 

Set the color attribute.

Set the style color attribute.

Parameters:
c Color attribute.
Returns:
Reference to this StyleClass object.

StyleClass& html::StyleClass::setFace ( const font c  ) 

Set the font attribute.

Set the style font face attribute.

Parameters:
c Font attribute.
Returns:
Rference to this StyleClass object.

StyleClass& html::StyleClass::setSize ( const size c  ) 

Set the size attribute.

Set the style size attribute.

Parameters:
c Size attribute.
Returns:
Reference to this StyleClass object.

StyleClass& html::StyleClass::setWeight ( const std::string &  c  ) 

Set the weight attribute.

Set the style weight attribute.

Parameters:
c Weight attribute.
Returns:
Reference to this StyleClass object.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:30 2009 for dmt by  doxygen 1.5.4