diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
commit | dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch) | |
tree | c297348a55df66c571de4525646e0b9762427353 /khtml/dom/html_misc.cpp | |
parent | b7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff) | |
download | tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'khtml/dom/html_misc.cpp')
-rw-r--r-- | khtml/dom/html_misc.cpp | 214 |
1 files changed, 0 insertions, 214 deletions
diff --git a/khtml/dom/html_misc.cpp b/khtml/dom/html_misc.cpp deleted file mode 100644 index fb975b7cf..000000000 --- a/khtml/dom/html_misc.cpp +++ /dev/null @@ -1,214 +0,0 @@ -/** - * 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_misc.h" -#include "html/html_miscimpl.h" -#include "misc/htmlhashes.h" - -using namespace DOM; - -HTMLBaseFontElement::HTMLBaseFontElement() : HTMLElement() -{ -} - -HTMLBaseFontElement::HTMLBaseFontElement(const HTMLBaseFontElement &other) : HTMLElement(other) -{ -} - -HTMLBaseFontElement::HTMLBaseFontElement(HTMLBaseFontElementImpl *impl) : HTMLElement(impl) -{ -} - -HTMLBaseFontElement &HTMLBaseFontElement::operator = (const Node &other) -{ - assignOther( other, ID_BASEFONT ); - return *this; -} - -HTMLBaseFontElement &HTMLBaseFontElement::operator = (const HTMLBaseFontElement &other) -{ - HTMLElement::operator = (other); - return *this; -} - -HTMLBaseFontElement::~HTMLBaseFontElement() -{ -} - -DOMString HTMLBaseFontElement::color() const -{ - if(!impl) return DOMString(); - return ((ElementImpl *)impl)->getAttribute(ATTR_COLOR); -} - -void HTMLBaseFontElement::setColor( const DOMString &value ) -{ - if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_COLOR, value); -} - -DOMString HTMLBaseFontElement::face() const -{ - if(!impl) return DOMString(); - return ((ElementImpl *)impl)->getAttribute(ATTR_FACE); -} - -void HTMLBaseFontElement::setFace( const DOMString &value ) -{ - if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FACE, value); -} - -DOMString HTMLBaseFontElement::size() const -{ - if(!impl) return DOMString(); - return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE); -} - -void HTMLBaseFontElement::setSize( const DOMString &value ) -{ - if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value); -} - -long HTMLBaseFontElement::getSize() const -{ - if(!impl) return 0; - return ((ElementImpl *)impl)->getAttribute(ATTR_SIZE).toInt(); -} - -void HTMLBaseFontElement::setSize( long _value ) -{ - if ( impl ) - { - DOMString value( TQString::number( _value ) ); - ((ElementImpl *)impl)->setAttribute(ATTR_SIZE, value); - } -} - - -// -------------------------------------------------------------------------- - -HTMLCollection::HTMLCollection() - : impl(0) -{ -} - -HTMLCollection::HTMLCollection(const HTMLCollection &other) -{ - impl = other.impl; - if(impl) impl->ref(); -} - -HTMLCollection::HTMLCollection(NodeImpl *base, int type) -{ - impl = new HTMLCollectionImpl(base, type); - impl->ref(); -} - -HTMLCollection &HTMLCollection::operator = (const HTMLCollection &other) -{ - if(impl != other.impl) { - if(impl) impl->deref(); - impl = other.impl; - if(impl) impl->ref(); - } - return *this; -} - -HTMLCollection::~HTMLCollection() -{ - if(impl) impl->deref(); -} - -unsigned long HTMLCollection::length() const -{ - if(!impl) return 0; - return ((HTMLCollectionImpl *)impl)->length(); -} - -Node HTMLCollection::item( unsigned long index ) const -{ - if(!impl) return 0; - return ((HTMLCollectionImpl *)impl)->item( index ); -} - -Node HTMLCollection::namedItem( const DOMString &name ) const -{ - if(!impl) return 0; - return ((HTMLCollectionImpl *)impl)->namedItem( name ); -} - -Node HTMLCollection::base() const -{ - if ( !impl ) - return 0; - - return static_cast<HTMLCollectionImpl*>( impl )->m_refNode; -} - -Node HTMLCollection::firstItem() const -{ - if ( !impl ) - return 0; - return static_cast<HTMLCollectionImpl*>( impl )->firstItem(); -} - -Node HTMLCollection::nextItem() const -{ - if ( !impl ) - return 0; - return static_cast<HTMLCollectionImpl*>( impl )->nextItem(); -} - -Node HTMLCollection::nextNamedItem( const DOMString &name ) const -{ - if ( !impl ) - return 0; - return static_cast<HTMLCollectionImpl*>( impl )->nextNamedItem( name ); -} - -HTMLCollectionImpl *HTMLCollection::handle() const -{ - return impl; -} - -bool HTMLCollection::isNull() const -{ - return (impl == 0); -} - - -// ----------------------------------------------------------------------------- - -HTMLFormCollection::HTMLFormCollection(NodeImpl *base) - : HTMLCollection() -{ - impl = new HTMLFormCollectionImpl(base); - impl->ref(); -} - - -// ----------------------------------------------------------------------------- -HTMLMappedNameCollection::HTMLMappedNameCollection(NodeImpl *base, int type, const DOMString &name ) -{ - impl = new HTMLMappedNameCollectionImpl(base, type, name); - impl->ref(); -} |