Commit 9ab2bf52 authored by Lars Knoll's avatar Lars Knoll
Browse files

more DOM cleanups...

svn path=/trunk/kdelibs/; revision=31030
parent dd09e2f8
......@@ -203,7 +203,7 @@ bool HTMLFrameElement::noResize() const
return ((HTMLFrameElementImpl *)impl)->noResize();
}
void HTMLFrameElement::setNoResize( const bool &_noResize )
void HTMLFrameElement::setNoResize( bool _noResize )
{
// ### fix the attribute too...
if(impl)
......
......@@ -237,7 +237,7 @@ public:
/**
* see @ref noResize
*/
void setNoResize( const bool & );
void setNoResize( bool );
/**
* Specify whether or not the frame should have scrollbars. See
......
......@@ -147,7 +147,7 @@ bool HTMLFrameElementImpl::noResize() const
return false;
}
void HTMLFrameElementImpl::setNoResize( const bool & )
void HTMLFrameElementImpl::setNoResize( bool )
{
}
......
......@@ -69,7 +69,7 @@ public:
virtual tagStatus endTag() { return FRAMEEndTag; }
bool noResize() const;
void setNoResize( const bool & );
void setNoResize( bool );
virtual void parseAttribute(Attribute *);
virtual void layout(bool);
......
......@@ -58,13 +58,13 @@ ushort HTMLBlockquoteElementImpl::id() const
return ID_BLOCKQUOTE;
}
void HTMLBlockquoteElementImpl::setAvailableWidth(int w = -1)
void HTMLBlockquoteElementImpl::setAvailableWidth(int w)
{
if(w != -1) availableWidth = w - 2*BLOCKQUOTEINDENT;
if(availableWidth < 20) availableWidth = 20;
NodeImpl *child = firstChild();
while(child != 0)
while(child != 0)
{
child->setAvailableWidth(availableWidth);
child = child->nextSibling();
......@@ -183,7 +183,7 @@ void HTMLHRElementImpl::layout(bool)
setLayouted();
}
void HTMLHRElementImpl::print( QPainter *p, int _x, int _y, int _w, int _h,
void HTMLHRElementImpl::print( QPainter *p, int _x, int _y, int _w, int _h,
int _tx, int _ty)
{
_tx += x;
......@@ -191,7 +191,7 @@ void HTMLHRElementImpl::print( QPainter *p, int _x, int _y, int _w, int _h,
printObject(p, _x, _y, _w, _h, _tx, _ty);
}
void HTMLHRElementImpl::printObject(QPainter *p, int, int _y,
void HTMLHRElementImpl::printObject(QPainter *p, int, int _y,
int, int _h, int _tx, int _ty)
{
#ifdef DEBUG_LAYOUT
......@@ -200,7 +200,7 @@ void HTMLHRElementImpl::printObject(QPainter *p, int, int _y,
if((_ty - ascent > _y + _h) || (_ty + descent < _y)) return;
QColorGroup colorGrp( Qt::black, Qt::black, QColor(220,220,220), QColor(100,100,100),
QColorGroup colorGrp( Qt::black, Qt::black, QColor(220,220,220), QColor(100,100,100),
Qt::gray, Qt::black, Qt::black );
int l = length.width(width);
......@@ -210,9 +210,9 @@ void HTMLHRElementImpl::printObject(QPainter *p, int, int _y,
{
xp += (width - l)/2;
}
int yp = _ty ;
int lw = size/2;
if ( shade )
......@@ -401,7 +401,7 @@ void HTMLPreElementImpl::layout( bool )
printf("error: non inline element in <pre>\n");
child = child->nextSibling();
}
else
else
#endif
child = calcParagraph(child);
}
......
......@@ -75,7 +75,7 @@ bool HTMLButtonElement::disabled() const
return ((HTMLButtonElementImpl *)impl)->disabled();
}
void HTMLButtonElement::setDisabled( const bool &_disabled )
void HTMLButtonElement::setDisabled( bool _disabled )
{
// ###
if(impl)
......@@ -100,7 +100,7 @@ long HTMLButtonElement::tabIndex() const
return s.toInt();
}
void HTMLButtonElement::setTabIndex( const long &_tabIndex )
void HTMLButtonElement::setTabIndex( long _tabIndex )
{
if(!impl) return;
......@@ -312,7 +312,7 @@ bool HTMLInputElement::defaultChecked() const
return ((HTMLInputElementImpl *)impl)->defaultChecked();
}
void HTMLInputElement::setDefaultChecked( const bool &_defaultChecked )
void HTMLInputElement::setDefaultChecked( bool _defaultChecked )
{
// ###
if(impl)
......@@ -375,7 +375,7 @@ bool HTMLInputElement::checked() const
return ((HTMLInputElementImpl *)impl)->checked();
}
void HTMLInputElement::setChecked( const bool &_checked )
void HTMLInputElement::setChecked( bool _checked )
{
// ###
if(impl)
......@@ -388,7 +388,7 @@ bool HTMLInputElement::disabled() const
return ((HTMLInputElementImpl *)impl)->disabled();
}
void HTMLInputElement::setDisabled( const bool &_disabled )
void HTMLInputElement::setDisabled( bool _disabled )
{
if(impl)
......@@ -401,7 +401,7 @@ long HTMLInputElement::maxLength() const
return ((HTMLInputElementImpl *)impl)->maxLength();
}
void HTMLInputElement::setMaxLength( const long &_maxLength )
void HTMLInputElement::setMaxLength( long _maxLength )
{
if(impl)
......@@ -425,7 +425,7 @@ bool HTMLInputElement::readOnly() const
return ((HTMLInputElementImpl *)impl)->readOnly();
}
void HTMLInputElement::setReadOnly( const bool &_readOnly )
void HTMLInputElement::setReadOnly( bool _readOnly )
{
if(impl)
......@@ -460,7 +460,7 @@ long HTMLInputElement::tabIndex() const
return ((HTMLInputElementImpl *)impl)->tabIndex();
}
void HTMLInputElement::setTabIndex( const long &_tabIndex )
void HTMLInputElement::setTabIndex( long _tabIndex )
{
if(impl)
......@@ -653,7 +653,7 @@ bool HTMLOptGroupElement::disabled() const
return ((HTMLOptGroupElementImpl *)impl)->disabled();
}
void HTMLOptGroupElement::setDisabled( const bool &_disabled )
void HTMLOptGroupElement::setDisabled( bool _disabled )
{
if(impl)
......@@ -707,7 +707,7 @@ long HTMLSelectElement::selectedIndex() const
return ((HTMLSelectElementImpl *)impl)->selectedIndex();
}
void HTMLSelectElement::setSelectedIndex( const long &_selectedIndex )
void HTMLSelectElement::setSelectedIndex( long _selectedIndex )
{
if(impl)
......@@ -749,7 +749,7 @@ bool HTMLSelectElement::disabled() const
return ((HTMLSelectElementImpl *)impl)->disabled();
}
void HTMLSelectElement::setDisabled( const bool &_disabled )
void HTMLSelectElement::setDisabled( bool _disabled )
{
if(impl)
......@@ -762,7 +762,7 @@ bool HTMLSelectElement::multiple() const
return ((HTMLSelectElementImpl *)impl)->multiple();
}
void HTMLSelectElement::setMultiple( const bool &_multiple )
void HTMLSelectElement::setMultiple( bool _multiple )
{
if(impl)
......@@ -786,7 +786,7 @@ long HTMLSelectElement::size() const
return ((HTMLSelectElementImpl *)impl)->size();
}
void HTMLSelectElement::setSize( const long &_size )
void HTMLSelectElement::setSize( long _size )
{
if(impl)
......@@ -799,7 +799,7 @@ long HTMLSelectElement::tabIndex() const
return ((HTMLSelectElementImpl *)impl)->tabIndex();
}
void HTMLSelectElement::setTabIndex( const long &_tabIndex )
void HTMLSelectElement::setTabIndex( long _tabIndex )
{
if(impl)
......@@ -812,7 +812,7 @@ void HTMLSelectElement::add( const HTMLElement &element, const HTMLElement &befo
((HTMLSelectElementImpl *)impl)->add( element, before );
}
void HTMLSelectElement::remove( const long &index )
void HTMLSelectElement::remove( long index )
{
if(impl)
((HTMLSelectElementImpl *)impl)->remove( index );
......@@ -888,7 +888,7 @@ long HTMLTextAreaElement::cols() const
return ((HTMLTextAreaElementImpl *)impl)->cols();
}
void HTMLTextAreaElement::setCols( const long &_cols )
void HTMLTextAreaElement::setCols( long _cols )
{
if(impl)
......@@ -901,7 +901,7 @@ bool HTMLTextAreaElement::disabled() const
return ((HTMLTextAreaElementImpl *)impl)->disabled();
}
void HTMLTextAreaElement::setDisabled( const bool &_disabled )
void HTMLTextAreaElement::setDisabled( bool _disabled )
{
if(impl)
......@@ -925,7 +925,7 @@ bool HTMLTextAreaElement::readOnly() const
return ((HTMLTextAreaElementImpl *)impl)->readOnly();
}
void HTMLTextAreaElement::setReadOnly( const bool &_readOnly )
void HTMLTextAreaElement::setReadOnly( bool _readOnly )
{
if(impl)
......@@ -938,7 +938,7 @@ long HTMLTextAreaElement::rows() const
return ((HTMLTextAreaElementImpl *)impl)->rows();
}
void HTMLTextAreaElement::setRows( const long &_rows )
void HTMLTextAreaElement::setRows( long _rows )
{
if(impl)
......@@ -951,7 +951,7 @@ long HTMLTextAreaElement::tabIndex() const
return ((HTMLTextAreaElementImpl *)impl)->tabIndex();
}
void HTMLTextAreaElement::setTabIndex( const long &_tabIndex )
void HTMLTextAreaElement::setTabIndex( long _tabIndex )
{
if(impl)
......@@ -1029,7 +1029,7 @@ bool HTMLOptionElement::defaultSelected() const
return ((HTMLOptionElementImpl *)impl)->defaultSelected();
}
void HTMLOptionElement::setDefaultSelected( const bool &_defaultSelected )
void HTMLOptionElement::setDefaultSelected( bool _defaultSelected )
{
if(impl)
......@@ -1048,7 +1048,7 @@ long HTMLOptionElement::index() const
return ((HTMLOptionElementImpl *)impl)->index();
}
void HTMLOptionElement::setIndex( const long &_index )
void HTMLOptionElement::setIndex( long _index )
{
if(impl)
......@@ -1061,7 +1061,7 @@ bool HTMLOptionElement::disabled() const
return ((HTMLOptionElementImpl *)impl)->disabled();
}
void HTMLOptionElement::setDisabled( const bool &_disabled )
void HTMLOptionElement::setDisabled( bool _disabled )
{
if(impl)
......
......@@ -85,7 +85,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* Form control or object name when submitted with a form. See the
......@@ -113,7 +113,7 @@ public:
/**
* see @ref tabIndex
*/
void setTabIndex( const long & );
void setTabIndex( long );
/**
* The type of button. See the <a
......@@ -297,8 +297,6 @@ public:
* Submits the form. It performs the same action as a submit
* button.
*
* @return
*
*/
void submit ( );
......@@ -306,8 +304,6 @@ public:
* Restores a form element's default values. It performs the same
* action as a reset button.
*
* @return
*
*/
void reset ( );
};
......@@ -360,7 +356,7 @@ public:
/**
* see @ref defaultChecked
*/
void setDefaultChecked( const bool & );
void setDefaultChecked( bool );
/**
* Returns the <code> FORM </code> element containing this
......@@ -441,7 +437,7 @@ public:
/**
* see @ref checked
*/
void setChecked( const bool & );
void setChecked( bool );
/**
* The control is unavailable in this context. See the <a
......@@ -454,7 +450,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* Maximum number of characters for text fields, when <code> type
......@@ -468,7 +464,7 @@ public:
/**
* see @ref maxLength
*/
void setMaxLength( const long & );
void setMaxLength( long );
/**
* Form control or object name when submitted with a form. See the
......@@ -496,7 +492,7 @@ public:
/**
* see @ref readOnly
*/
void setReadOnly( const bool & );
void setReadOnly( bool );
/**
* Size information. The precise meaning is specific to each type
......@@ -539,7 +535,7 @@ public:
/**
* see @ref tabIndex
*/
void setTabIndex( const long & );
void setTabIndex( long );
/**
* The type of control created. See the <a
......@@ -579,16 +575,12 @@ public:
/**
* Removes keyboard focus from this element.
*
* @return
*
*/
void blur ( );
/**
* Gives keyboard focus to this element.
*
* @return
*
*/
void focus ( );
......@@ -597,8 +589,6 @@ public:
* elements whose <code> type </code> attribute has one of the
* following values: "Text", "File", or "Password".
*
* @return
*
*/
void select ( );
......@@ -606,9 +596,6 @@ public:
* Simulate a mouse-click. For <code> INPUT </code> elements whose
* <code> type </code> attribute has one of the following values:
* "Button", "Checkbox", "Radio", "Reset", or "Submit".
*
* @return
*
*/
void click ( );
};
......@@ -765,7 +752,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* Assigns a label to this option group. See the <a
......@@ -822,7 +809,7 @@ public:
/**
* see @ref selectedIndex
*/
void setSelectedIndex( const long & );
void setSelectedIndex( long );
/**
* The current form control value.
......@@ -867,7 +854,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* If true, multiple <code> OPTION </code> elements may be
......@@ -881,7 +868,7 @@ public:
/**
* see @ref multiple
*/
void setMultiple( const bool & );
void setMultiple( bool );
/**
* Form control or object name when submitted with a form. See the
......@@ -908,7 +895,7 @@ public:
/**
* see @ref size
*/
void setSize( const long & );
void setSize( long );
/**
* Index that represents the element's position in the tabbing
......@@ -922,7 +909,7 @@ public:
/**
* see @ref tabIndex
*/
void setTabIndex( const long & );
void setTabIndex( long );
/**
* Add a new element to the collection of <code> OPTION </code>
......@@ -933,8 +920,6 @@ public:
* @param before The element to insert before, or NULL for the
* head of the list.
*
* @return
*
*/
void add ( const HTMLElement &element, const HTMLElement &before );
......@@ -945,24 +930,18 @@ public:
*
* @param index The index of the item to remove.
*
* @return
*
*/
void remove ( const long &index );
void remove ( long index );
/**
* Removes keyboard focus from this element.
*
* @return
*
*/
void blur ( );
/**
* Gives keyboard focus to this element.
*
* @return
*
*/
void focus ( );
};
......@@ -1034,7 +1013,7 @@ public:
/**
* see @ref cols
*/
void setCols( const long & );
void setCols( long );
/**
* The control is unavailable in this context. See the <a
......@@ -1047,7 +1026,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* Form control or object name when submitted with a form. See the
......@@ -1074,7 +1053,7 @@ public:
/**
* see @ref readOnly
*/
void setReadOnly( const bool & );
void setReadOnly( bool );
/**
* Number of text rows. See the <a
......@@ -1087,7 +1066,7 @@ public:
/**
* see @ref rows
*/
void setRows( const long & );
void setRows( long );
/**
* Index that represents the element's position in the tabbing
......@@ -1101,7 +1080,7 @@ public:
/**
* see @ref tabIndex
*/
void setTabIndex( const long & );
void setTabIndex( long );
/**
* The type of this form control.
......@@ -1124,25 +1103,16 @@ public:
/**
* Removes keyboard focus from this element.
*
* @return
*
*/
void blur ( );
/**
* Gives keyboard focus to this element.
*
* @return
*
*/
void focus ( );
/**
* Select the contents of the <code> TEXTAREA </code> .
*
* @return
*
*/
void select ( );
};
......@@ -1185,7 +1155,7 @@ public:
/**
* see @ref defaultSelected
*/
void setDefaultSelected( const bool & );
void setDefaultSelected( bool );
/**
* The text contained within the option element.
......@@ -1203,7 +1173,7 @@ public:
/**
* see @ref index
*/
void setIndex( const long & );
void setIndex( long );
/**
* The control is unavailable in this context. See the <a
......@@ -1216,7 +1186,7 @@ public:
/**
* see @ref disabled
*/
void setDisabled( const bool & );
void setDisabled( bool );
/**
* Option label for use in hierarchical menus. See the <a
......
......@@ -373,7 +373,7 @@ bool HTMLButtonElementImpl::disabled() const
return false;
}
void HTMLButtonElementImpl::setDisabled( const bool & )
void HTMLButtonElementImpl::setDisabled( bool )
{
}
......@@ -383,7 +383,7 @@ long HTMLButtonElementImpl::tabIndex() const
return 0;
}
void HTMLButtonElementImpl::setTabIndex( const long & )
void HTMLButtonElementImpl::setTabIndex( long )
{
}
......@@ -452,7 +452,7 @@ bool HTMLInputElementImpl::defaultChecked() const
return false;
}
void HTMLInputElementImpl::setDefaultChecked( const bool & )
void HTMLInputElementImpl::setDefaultChecked( bool )
{
}
......@@ -465,11 +465,11 @@ void HTMLInputElementImpl::setChecked(bool b)
}
}
void HTMLInputElementImpl::setDisabled( const bool & )
void HTMLInputElementImpl::setDisabled( bool )
{
}
void HTMLInputElementImpl::setMaxLength( const long & )
void HTMLInputElementImpl::setMaxLength( long )
{
}
......@@ -479,7 +479,7 @@ bool HTMLInputElementImpl::readOnly() const
return false;
}
void HTMLInputElementImpl::setReadOnly( const bool & )
void HTMLInputElementImpl::setReadOnly( bool )
{