WMLOptGroupElement.h [plain text]
#ifndef WMLOptGroupElement_h
#define WMLOptGroupElement_h
#if ENABLE(WML)
#include "WMLFormControlElement.h"
#include "OptionGroupElement.h"
namespace WebCore {
class WMLOptGroupElement : public WMLFormControlElement, public OptionGroupElement {
public:
WMLOptGroupElement(const QualifiedName& tagName, Document*);
virtual ~WMLOptGroupElement();
String title() const { return m_title; }
virtual const AtomicString& formControlType() const;
virtual bool rendererIsNeeded(RenderStyle*) { return false; }
virtual bool insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionCode&, bool shouldLazyAttach = false);
virtual bool replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionCode&, bool shouldLazyAttach = false);
virtual bool removeChild(Node* child, ExceptionCode&);
virtual bool appendChild(PassRefPtr<Node> newChild, ExceptionCode&, bool shouldLazyAttach = false);
virtual bool removeChildren();
virtual void accessKeyAction(bool sendToAnyElement);
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
virtual void parseMappedAttribute(MappedAttribute*);
virtual void attach();
virtual void detach();
virtual void setRenderStyle(PassRefPtr<RenderStyle>);
virtual String groupLabelText() const;
private:
virtual RenderStyle* nonRendererRenderStyle() const;
void recalcSelectOptions();
private:
String m_title;
RefPtr<RenderStyle> m_style;
};
}
#endif
#endif