class link : public object

Link to another HTML page.

Inheritance:


Public Methods

link(void)
Default constructor.
link(const std::string& txt, const std::string& addr)
Data constructor.
~link(void)
Destructor.
object* clone(void) const
Clone the link object.
void write(writer& out) const
Write the link.
void setAddr(const std::string& addr)
Set the link address.
void setText(const std::string& txt)
Set the link text.

Inherited from object:

Public Methods

virtual dim_t getXSize(void) const
virtual dim_t getYSize(void) const

Documentation

The link class represents a reference to another html page. The link is displayed a a text object which when click on links to the specified target address. If the text field is left blank, the target address is used both for the text field and the reference address. If the target address is empty, the HLINE is treated as an ordinary text field. No other check is made on the validity of the target address by the link class.
link(void)
Construct an empty link.

link(const std::string& txt, const std::string& addr)
Construct a link containing descriptive text and an address string.
Parameters:
txt - Text describing the link width.

~link(void)
Destroy the link object.

object* clone(void) const
Create an identical link object and return a pointer.
Returns:
Pointer to the link clone.

void write(writer& out) const
Write the link to the specified html writer.
Parameters:
out - HTML writer to which the line is to be written.

void setAddr(const std::string& addr)
Set the link target address to the specified value.
Parameters:
addr - New link address.

void setText(const std::string& txt)
Set the link text to the specified value.
Parameters:
txt - New link text.


This class has no child classes.
Author:
J. Zweizig
Version:
1.1; Modified May 29, 2001

alphabetic index hierarchy of classes


generated by doc++