File indexing completed on 2024-05-05 16:10:13
0001 /* 0002 * This file is part of the DOM implementation for KDE. 0003 * 0004 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 0005 * (C) 1999 Antti Koivisto (koivisto@kde.org) 0006 * 0007 * This library is free software; you can redistribute it and/or 0008 * modify it under the terms of the GNU Library General Public 0009 * License as published by the Free Software Foundation; either 0010 * version 2 of the License, or (at your option) any later version. 0011 * 0012 * This library is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Library General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Library General Public License 0018 * along with this library; see the file COPYING.LIB. If not, write to 0019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0020 * Boston, MA 02110-1301, USA. 0021 * 0022 */ 0023 #ifndef HTML_LISTIMPL_H 0024 #define HTML_LISTIMPL_H 0025 0026 /* 0027 * we ignore the deprecated compact attribute. Netscape does so too... 0028 */ 0029 0030 #include "html_elementimpl.h" 0031 0032 namespace DOM 0033 { 0034 0035 class HTMLUListElementImpl : public HTMLElementImpl 0036 { 0037 public: 0038 HTMLUListElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc) {} 0039 0040 Id id() const override; 0041 0042 void parseAttribute(AttributeImpl *) override; 0043 0044 virtual int start() const 0045 { 0046 return 1; 0047 } 0048 }; 0049 0050 // ------------------------------------------------------------------------- 0051 0052 class HTMLDirectoryElementImpl : public HTMLElementImpl 0053 { 0054 public: 0055 HTMLDirectoryElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc) {} 0056 0057 Id id() const override; 0058 }; 0059 0060 // ------------------------------------------------------------------------- 0061 0062 class HTMLMenuElementImpl : public HTMLElementImpl 0063 { 0064 public: 0065 HTMLMenuElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc) {} 0066 virtual ~HTMLMenuElementImpl() {} 0067 0068 Id id() const override; 0069 }; 0070 0071 // ------------------------------------------------------------------------- 0072 0073 class HTMLOListElementImpl : public HTMLUListElementImpl 0074 { 0075 public: 0076 HTMLOListElementImpl(DocumentImpl *doc) 0077 : HTMLUListElementImpl(doc), _start(1) {} 0078 0079 Id id() const override; 0080 void parseAttribute(AttributeImpl *) override; 0081 0082 int start() const override 0083 { 0084 return _start; 0085 } 0086 private: 0087 int _start; 0088 }; 0089 0090 // ------------------------------------------------------------------------- 0091 0092 class HTMLLIElementImpl : public HTMLElementImpl 0093 { 0094 public: 0095 HTMLLIElementImpl(DocumentImpl *doc) 0096 : HTMLElementImpl(doc) {} 0097 0098 Id id() const override; 0099 void parseAttribute(AttributeImpl *attr) override; 0100 void attach() override; 0101 }; 0102 0103 // ------------------------------------------------------------------------- 0104 0105 class HTMLDListElementImpl : public HTMLElementImpl 0106 { 0107 public: 0108 HTMLDListElementImpl(DocumentImpl *doc) : HTMLElementImpl(doc) {} 0109 virtual ~HTMLDListElementImpl() {} 0110 0111 Id id() const override; 0112 }; 0113 0114 } //namespace 0115 0116 #endif