#include <cgicc/HTMLBooleanElement.h>
Inheritance diagram for cgicc::HTMLBooleanElement< Tag >:
State Management | |
virtual void | swapState () const |
Swap the state of this boolean element. | |
virtual bool | getState () const |
Get the state of this boolean element. | |
void | reset () |
Reset the state of this boolean element to closed. | |
Public Member Functions | |
virtual HTMLElement * | clone () const |
Clone this element. | |
virtual const char * | getName () const |
Get the name of this element. For example, "strong". | |
Constructors and Destructor | |
HTMLBooleanElement () | |
Create a new empty boolean element. | |
HTMLBooleanElement (const std::string &text) | |
Create a new element, specifying the enclosed text. | |
HTMLBooleanElement (const HTMLAttributeList &attributes) | |
Create a new element, specifying the HTMLAttribute objects. | |
HTMLBooleanElement (const HTMLElement &embedded) | |
Create a new element, specifying an embedded HTMLElement. | |
HTMLBooleanElement (const std::string &text, const HTMLAttributeList &attributes) | |
Create a new element, specifying the enclosed text and HTMLAttribute objects. | |
HTMLBooleanElement (const HTMLAttributeList &attributes, const HTMLElement &embed) | |
Create a new element, specifying the HTMLAttributes and embedded HTMLElement. | |
virtual | ~HTMLBooleanElement () |
Destructor. |
A boolean HTML element is an element having a boolean (open or closed) state. Most commonly used HTML tags are boolean elements:
The<a href="http://www.gnu.org">GNU Project</a>
a
element is boolean, since it is either open or closed. Boolean elements are often additive: Note than under the XHTML 1.0 standard, elements may not overlap; ie, in the example above, it would be illegal to close the<b>bold text<i>bold italic text</i></b>
b
tag before the i
tag.
Definition at line 60 of file HTMLBooleanElement.h.
|
Create a new element, specifying the enclosed text.
Definition at line 81 of file HTMLBooleanElement.h. |
|
Create a new element, specifying the HTMLAttribute objects.
Definition at line 89 of file HTMLBooleanElement.h. |
|
Create a new element, specifying an embedded HTMLElement.
Definition at line 97 of file HTMLBooleanElement.h. |
|
Create a new element, specifying the enclosed text and HTMLAttribute objects.
Definition at line 107 of file HTMLBooleanElement.h. |
|
Create a new element, specifying the HTMLAttributes and embedded HTMLElement.
Definition at line 118 of file HTMLBooleanElement.h. |
|
Clone this element.
Implements cgicc::HTMLElement. Definition at line 138 of file HTMLBooleanElement.h. |
|
Get the name of this element. For example, "strong".
Implements cgicc::HTMLElement. Definition at line 148 of file HTMLBooleanElement.h. |
|
Get the state of this boolean element.
Reimplemented from cgicc::HTMLElement. Definition at line 170 of file HTMLBooleanElement.h. |
|
Swap the state of this boolean element.
A state of Reimplemented from cgicc::HTMLElement. Definition at line 162 of file HTMLBooleanElement.h. |