class block : public compound

Named compound HTML objects.

Inheritance:


Public Methods

block(const std::string& tag)
Constructor
block(const block& b)
Copy constructor.
virtual ~block(void)
Destructor.
virtual object* clone(void) const
Clone a block.
const char* getTag(void) const
get the tag.

Inherited from compound:

Public Methods

virtual void write(writer& out) const
object& addObject(const object& thing)
object& back(void)
const object& back(void) const
object& front(void)
const object& front(void) const
object& lineBreak(void)
void clear(void)
void remObject(const object* thing)
void addAttr(const std::string& name, const attrib& a)
void clearAttr(void)
void repAttr(const std::string& name, const attrib& a)
void remAttr(const std::string& name)

Inherited from object:

Public Methods

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

Documentation

The block class implements named compounds. The block name is used as an HTML tag when the block is written to the document file.
block(const std::string& tag)
Construct a block.
Parameters:
tag - Name of the block.

block(const block& b)
Construct an identical copy of a specified block.
Parameters:
b - Block instance to be copied.

virtual ~block(void)
Destroy a block.

virtual object* clone(void) const
Create an exact duplicate of the current block. This method pre-empts the HTML object clone virtual method.
Returns:
Pointer to the newly created copy of the block.

const char* getTag(void) const
Get the tag name of this block.
Returns:
Constant pointer to a static string containing the block name.


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

alphabetic index hierarchy of classes


generated by doc++