summaryrefslogtreecommitdiffstats
path: root/tdehtml/dom/html_list.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:17:21 -0600
commitdfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch)
treec297348a55df66c571de4525646e0b9762427353 /tdehtml/dom/html_list.cpp
parentb7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff)
downloadtdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz
tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdehtml/dom/html_list.cpp')
-rw-r--r--tdehtml/dom/html_list.cpp354
1 files changed, 354 insertions, 0 deletions
diff --git a/tdehtml/dom/html_list.cpp b/tdehtml/dom/html_list.cpp
new file mode 100644
index 000000000..8d66fe3fc
--- /dev/null
+++ b/tdehtml/dom/html_list.cpp
@@ -0,0 +1,354 @@
+/**
+ * This file is part of the DOM implementation for KDE.
+ *
+ * (C) 1999 Lars Knoll (knoll@kde.org)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+// --------------------------------------------------------------------------
+
+#include "dom/html_list.h"
+#include "html/html_listimpl.h"
+#include "misc/htmlhashes.h"
+
+using namespace DOM;
+
+HTMLDListElement::HTMLDListElement() : HTMLElement()
+{
+}
+
+HTMLDListElement::HTMLDListElement(const HTMLDListElement &other) : HTMLElement(other)
+{
+}
+
+HTMLDListElement::HTMLDListElement(HTMLDListElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLDListElement &HTMLDListElement::operator = (const Node &other)
+{
+ assignOther( other, ID_DL );
+ return *this;
+}
+
+HTMLDListElement &HTMLDListElement::operator = (const HTMLDListElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLDListElement::~HTMLDListElement()
+{
+}
+
+bool HTMLDListElement::compact() const
+{
+ if(!impl) return 0;
+ return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
+}
+
+void HTMLDListElement::setCompact( bool _compact )
+{
+ if(impl)
+ {
+ DOMString str;
+ if( _compact )
+ str = "";
+ ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+HTMLDirectoryElement::HTMLDirectoryElement() : HTMLElement()
+{
+}
+
+HTMLDirectoryElement::HTMLDirectoryElement(const HTMLDirectoryElement &other) : HTMLElement(other)
+{
+}
+
+HTMLDirectoryElement::HTMLDirectoryElement(HTMLDirectoryElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLDirectoryElement &HTMLDirectoryElement::operator = (const Node &other)
+{
+ assignOther( other, ID_DIR );
+ return *this;
+}
+
+HTMLDirectoryElement &HTMLDirectoryElement::operator = (const HTMLDirectoryElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLDirectoryElement::~HTMLDirectoryElement()
+{
+}
+
+bool HTMLDirectoryElement::compact() const
+{
+ if(!impl) return 0;
+ return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
+}
+
+void HTMLDirectoryElement::setCompact( bool _compact )
+{
+ if(impl)
+ {
+ DOMString str;
+ if( _compact )
+ str = "";
+ ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+HTMLLIElement::HTMLLIElement() : HTMLElement()
+{
+}
+
+HTMLLIElement::HTMLLIElement(const HTMLLIElement &other) : HTMLElement(other)
+{
+}
+
+HTMLLIElement::HTMLLIElement(HTMLLIElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLLIElement &HTMLLIElement::operator = (const Node &other)
+{
+ assignOther( other, ID_LI );
+ return *this;
+}
+
+HTMLLIElement &HTMLLIElement::operator = (const HTMLLIElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLLIElement::~HTMLLIElement()
+{
+}
+
+DOMString HTMLLIElement::type() const
+{
+ if(!impl) return DOMString();
+ return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
+}
+
+void HTMLLIElement::setType( const DOMString &value )
+{
+ if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
+}
+
+long HTMLLIElement::value() const
+{
+ if(!impl) return 0;
+ return ((ElementImpl *)impl)->getAttribute(ATTR_VALUE).toInt();
+}
+
+void HTMLLIElement::setValue( long _value )
+{
+ if(impl) {
+ DOMString value(TQString::number(_value));
+ ((ElementImpl *)impl)->setAttribute(ATTR_VALUE,value);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+HTMLMenuElement::HTMLMenuElement() : HTMLElement()
+{
+}
+
+HTMLMenuElement::HTMLMenuElement(const HTMLMenuElement &other) : HTMLElement(other)
+{
+}
+
+HTMLMenuElement::HTMLMenuElement(HTMLMenuElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLMenuElement &HTMLMenuElement::operator = (const Node &other)
+{
+ assignOther( other, ID_MENU );
+ return *this;
+}
+
+HTMLMenuElement &HTMLMenuElement::operator = (const HTMLMenuElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLMenuElement::~HTMLMenuElement()
+{
+}
+
+bool HTMLMenuElement::compact() const
+{
+ if(!impl) return 0;
+ return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
+}
+
+void HTMLMenuElement::setCompact( bool _compact )
+{
+ if(impl)
+ {
+ DOMString str;
+ if( _compact )
+ str = "";
+ ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
+ }
+}
+
+// --------------------------------------------------------------------------
+
+HTMLOListElement::HTMLOListElement() : HTMLElement()
+{
+}
+
+HTMLOListElement::HTMLOListElement(const HTMLOListElement &other) : HTMLElement(other)
+{
+}
+
+HTMLOListElement::HTMLOListElement(HTMLOListElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLOListElement &HTMLOListElement::operator = (const Node &other)
+{
+ assignOther( other, ID_OL );
+ return *this;
+}
+
+HTMLOListElement &HTMLOListElement::operator = (const HTMLOListElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLOListElement::~HTMLOListElement()
+{
+}
+
+bool HTMLOListElement::compact() const
+{
+ if(!impl) return 0;
+ return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
+}
+
+void HTMLOListElement::setCompact( bool _compact )
+{
+ if(impl)
+ {
+ DOMString str;
+ if( _compact )
+ str = "";
+ ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
+ }
+}
+
+long HTMLOListElement::start() const
+{
+ if(!impl) return 0;
+ return ((ElementImpl *)impl)->getAttribute(ATTR_START).toInt();
+}
+
+void HTMLOListElement::setStart( long _start )
+{
+
+ if(impl) {
+ DOMString value(TQString::number(_start));
+ ((ElementImpl *)impl)->setAttribute(ATTR_START,value);
+ }
+}
+
+DOMString HTMLOListElement::type() const
+{
+ if(!impl) return DOMString();
+ return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
+}
+
+void HTMLOListElement::setType( const DOMString &value )
+{
+ if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
+}
+
+// --------------------------------------------------------------------------
+
+HTMLUListElement::HTMLUListElement() : HTMLElement()
+{
+}
+
+HTMLUListElement::HTMLUListElement(const HTMLUListElement &other) : HTMLElement(other)
+{
+}
+
+HTMLUListElement::HTMLUListElement(HTMLUListElementImpl *impl) : HTMLElement(impl)
+{
+}
+
+HTMLUListElement &HTMLUListElement::operator = (const Node &other)
+{
+ assignOther( other, ID_UL );
+ return *this;
+}
+
+HTMLUListElement &HTMLUListElement::operator = (const HTMLUListElement &other)
+{
+ HTMLElement::operator = (other);
+ return *this;
+}
+
+HTMLUListElement::~HTMLUListElement()
+{
+}
+
+bool HTMLUListElement::compact() const
+{
+ if(!impl) return 0;
+ return !((ElementImpl *)impl)->getAttribute(ATTR_COMPACT).isNull();
+}
+
+void HTMLUListElement::setCompact( bool _compact )
+{
+ if(impl)
+ {
+ DOMString str;
+ if( _compact )
+ str = "";
+ ((ElementImpl *)impl)->setAttribute(ATTR_COMPACT, str);
+ }
+}
+
+DOMString HTMLUListElement::type() const
+{
+ if(!impl) return DOMString();
+ return ((ElementImpl *)impl)->getAttribute(ATTR_TYPE);
+}
+
+void HTMLUListElement::setType( const DOMString &value )
+{
+ if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_TYPE, value);
+}
+