⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html_formimpl.h

📁 konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版本源码包.
💻 H
📖 第 1 页 / 共 2 页
字号:
    virtual void attach();    virtual bool encoding(const QTextCodec*, khtml::encodingList&, bool);    typeEnum inputType() const { return m_type; }    virtual void reset();    // used in case input type=image was clicked.    int clickX() const { return xPos; }    int clickY() const { return yPos; }    virtual void defaultEventHandler(EventImpl *evt);    virtual bool isEditable();    DOMString altText() const;    void activate();    void setUnsubmittedFormChange(bool unsubmitted) { m_unsubmittedFormChange = unsubmitted; }protected:    void parseType(const DOMString& t);    DOMString m_value;    int       xPos;    short     m_maxLen;    short     m_size;    short     yPos;    typeEnum m_type : 4;    bool m_clicked : 1 ;    bool m_checked : 1;    bool m_haveType : 1;    bool m_activeSubmit : 1;    bool m_autocomplete : 1;    bool m_inited : 1;    bool m_unsubmittedFormChange : 1;};// -------------------------------------------------------------------------class HTMLLabelElementImpl : public HTMLGenericFormElementImpl{public:    HTMLLabelElementImpl(DocumentPtr *doc);    virtual ~HTMLLabelElementImpl();    virtual Id id() const;    virtual void attach();    virtual void defaultEventHandler(EventImpl *evt);    virtual bool isFocusable() const { return true; };    virtual bool isTabFocusable() const { return false; };    NodeImpl* getFormElement(); private:    DOMString m_formElementID;};// -------------------------------------------------------------------------class HTMLLegendElementImpl : public HTMLGenericFormElementImpl{public:    HTMLLegendElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    virtual ~HTMLLegendElementImpl();    virtual Id id() const;    virtual void attach();    virtual void parseAttribute(AttributeImpl *attr);};// -------------------------------------------------------------------------class HTMLSelectElementImpl : public HTMLGenericFormElementImpl{    friend class khtml::RenderSelect;public:    HTMLSelectElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    ~HTMLSelectElementImpl();    virtual Id id() const;    DOMString type() const;    long selectedIndex() const;    void setSelectedIndex( long index );    virtual bool isEnumeratable() const { return true; }    long length() const;    long minWidth() const { return m_minwidth; }    long size() const { return m_size; }    bool multiple() const { return m_multiple; }    void add ( const HTMLElement &element, const HTMLElement &before, int& exceptioncode );    void remove ( long index );    void blur();    void focus();    DOMString value() const;    void setValue(DOMStringImpl* value);    virtual bool maintainsState() { return true; }    virtual QString state();    virtual void restoreState(const QString &);    virtual NodeImpl *insertBefore ( NodeImpl *newChild, NodeImpl *refChild, int &exceptioncode );    virtual NodeImpl *replaceChild ( NodeImpl *newChild, NodeImpl *oldChild, int &exceptioncode );    virtual NodeImpl *removeChild ( NodeImpl *oldChild, int &exceptioncode );    virtual NodeImpl *appendChild ( NodeImpl *newChild, int &exceptioncode );    virtual NodeImpl *addChild( NodeImpl* newChild );    virtual void childrenChanged();    virtual void parseAttribute(AttributeImpl *attr);    virtual void attach();    virtual bool encoding(const QTextCodec*, khtml::encodingList&, bool);    // get the actual listbox index of the optionIndexth option    int optionToListIndex(int optionIndex) const;    // reverse of optionToListIndex - get optionIndex from listboxIndex    int listToOptionIndex(int listIndex) const;    void setRecalcListItems();    QMemArray<HTMLGenericFormElementImpl*> listItems() const     {         if (m_recalcListItems) const_cast<HTMLSelectElementImpl*>(this)->recalcListItems();         return m_listItems;     }    virtual void reset();    void notifyOptionSelected(HTMLOptionElementImpl *selectedOption, bool selected);private:    void recalcListItems() const;protected:    mutable QMemArray<HTMLGenericFormElementImpl*> m_listItems;    short m_minwidth;    signed short m_size : 15;    bool m_multiple : 1;    mutable bool m_recalcListItems :1;    mutable unsigned int   m_length:31;};// -------------------------------------------------------------------------class HTMLKeygenElementImpl : public HTMLSelectElementImpl{public:    HTMLKeygenElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    virtual Id id() const;    DOMString type() const;    long selectedIndex() const;    void setSelectedIndex( long index );    // ### this is just a rough guess    virtual bool isEnumeratable() const { return false; }    virtual void parseAttribute(AttributeImpl *attr);    virtual bool encoding(const QTextCodec*, khtml::encodingList&, bool);};// -------------------------------------------------------------------------class HTMLOptGroupElementImpl : public HTMLGenericFormElementImpl{public:    HTMLOptGroupElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0)        : HTMLGenericFormElementImpl(doc, f) {}    virtual Id id() const;};// ---------------------------------------------------------------------------class HTMLOptionElementImpl : public HTMLGenericFormElementImpl{    friend class khtml::RenderSelect;    friend class DOM::HTMLSelectElementImpl;public:    HTMLOptionElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    virtual Id id() const;    DOMString text() const;    long index() const;    void setIndex( long );    virtual void parseAttribute(AttributeImpl *attr);    DOMString value() const;    void setValue(DOMStringImpl* value);    bool selected() const { return m_selected; }    void setSelected(bool _selected);    HTMLSelectElementImpl *getSelect() const;protected:    DOMString m_value;    bool m_selected;};// -------------------------------------------------------------------------class HTMLTextAreaElementImpl : public HTMLGenericFormElementImpl{    friend class khtml::RenderTextArea;public:    enum WrapMethod {        ta_NoWrap,        ta_Virtual,        ta_Physical    };    HTMLTextAreaElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    ~HTMLTextAreaElementImpl();    virtual Id id() const;    long cols() const { return m_cols; }    long rows() const { return m_rows; }    WrapMethod wrap() const { return m_wrap; }    virtual bool isEnumeratable() const { return true; }    DOMString type() const;    virtual bool maintainsState() { return true; }    virtual QString state();    virtual void restoreState(const QString &);    void select (  );    virtual void parseAttribute(AttributeImpl *attr);    virtual void attach();    virtual bool encoding(const QTextCodec*, khtml::encodingList&, bool);    virtual void reset();    DOMString value();    void setValue(DOMString _value);    DOMString defaultValue();    void setDefaultValue(DOMString _defaultValue);    void blur();    void focus();    virtual bool isEditable();    void setUnsubmittedFormChange(bool unsubmitted) { m_unsubmittedFormChange = unsubmitted; }protected:    int m_rows;    int m_cols;    WrapMethod m_wrap;    QString m_value;    bool m_dirtyvalue: 1;    bool m_unsubmittedFormChange: 1;    bool m_initialized: 1;};// -------------------------------------------------------------------------class HTMLIsIndexElementImpl : public HTMLInputElementImpl{public:    HTMLIsIndexElementImpl(DocumentPtr *doc, HTMLFormElementImpl *f = 0);    ~HTMLIsIndexElementImpl();    virtual Id id() const;    virtual void parseAttribute(AttributeImpl *attr);    DOMString prompt() const;    void setPrompt(const DOMString& _value);};} //namespace#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -