24#ifndef _HTMLBOOLEANELEMENT_H_
25#define _HTMLBOOLEANELEMENT_H_ 1
149 virtual inline const char*
151 {
return Tag::getName(); }
165 { sState = ! sState; }
Class dealing with HTML elements.
An expandable list of HTMLAttribute objects.
Template for concrete boolean HTMLElement subclasses.
virtual ~HTMLBooleanElement()
Destructor.
virtual const char * getName() const
Get the name of this element. For example, "strong".
static void reset()
Reset the state of this boolean element to closed.
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 std::string &text, const HTMLAttributeList &attributes)
Create a new element, specifying the enclosed text and HTMLAttribute objects.
virtual bool getState() const
Get the state of this boolean element.
HTMLBooleanElement()
Create a new empty boolean element.
virtual void swapState() const
Swap the state of this boolean element.
virtual HTMLElement * clone() const
Clone this element.
HTMLBooleanElement(const HTMLAttributeList &attributes, const HTMLElement &embed)
Create a new element, specifying the HTMLAttributes and embedded HTMLElement.
HTMLBooleanElement(const HTMLElement &embedded)
Create a new element, specifying an embedded HTMLElement.
Class representing an HTML element.
The namespace containing the cgicc library.