html::size Class Reference
[Html Document preparation]

#include <size.hh>

Inheritance diagram for html::size:

html::attrib

List of all members.

Public Member Functions

 size (int Size=0)
 Constructor.
 ~size (void)
 Destructor.
sizeclone (void) const
 Create an identical attribute object.
bool isDefault (void) const
 Test if default.
void putAttr (writer &w) const
 Write the size attribute.
void setDefault (void)
 Set default value.
void setRelative (int delta)
 Set a relative size.
void setSize (int Size)
 Set absolute size value.
bool operator== (const size &x) const
 Test if sizes are the same.


Detailed Description

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

Constructor & Destructor Documentation

html::size::size ( int  Size = 0  ) 

Constructor.

Construct a size specifier.

Parameters:
Size Size value

html::size::~size ( void   ) 

Destructor.

Destroy a Size attribute


Member Function Documentation

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

Create an identical attribute object.

Clone the asize attribute.

Returns:
Pointer to an identical attibute object.

Implements html::attrib.

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

Test if default.

Test whether the attribute has the default value.

Returns:
True if the attribute has the default value.

Reimplemented from html::attrib.

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

Write the size attribute.

Print the suze attribute to the specified writer.

Parameters:
w Write to which the attribute is written.

Reimplemented from html::attrib.

void html::size::setDefault ( void   ) 

Set default value.

Restore the size attribute to its default value.

void html::size::setRelative ( int  delta  ) 

Set a relative size.

Set the size to a relative value.

Parameters:
delta Font size increment.

void html::size::setSize ( int  Size  ) 

Set absolute size value.

Set the size attribute to an absolute value.

Parameters:
Size Size value.

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

Test if sizes are the same.

Test if the size attribute is equal to the specified value.

Parameters:
x Size attribute to be compared.
Returns:
True if sizes are equal.


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