28 #include "html/html_formimpl.h"
29 #include "html/html_miscimpl.h"
31 #include "xml/dom_docimpl.h"
104 static_cast<HTMLButtonElementImpl*
>(
impl)->
focus();
110 static_cast<HTMLButtonElementImpl*
>(
impl)->
blur();
128 return static_cast<HTMLButtonElementImpl*
>(
impl)->
type();
218 return static_cast<HTMLFormElementImpl*
>(
impl)->
length();
246 return static_cast<HTMLFormElementImpl*
>(
impl)->
action();
279 return static_cast<HTMLFormElementImpl*
>(
impl)->
target();
338 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_VALUE, value);
344 return !((ElementImpl *)
impl)->getAttribute(ATTR_CHECKED).isNull();
350 ((ElementImpl *)
impl)->setAttribute(ATTR_CHECKED, _defaultChecked ?
"" : 0);
361 return ((ElementImpl *)
impl)->getAttribute(ATTR_ACCEPT);
366 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ACCEPT, value);
372 return ((ElementImpl *)
impl)->getAttribute(ATTR_ACCESSKEY);
377 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ACCESSKEY, value);
383 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
388 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
394 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALT);
399 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALT, value);
405 return ((HTMLInputElementImpl*)
impl)->checked();
411 ((HTMLInputElementImpl*)
impl)->setChecked(_checked);
417 return ((HTMLInputElementImpl*)
impl)->indeterminate();
423 ((HTMLInputElementImpl*)
impl)->setIndeterminate(_indeterminate);
429 return !((ElementImpl *)
impl)->getAttribute(ATTR_DISABLED).isNull();
436 ((ElementImpl *)
impl)->setAttribute(ATTR_DISABLED, _disabled ?
"" : 0);
443 return ((HTMLInputElementImpl *)
impl)->getAttribute(ATTR_MAXLENGTH).toInt();
450 ((ElementImpl *)
impl)->setAttribute(ATTR_MAXLENGTH,value);
457 return static_cast<HTMLInputElementImpl* const
>(
impl)->
name();
474 static_cast<ElementImpl*
>(
impl)->
setAttribute(ATTR_READONLY, _readOnly ?
"" : 0);
478 #ifndef KDE_NO_DEPRECATED
486 #ifndef KDE_NO_DEPRECATED
531 return ((HTMLInputElementImpl *)
impl)->type();
537 static_cast<HTMLInputElementImpl*
>(
impl)->
setType(_type);
554 return ((HTMLInputElementImpl*)
impl)->value();
560 ((HTMLInputElementImpl*)
impl)->setValue(value);
567 ((HTMLInputElementImpl*)
impl)->blur();
573 ((HTMLInputElementImpl*)
impl)->focus();
579 ((HTMLInputElementImpl *)
impl)->select( );
585 ((HTMLInputElementImpl *)
impl)->click( );
591 return ((HTMLInputElementImpl *)
impl)->selectionStart( );
598 return ((HTMLInputElementImpl *)
impl)->selectionEnd( );
605 ((HTMLInputElementImpl *)
impl)->setSelectionStart( pos );
611 ((HTMLInputElementImpl *)
impl)->setSelectionEnd( pos );
617 ((HTMLInputElementImpl *)
impl)->setSelectionRange( start, end );
768 static_cast<ElementImpl*
>(
impl)->
setAttribute(ATTR_DISABLED, _disabled ?
"" : 0);
815 return ((HTMLSelectElementImpl *)
impl)->type();
821 return ((HTMLSelectElementImpl *)
impl)->selectedIndex();
827 ((HTMLSelectElementImpl *)
impl)->setSelectedIndex(_selectedIndex);
833 return static_cast<HTMLSelectElementImpl*
>(
impl)->
value();
845 return ((HTMLSelectElementImpl *)
impl)->length();
885 return static_cast<HTMLSelectElementImpl* const
>(
impl)->
name();
896 return ((HTMLSelectElementImpl *)
impl)->getAttribute(ATTR_SIZE).toInt();
925 int exceptioncode = 0;
926 static_cast<HTMLSelectElementImpl*
>(
impl)->
add(
927 static_cast<HTMLElementImpl*>(element.
handle()),
928 static_cast<HTMLElementImpl*>(before.
handle()), exceptioncode );
935 if(
impl)
static_cast<HTMLSelectElementImpl*
>(
impl)->
remove( index );
941 ((HTMLSelectElementImpl*)
impl)->blur();
947 ((HTMLSelectElementImpl*)
impl)->focus();
983 return ((HTMLTextAreaElementImpl *)
impl)->defaultValue();
988 if (
impl) ((HTMLTextAreaElementImpl *)
impl)->setDefaultValue(value);
1010 return ((HTMLTextAreaElementImpl *)
impl)->getAttribute(ATTR_COLS).toInt();
1036 return static_cast<HTMLTextAreaElementImpl* const
>(
impl)->
name();
1058 return ((HTMLTextAreaElementImpl *)
impl)->getAttribute(ATTR_ROWS).toInt();
1085 return ((HTMLTextAreaElementImpl *)
impl)->type();
1091 return ((HTMLTextAreaElementImpl *)
impl)->value();
1096 if(
impl) ((HTMLTextAreaElementImpl *)
impl)->setValue(value);
1102 ((HTMLTextAreaElementImpl*)
impl)->blur();
1108 ((HTMLTextAreaElementImpl*)
impl)->focus();
1114 ((HTMLTextAreaElementImpl *)
impl)->select( );
1120 return ((HTMLTextAreaElementImpl *)
impl)->selectionStart( );
1127 return ((HTMLTextAreaElementImpl *)
impl)->selectionEnd( );
1134 return ((HTMLTextAreaElementImpl *)
impl)->textLength( );
1141 ((HTMLTextAreaElementImpl *)
impl)->setSelectionStart( pos );
1147 ((HTMLTextAreaElementImpl *)
impl)->setSelectionEnd( pos );
1153 ((HTMLTextAreaElementImpl *)
impl)->setSelectionRange( start, end );
1205 return ((HTMLOptionElementImpl *)
impl)->text();
1211 return ((HTMLOptionElementImpl *)
impl)->index();
1244 return ((HTMLOptionElementImpl *)
impl)->selected();
1249 ((HTMLOptionElementImpl *)
impl)->setSelected(_selected);
1255 return static_cast<HTMLOptionElementImpl*
>(
impl)->
value();
1301 return static_cast<HTMLIsIndexElementImpl*
>(
impl)->
prompt();