#include <align.hh>

Public Member Functions | |
| align (void) | |
| Default constructor. | |
| align (const std::string &clr) | |
| Default constructor. | |
| ~align (void) | |
| Destructor. | |
| align * | clone (void) const |
| Clone alignment. | |
| bool | isDefault (void) const |
| void | putAttr (writer &w) const |
| Write the alignment. | |
| void | setDefault (void) |
| Set default alignment. | |
| void | setAlign (const std::string &name) |
| Set the aligment. | |
| bool | operator== (const align &x) const |
| Compare operator. | |
Text alignment attribute class.
| html::align::align | ( | void | ) |
Default constructor.
Construct an alignment attribute object that specifies a default alignment.
| html::align::align | ( | const std::string & | clr | ) |
Default constructor.
Construct an alignment atrribute object with specified alignment. Valid arguments and error recovery are as listed under setAlign().
| clr | Alignment specifier. |
| html::align::~align | ( | void | ) |
Destructor.
Destroy an alignment object.
| align* html::align::clone | ( | void | ) | const [virtual] |
Clone alignment.
Make an identical copy of the alignment object.
Implements html::attrib.
| bool html::align::isDefault | ( | void | ) | const [virtual] |
Test whether the alignment is the default value.
Reimplemented from html::attrib.
| void html::align::putAttr | ( | writer & | w | ) | const [virtual] |
Write the alignment.
Write the alignment attribute to the specified html writer.
| w | Html writer reference. |
Reimplemented from html::attrib.
| void html::align::setDefault | ( | void | ) |
Set default alignment.
Set the alignment to the default.
| void html::align::setAlign | ( | const std::string & | name | ) |
Set the aligment.
Set the alignment to the specified value. Valid alignment strings are "center", "right", "left" and "default". If an invalid alignment string is specified, setAlign() prints an error message to cerr and sets the alignment to "default".
| name | Alignment value string. |
| bool html::align::operator== | ( | const align & | x | ) | const |
Compare operator.
Test whether this alignnment is equal to the specified.
| x | Alignment object to be compared |
1.5.4