html::font Class Reference
[Html Document preparation]

Text font attribute class. More...

#include <font.hh>

Inheritance diagram for html::font:

html::attrib

List of all members.

Public Member Functions

 font (void)
 Default constructor.
 font (const std::string &face)
 Named font constructor.
 ~font (void)
 Destructor.
fontclone (void) const
 Clone alignment.
bool isDefault (void) const
void putAttr (writer &w) const
 Write the font.
bool operator== (const font &x) const
 Compare operator.
void setDefault (void)
 Set default font.
void setFace (const std::string &face)
 Set the font face.
const char * getFace (void) const
 Get the face name.


Detailed Description

Text font attribute class.

Text font attribute class.

Author:
John Zweizig
Version:
1.1; Last modified March 4, 2008

Constructor & Destructor Documentation

html::font::font ( void   ) 

Default constructor.

Construct a font attribute object that specifies a default font.

html::font::font ( const std::string &  face  ) 

Named font constructor.

Construct a font attribute object that specifies a font by name.

Parameters:
face Font name

html::font::~font ( void   ) 

Destructor.

Destroy an font object.


Member Function Documentation

font* html::font::clone ( void   )  const [virtual]

Clone alignment.

Make an identical copy of the alignment object.

Returns:
Pointer to the cloned alignment object.

Implements html::attrib.

bool html::font::isDefault ( void   )  const [virtual]

Test whether the font is the default value.

Returns:
true if default font.

Reimplemented from html::attrib.

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

Write the font.

Write the font attribute to the specified html writer.

Parameters:
w Html writer reference.

Reimplemented from html::attrib.

bool html::font::operator== ( const font x  )  const [inline]

Compare operator.

Test whether this font is equal to the specified.

Parameters:
x Alignment object to be compared
Returns:
True if this font is equal to the argument.

void html::font::setDefault ( void   ) 

Set default font.

Set the font to the default.

void html::font::setFace ( const std::string &  face  ) 

Set the font face.

Set the font face to the specified name.

Parameters:
face Font face name.

const char * html::font::getFace ( void   )  const [inline]

Get the face name.

Get the font face name.

Returns:
Constant character pointer to null-terminated face name string.


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