HTMLTextAreaElement.h [plain text]
#ifndef HTML_HTMLTextAreaElementImpl_H
#define HTML_HTMLTextAreaElementImpl_H
#include "HTMLGenericFormElement.h"
namespace WebCore {
class HTMLTextAreaElement : public HTMLGenericFormElement {
public:
enum WrapMethod { ta_NoWrap, ta_Virtual, ta_Physical };
HTMLTextAreaElement(Document*, HTMLFormElement* = 0);
~HTMLTextAreaElement();
virtual bool checkDTD(const Node* newChild) { return newChild->isTextNode(); }
int cols() const { return m_cols; }
int rows() const { return m_rows; }
WrapMethod wrap() const { return m_wrap; }
virtual bool isEnumeratable() const { return true; }
virtual const AtomicString& type() const;
virtual String stateValue() const;
virtual void restoreState(const String&);
bool readOnly() const { return isReadOnlyControl(); }
int selectionStart();
int selectionEnd();
void setSelectionStart(int);
void setSelectionEnd(int);
void select();
void setSelectionRange(int, int);
virtual void childrenChanged();
virtual void parseMappedAttribute(MappedAttribute*);
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual bool appendFormData(FormDataList&, bool);
virtual void reset();
virtual void defaultEventHandler(Event*);
virtual bool isMouseFocusable() const;
virtual bool isKeyboardFocusable() const;
virtual void focus();
virtual void updateFocusAppearance();
String value() const;
void setValue(const String&);
String defaultValue() const;
void setDefaultValue(const String&);
void rendererWillBeDestroyed();
virtual void accessKeyAction(bool sendToAnyElement);
String accessKey() const;
void setAccessKey(const String&);
void setCols(int);
void setRows(int);
void cacheSelection(int s, int e) { cachedSelStart = s; cachedSelEnd = e; };
virtual bool willRespondToMouseClickEvents();
private:
void updateValue() const;
int m_rows;
int m_cols;
WrapMethod m_wrap;
mutable String m_value;
int cachedSelStart;
int cachedSelEnd;
};
}
#endif