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

📄 html.h

📁 pwlib源码库
💻 H
📖 第 1 页 / 共 2 页
字号:
                     : Element("INS", NULL, InInsertedText, InBody, NoCRLF) { }    };    class DeletedText : public Element {      public: DeletedText()                      : Element("DEL", NULL, InDeletedText, InBody, NoCRLF) { }    };    class SimpleList : public Element {      public:        SimpleList(const char * attr = NULL);      protected:        virtual void AddAttr(PHTML & html) const;    };    class BulletList : public Element {      public:        BulletList(const char * attr = NULL);    };    class OrderedList : public Element {      public:        OrderedList(int seqNum = 0, const char * attr = NULL);      protected:        virtual void AddAttr(PHTML & html) const;      private:        int sequenceNum;    };    class DefinitionList : public Element {      public:        DefinitionList(const char * attr = NULL);    };    class ListHeading : public Element {      public:        ListHeading(const char * attr = NULL);    };    class ListItem : public Element {      public:        ListItem(int skip = 0, const char * attr = NULL);      protected:        virtual void AddAttr(PHTML & html) const;      private:        int skipSeq;    };    class DefinitionTerm : public Element {      public:        DefinitionTerm(const char * attr = NULL);      protected:        virtual void Output(PHTML & html) const;    };    class DefinitionItem : public Element {      public:        DefinitionItem(const char * attr = NULL);      protected:        virtual void Output(PHTML & html) const;    };    enum BorderCodes {      NoBorder,      Border    };    class TableStart : public Element {      public:        TableStart(const char * attr = NULL);        TableStart(BorderCodes border, const char * attr = NULL);      protected:        virtual void Output(PHTML & html) const;        virtual void AddAttr(PHTML & html) const;      private:        BOOL borderFlag;    };    friend class TableStart;    class TableEnd : public Element {      public:        TableEnd();      protected:        virtual void Output(PHTML & html) const;    };    friend class TableEnd;    class TableRow : public Element {      public:        TableRow(const char * attr = NULL);    };    class TableHeader : public Element {      public:        TableHeader(const char * attr = NULL);    };    class TableData : public Element {      public:        TableData(const char * attr = NULL);    };    class Form : public Element {      public:        Form(          const char * method = NULL,          const char * action = NULL,          const char * encoding = NULL,          const char * script = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        const char * methodString;        const char * actionString;        const char * mimeTypeString;        const char * scriptString;    };    enum DisableCodes {      Enabled,      Disabled    };    class FieldElement : public Element {      protected:        FieldElement(          const char * nam,          const char * attr,          ElementInSet elmt,          OptionalCRLF opt,          DisableCodes disabled        );        virtual void AddAttr(PHTML & html) const;      private:        BOOL disabledFlag;    };    class Select : public FieldElement {      public:        Select(          const char * fname = NULL,          const char * attr = NULL        );        Select(          const char * fname,          DisableCodes disabled,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        const char * nameString;    };    enum SelectionCodes {      NotSelected,      Selected    };    class Option : public FieldElement {      public:        Option(          const char * attr = NULL        );        Option(          SelectionCodes select,          const char * attr = NULL        );        Option(          DisableCodes disabled,          const char * attr = NULL        );        Option(          SelectionCodes select,          DisableCodes disabled,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        BOOL selectedFlag;    };    class FormField : public FieldElement {      protected:        FormField(          const char * nam,          const char * attr,          ElementInSet elmt,          OptionalCRLF opt,          DisableCodes disabled,          const char * fname        );        virtual void AddAttr(PHTML & html) const;      private:        const char * nameString;    };    class TextArea : public FormField {      public:        TextArea(          const char * fname,          DisableCodes disabled = Enabled,          const char * attr = NULL        );        TextArea(          const char * fname,          int rows, int cols,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        int numRows, numCols;    };    class InputField : public FormField {      protected:        InputField(          const char * type,          const char * fname,          DisableCodes disabled,          const char * attr        );        virtual void AddAttr(PHTML & html) const;      private:        const char * typeString;    };    class HiddenField : public InputField {      public:        HiddenField(          const char * fname,          const char * value,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        const char * valueString;    };    class InputText : public InputField {      public:        InputText(          const char * fname,          int size,          const char * init = NULL,          const char * attr = NULL        );        InputText(          const char * fname,          int size,          DisableCodes disabled,          const char * attr = NULL        );        InputText(          const char * fname,          int size,          int maxLength,          DisableCodes disabled = Enabled,          const char * attr = NULL        );        InputText(          const char * fname,          int size,          const char * init,          int maxLength,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        InputText(          const char * type,          const char * fname,          int size,          const char * init,          int maxLength,          DisableCodes disabled,          const char * attr        );        virtual void AddAttr(PHTML & html) const;      private:        const char * value;        int width, length;    };    class InputPassword : public InputText {      public:        InputPassword(          const char * fname,          int size,          const char * init = NULL,          const char * attr = NULL        );        InputPassword(          const char * fname,          int size,          DisableCodes disabled,          const char * attr = NULL        );        InputPassword(          const char * fname,          int size,          int maxLength,          DisableCodes disabled = Enabled,          const char * attr = NULL        );        InputPassword(          const char * fname,          int size,          const char * init,          int maxLength,          DisableCodes disabled = Enabled,          const char * attr = NULL        );    };    enum CheckedCodes {      UnChecked,      Checked    };    class RadioButton : public InputField {      public:        RadioButton(          const char * fname,          const char * value,          const char * attr = NULL        );        RadioButton(          const char * fname,          const char * value,          DisableCodes disabled,          const char * attr = NULL        );        RadioButton(          const char * fname,          const char * value,          CheckedCodes check,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        RadioButton(          const char * type,          const char * fname,          const char * value,          CheckedCodes check,          DisableCodes disabled,          const char * attr        );        virtual void AddAttr(PHTML & html) const;      private:        const char * valueString;        BOOL checkedFlag;    };    class CheckBox : public RadioButton {      public:        CheckBox(          const char * fname,          const char * attr = NULL        );        CheckBox(          const char * fname,          DisableCodes disabled,          const char * attr = NULL        );        CheckBox(          const char * fname,          CheckedCodes check,          DisableCodes disabled = Enabled,          const char * attr = NULL        );    };    class InputRange : public InputField {      public:        InputRange(          const char * fname,          int min, int max,          int value = 0,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        int minValue, maxValue, initValue;    };    class InputFile : public InputField {      public:        InputFile(          const char * fname,          const char * accept = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        virtual void AddAttr(PHTML & html) const;      private:        const char * acceptString;    };    class InputImage : public InputField {      public:        InputImage(          const char * fname,          const char * src = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        InputImage(          const char * type,          const char * fname,          const char * src,          DisableCodes disabled,          const char * attr        );        virtual void AddAttr(PHTML & html) const;      private:        const char * srcString;    };    class InputScribble : public InputImage {      public:        InputScribble(          const char * fname,          const char * src = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );    };    class ResetButton : public InputImage {      public:        ResetButton(          const char * title,          const char * fname = NULL,          const char * src = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );      protected:        ResetButton(          const char * type,          const char * title,          const char * fname = NULL,          const char * src = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );        virtual void AddAttr(PHTML & html) const;      private:        const char * titleString;    };    class SubmitButton : public ResetButton {      public:        SubmitButton(          const char * title,          const char * fname = NULL,          const char * src = NULL,          DisableCodes disabled = Enabled,          const char * attr = NULL        );    };  protected:    virtual void AssignContents(const PContainer & c);  private:    ElementInSet initialElement;    BYTE elementSet[NumElementsInSet/8+1];    PINDEX tableNestLevel;};#endif// End Of File ///////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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