• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdehtml
 

tdehtml

  • tdehtml
  • dom
html_form.h
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * (C) 1999 Lars Knoll (knoll@kde.org)
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 * This file includes excerpts from the Document Object Model (DOM)
22 * Level 1 Specification (Recommendation)
23 * http://www.w3.org/TR/REC-DOM-Level-1/
24 * Copyright © World Wide Web Consortium , (Massachusetts Institute of
25 * Technology , Institut National de Recherche en Informatique et en
26 * Automatique , Keio University ). All Rights Reserved.
27 *
28 */
29#ifndef HTML_FORM_H
30#define HTML_FORM_H
31
32// --------------------------------------------------------------------------
33#include <dom/html_element.h>
34#include <dom/html_misc.h>
35
36#include <tdemacros.h>
37
38namespace DOM {
39
40class HTMLButtonElementImpl;
41class HTMLFormElement;
42class DOMString;
43
50class TDEHTML_EXPORT HTMLButtonElement : public HTMLElement
51{
52public:
53 HTMLButtonElement();
54 HTMLButtonElement(const HTMLButtonElement &other);
55 HTMLButtonElement(const Node &other) : HTMLElement()
56 {(*this)=other;}
57protected:
58 HTMLButtonElement(HTMLButtonElementImpl *impl);
59public:
60
61 HTMLButtonElement & operator = (const HTMLButtonElement &other);
62 HTMLButtonElement & operator = (const Node &other);
63
64 ~HTMLButtonElement();
65
72 HTMLFormElement form() const;
73
81 DOMString accessKey() const;
82
86 void setAccessKey( const DOMString & );
87
94 bool disabled() const;
95
99 void setDisabled( bool );
100
108 DOMString name() const;
109
113 void setName( const DOMString & );
114
122 long tabIndex() const;
123
127 void setTabIndex( long );
128
135 DOMString type() const;
136
143 DOMString value() const;
144
148 void setValue( const DOMString & );
149
154 void blur ( );
155
160 void focus ( );
161};
162
163// --------------------------------------------------------------------------
164
165class HTMLFieldSetElementImpl;
172class TDEHTML_EXPORT HTMLFieldSetElement : public HTMLElement
173{
174public:
175 HTMLFieldSetElement();
176 HTMLFieldSetElement(const HTMLFieldSetElement &other);
177 HTMLFieldSetElement(const Node &other) : HTMLElement()
178 {(*this)=other;}
179protected:
180 HTMLFieldSetElement(HTMLFieldSetElementImpl *impl);
181public:
182
183 HTMLFieldSetElement & operator = (const HTMLFieldSetElement &other);
184 HTMLFieldSetElement & operator = (const Node &other);
185
186 ~HTMLFieldSetElement();
187
191 HTMLFormElement form() const;
192};
193
194// --------------------------------------------------------------------------
195
196class HTMLFormElementImpl;
206class TDEHTML_EXPORT HTMLFormElement : public HTMLElement
207{
208 friend class HTMLButtonElement;
209 friend class HTMLFieldSetElement;
210 friend class HTMLInputElement;
211 friend class HTMLLabelElement;
212 friend class HTMLLegendElement;
213 friend class HTMLSelectElement;
214 friend class HTMLTextAreaElement;
215 friend class HTMLOptionElement;
216 friend class HTMLIsIndexElement;
217 friend class HTMLObjectElement;
218
219public:
220 HTMLFormElement();
221 HTMLFormElement(const HTMLFormElement &other);
222 HTMLFormElement(const Node &other) : HTMLElement()
223 {(*this)=other;}
224protected:
225 HTMLFormElement(HTMLFormElementImpl *impl);
226public:
227
228 HTMLFormElement & operator = (const HTMLFormElement &other);
229 HTMLFormElement & operator = (const Node &other);
230
231 ~HTMLFormElement();
232
237 HTMLCollection elements() const;
238
243 long length() const;
244
249 DOMString name() const;
250
254 void setName( const DOMString & );
255
262 DOMString acceptCharset() const;
263
267 void setAcceptCharset( const DOMString & );
268
275 DOMString action() const;
276
280 void setAction( const DOMString & );
281
289 DOMString enctype() const;
290
294 void setEnctype( const DOMString & );
295
302 DOMString method() const;
303
307 void setMethod( const DOMString & );
308
315 DOMString target() const;
316
320 void setTarget( const DOMString & );
321
327 void submit ( );
328
334 void reset ( );
335};
336
337// --------------------------------------------------------------------------
338
339class HTMLInputElementImpl;
349class TDEHTML_EXPORT HTMLInputElement : public HTMLElement
350{
351public:
352 HTMLInputElement();
353 HTMLInputElement(const HTMLInputElement &other);
354 HTMLInputElement(const Node &other) : HTMLElement()
355 {(*this)=other;}
356protected:
357 HTMLInputElement(HTMLInputElementImpl *impl);
358public:
359
360 HTMLInputElement & operator = (const HTMLInputElement &other);
361 HTMLInputElement & operator = (const Node &other);
362
363 ~HTMLInputElement();
364
370 DOMString defaultValue() const;
371
375 void setDefaultValue( const DOMString & );
376
383 bool defaultChecked() const;
384
388 void setDefaultChecked( bool );
389
393 HTMLFormElement form() const;
394
402 DOMString accept() const;
403
407 void setAccept( const DOMString & );
408
416 DOMString accessKey() const;
417
421 void setAccessKey( const DOMString & );
422
431 DOMString align() const;
432
436 void setAlign( const DOMString & );
437
445 DOMString alt() const;
446
450 void setAlt( const DOMString & );
451
461 bool checked() const;
462
466 void setChecked( bool );
467
471 bool indeterminate() const;
472
476 void setIndeterminate( bool );
477
484 bool disabled() const;
485
489 void setDisabled( bool );
490
498 long maxLength() const;
499
503 void setMaxLength( long );
504
512 DOMString name() const;
513
517 void setName( const DOMString & );
518
526 bool readOnly() const;
527
528 // ### remove in 4.0
532 void setReadOnly( bool );
533
537 DOMString size() const TDE_DEPRECATED;
538
542 void setSize( const DOMString & ) TDE_DEPRECATED;
543
551 long getSize() const;
552
556 void setSize( long );
557
566 DOMString src() const;
567
571 void setSrc( const DOMString & );
572
580 long tabIndex() const;
581
585 void setTabIndex( long );
586
593 DOMString type() const;
594
598 void setType(const DOMString&);
599
606 DOMString useMap() const;
607
611 void setUseMap( const DOMString & );
612
620 DOMString value() const;
621
625 void setValue( const DOMString & );
626
631 void blur ( );
632
637 void focus ( );
638
645 void select ( );
646
652 void click ( );
653
654
663 long selectionStart();
664
671 void setSelectionStart(long offset);
672
681 long selectionEnd();
682
689 void setSelectionEnd(long offset);
690
697 void setSelectionRange(long start, long end);
698
699};
700
701// --------------------------------------------------------------------------
702
703class HTMLLabelElementImpl;
710class TDEHTML_EXPORT HTMLLabelElement : public HTMLElement
711{
712public:
713 HTMLLabelElement();
714 HTMLLabelElement(const HTMLLabelElement &other);
715 HTMLLabelElement(const Node &other) : HTMLElement()
716 {(*this)=other;}
717protected:
718 HTMLLabelElement(HTMLLabelElementImpl *impl);
719public:
720
721 HTMLLabelElement & operator = (const HTMLLabelElement &other);
722 HTMLLabelElement & operator = (const Node &other);
723
724 ~HTMLLabelElement();
725
733 DOMString accessKey() const;
734
738 void setAccessKey( const DOMString & );
739
747 DOMString htmlFor() const;
748
752 void setHtmlFor( const DOMString & );
753};
754
755// --------------------------------------------------------------------------
756
757class HTMLLegendElementImpl;
765class TDEHTML_EXPORT HTMLLegendElement : public HTMLElement
766{
767public:
768 HTMLLegendElement();
769 HTMLLegendElement(const HTMLLegendElement &other);
770 HTMLLegendElement(const Node &other) : HTMLElement()
771 {(*this)=other;}
772protected:
773 HTMLLegendElement(HTMLLegendElementImpl *impl);
774public:
775
776 HTMLLegendElement & operator = (const HTMLLegendElement &other);
777 HTMLLegendElement & operator = (const Node &other);
778
779 ~HTMLLegendElement();
780
784 HTMLFormElement form() const;
785
793 DOMString accessKey() const;
794
798 void setAccessKey( const DOMString & );
799
807 DOMString align() const;
808
812 void setAlign( const DOMString & );
813};
814
815// --------------------------------------------------------------------------
816
817class HTMLOptGroupElementImpl;
824class TDEHTML_EXPORT HTMLOptGroupElement : public HTMLElement
825{
826public:
827 HTMLOptGroupElement();
828 HTMLOptGroupElement(const HTMLOptGroupElement &other);
829 HTMLOptGroupElement(const Node &other) : HTMLElement()
830 {(*this)=other;}
831protected:
832 HTMLOptGroupElement(HTMLOptGroupElementImpl *impl);
833public:
834
835 HTMLOptGroupElement & operator = (const HTMLOptGroupElement &other);
836 HTMLOptGroupElement & operator = (const Node &other);
837
838 ~HTMLOptGroupElement();
839
846 bool disabled() const;
847
851 void setDisabled( bool );
852
859 DOMString label() const;
860
864 void setLabel( const DOMString & );
865};
866
867// --------------------------------------------------------------------------
868
869class HTMLSelectElementImpl;
878class TDEHTML_EXPORT HTMLSelectElement : public HTMLElement
879{
880public:
881 HTMLSelectElement();
882 HTMLSelectElement(const HTMLSelectElement &other);
883 HTMLSelectElement(const Node &other) : HTMLElement()
884 {(*this)=other;}
885protected:
886 HTMLSelectElement(HTMLSelectElementImpl *impl);
887public:
888
889 HTMLSelectElement & operator = (const HTMLSelectElement &other);
890 HTMLSelectElement & operator = (const Node &other);
891
892 ~HTMLSelectElement();
893
898 DOMString type() const;
899
906 long selectedIndex() const;
907
911 void setSelectedIndex( long );
912
917 DOMString value() const;
918
922 void setValue( const DOMString & );
923
928 long length() const;
929
933 HTMLFormElement form() const;
934
940 HTMLCollection options() const;
941
948 bool disabled() const;
949
953 void setDisabled( bool );
954
962 bool multiple() const;
963
967 void setMultiple( bool );
968
976 DOMString name() const;
977
981 void setName( const DOMString & );
982
989 long size() const;
990
994 void setSize( long );
995
1003 long tabIndex() const;
1004
1008 void setTabIndex( long );
1009
1020 void add ( const HTMLElement &element, const HTMLElement &before );
1021
1030 void remove ( long index );
1031
1036 void blur ( );
1037
1042 void focus ( );
1043};
1044
1045// --------------------------------------------------------------------------
1046
1047class HTMLTextAreaElementImpl;
1054class TDEHTML_EXPORT HTMLTextAreaElement : public HTMLElement
1055{
1056public:
1057 HTMLTextAreaElement();
1058 HTMLTextAreaElement(const HTMLTextAreaElement &other);
1059 HTMLTextAreaElement(const Node &other) : HTMLElement()
1060 {(*this)=other;}
1061protected:
1062 HTMLTextAreaElement(HTMLTextAreaElementImpl *impl);
1063public:
1064
1065 HTMLTextAreaElement & operator = (const HTMLTextAreaElement &other);
1066 HTMLTextAreaElement & operator = (const Node &other);
1067
1068 ~HTMLTextAreaElement();
1069
1075 DOMString defaultValue() const;
1076
1080 void setDefaultValue( const DOMString & );
1081
1085 HTMLFormElement form() const;
1086
1094 DOMString accessKey() const;
1095
1099 void setAccessKey( const DOMString & );
1100
1107 long cols() const;
1108
1112 void setCols( long );
1113
1120 bool disabled() const;
1121
1125 void setDisabled( bool );
1126
1134 DOMString name() const;
1135
1139 void setName( const DOMString & );
1140
1147 bool readOnly() const;
1148
1152 void setReadOnly( bool );
1153
1160 long rows() const;
1161
1165 void setRows( long );
1166
1174 long tabIndex() const;
1175
1179 void setTabIndex( long );
1180
1185 DOMString type() const;
1186
1193 DOMString value() const;
1194
1198 void setValue( const DOMString & );
1199
1203 void blur ( );
1204
1208 void focus ( );
1209
1213 void select ( );
1214
1221 long selectionStart();
1222
1228 void setSelectionStart(long offset);
1229
1236 long selectionEnd();
1237
1243 void setSelectionEnd(long offset);
1244
1250 void setSelectionRange(long start, long end);
1251
1257 long textLength();
1258};
1259
1260// --------------------------------------------------------------------------
1261
1262class HTMLOptionElementImpl;
1269class TDEHTML_EXPORT HTMLOptionElement : public HTMLElement
1270{
1271public:
1272 HTMLOptionElement();
1273 HTMLOptionElement(const HTMLOptionElement &other);
1274 HTMLOptionElement(const Node &other) : HTMLElement()
1275 {(*this)=other;}
1276protected:
1277 HTMLOptionElement(HTMLOptionElementImpl *impl);
1278public:
1279
1280 HTMLOptionElement & operator = (const HTMLOptionElement &other);
1281 HTMLOptionElement & operator = (const Node &other);
1282
1283 ~HTMLOptionElement();
1284
1288 HTMLFormElement form() const;
1289
1295 bool defaultSelected() const;
1296
1300 void setDefaultSelected( bool );
1301
1306 DOMString text() const;
1307
1313 long index() const;
1314
1321 void setIndex( long );
1322
1329 bool disabled() const;
1330
1334 void setDisabled( bool );
1335
1342 DOMString label() const;
1343
1347 void setLabel( const DOMString & );
1348
1355 bool selected() const;
1356
1360 void setSelected( bool );
1361
1368 DOMString value() const;
1369
1373 void setValue( const DOMString & );
1374};
1375
1376
1377// --------------------------------------------------------------------------
1378
1379class HTMLIsIndexElementImpl;
1380class HTMLFormElement;
1381
1389class TDEHTML_EXPORT HTMLIsIndexElement : public HTMLElement
1390{
1391public:
1392 HTMLIsIndexElement();
1393 HTMLIsIndexElement(const HTMLIsIndexElement &other);
1394 HTMLIsIndexElement(const Node &other) : HTMLElement()
1395 {(*this)=other;}
1396protected:
1397 HTMLIsIndexElement(HTMLIsIndexElementImpl *impl);
1398public:
1399
1400 HTMLIsIndexElement & operator = (const HTMLIsIndexElement &other);
1401 HTMLIsIndexElement & operator = (const Node &other);
1402
1403 ~HTMLIsIndexElement();
1404
1408 HTMLFormElement form() const;
1409
1417 DOMString prompt() const;
1418
1422 void setPrompt( const DOMString & );
1423};
1424
1425} //namespace
1426
1427#endif
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition dom_string.h:44
DOM::HTMLButtonElement::focus
void focus()
Gives keyboard focus to this element.
Definition html_form.cpp:102
DOM::HTMLButtonElement::value
DOMString value() const
The current form control value.
Definition html_form.cpp:132
DOM::HTMLButtonElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_form.cpp:75
DOM::HTMLButtonElement::blur
void blur()
Removes keyboard focus from this element.
Definition html_form.cpp:108
DOM::HTMLButtonElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:80
DOM::HTMLButtonElement::setName
void setName(const DOMString &)
see name
Definition html_form.cpp:97
DOM::HTMLButtonElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition html_form.cpp:114
DOM::HTMLButtonElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:86
DOM::HTMLButtonElement::form
HTMLFormElement form() const
Returns the FORM element containing this control.
Definition html_form.cpp:64
DOM::HTMLButtonElement::name
DOMString name() const
Form control or object name when submitted with a form.
Definition html_form.cpp:91
DOM::HTMLButtonElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_form.cpp:69
DOM::HTMLButtonElement::setValue
void setValue(const DOMString &)
see value
Definition html_form.cpp:140
DOM::HTMLButtonElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition html_form.cpp:120
DOM::HTMLButtonElement::type
DOMString type() const
The type of button.
Definition html_form.cpp:126
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition html_misc.h:127
DOM::HTMLFieldSetElement::form
HTMLFormElement form() const
Definition html_form.cpp:175
DOM::HTMLFormElement
The FORM element encompasses behavior similar to a collection and an element.
Definition html_form.h:207
DOM::HTMLFormElement::setMethod
void setMethod(const DOMString &)
see method
Definition html_form.cpp:272
DOM::HTMLFormElement::name
DOMString name() const
Names the form.
Definition html_form.cpp:222
DOM::HTMLFormElement::target
DOMString target() const
Frame to render the resource in.
Definition html_form.cpp:277
DOM::HTMLFormElement::setAction
void setAction(const DOMString &)
see action
Definition html_form.cpp:250
DOM::HTMLFormElement::setAcceptCharset
void setAcceptCharset(const DOMString &)
see acceptCharset
Definition html_form.cpp:239
DOM::HTMLFormElement::reset
void reset()
Restores a form element's default values.
Definition html_form.cpp:293
DOM::HTMLFormElement::enctype
DOMString enctype() const
The content type of the submitted form, generally "application/x-www-form-urlencoded".
Definition html_form.cpp:255
DOM::HTMLFormElement::acceptCharset
DOMString acceptCharset() const
List of character sets supported by the server.
Definition html_form.cpp:233
DOM::HTMLFormElement::setEnctype
void setEnctype(const DOMString &)
see enctype
Definition html_form.cpp:261
DOM::HTMLFormElement::action
DOMString action() const
Server-side form handler.
Definition html_form.cpp:244
DOM::HTMLFormElement::submit
void submit()
Submits the form.
Definition html_form.cpp:288
DOM::HTMLFormElement::method
DOMString method() const
HTTP method used to submit form.
Definition html_form.cpp:266
DOM::HTMLFormElement::setTarget
void setTarget(const DOMString &)
see target
Definition html_form.cpp:283
DOM::HTMLFormElement::elements
HTMLCollection elements() const
Returns a collection of all control elements in the form.
Definition html_form.cpp:210
DOM::HTMLFormElement::length
long length() const
The number of form controls in the form.
Definition html_form.cpp:216
DOM::HTMLFormElement::setName
void setName(const DOMString &)
see name
Definition html_form.cpp:228
DOM::HTMLInputElement::selectionEnd
long selectionEnd()
Returns the character offset of end of selection, or if none, the cursor position.
Definition html_form.cpp:592
DOM::HTMLInputElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition html_form.cpp:519
DOM::HTMLInputElement::type
DOMString type() const
The type of control created.
Definition html_form.cpp:525
DOM::HTMLInputElement::src
DOMString src() const
When the type attribute has the value "Image", this attribute specifies the location of the image to ...
Definition html_form.cpp:501
DOM::HTMLInputElement::selectionStart
long selectionStart()
Returns the character offset of beginning of selection, or if none, the cursor position.
Definition html_form.cpp:585
DOM::HTMLInputElement::indeterminate
bool indeterminate() const
Describes whether a radio box is indeterminate.
Definition html_form.cpp:415
DOM::HTMLInputElement::form
HTMLFormElement form() const
Definition html_form.cpp:354
DOM::HTMLInputElement::maxLength
long maxLength() const
Maximum number of characters for text fields, when type has the value "Text" or "Password".
Definition html_form.cpp:441
DOM::HTMLInputElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_form.cpp:376
DOM::HTMLInputElement::value
DOMString value() const
The current form control value.
Definition html_form.cpp:548
DOM::HTMLInputElement::setDefaultChecked
void setDefaultChecked(bool)
see defaultChecked
Definition html_form.cpp:348
DOM::HTMLInputElement::setSize
void setSize(const DOMString &) TDE_DEPRECATED
Definition html_form.cpp:485
DOM::HTMLInputElement::setType
void setType(const DOMString &)
see type
Definition html_form.cpp:531
DOM::HTMLInputElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:427
DOM::HTMLInputElement::checked
bool checked() const
Describes whether a radio or check box is checked, when type has the value "Radio" or "Checkbox".
Definition html_form.cpp:403
DOM::HTMLInputElement::setChecked
void setChecked(bool)
see checked
Definition html_form.cpp:409
DOM::HTMLInputElement::setSrc
void setSrc(const DOMString &)
see src
Definition html_form.cpp:508
DOM::HTMLInputElement::setAlt
void setAlt(const DOMString &)
see alt
Definition html_form.cpp:398
DOM::HTMLInputElement::setSelectionRange
void setSelectionRange(long start, long end)
Makes the position span from start to end, and positions the cursor after the selection.
Definition html_form.cpp:611
DOM::HTMLInputElement::setAlign
void setAlign(const DOMString &)
see align
Definition html_form.cpp:387
DOM::HTMLInputElement::focus
void focus()
Gives keyboard focus to this element.
Definition html_form.cpp:567
DOM::HTMLInputElement::select
void select()
Select the contents of the text area.
Definition html_form.cpp:573
DOM::HTMLInputElement::setMaxLength
void setMaxLength(long)
see maxLength
Definition html_form.cpp:447
DOM::HTMLInputElement::setName
void setName(const DOMString &)
see name
Definition html_form.cpp:461
DOM::HTMLInputElement::setUseMap
void setUseMap(const DOMString &)
see useMap
Definition html_form.cpp:543
DOM::HTMLInputElement::name
DOMString name() const
Form control or object name when submitted with a form.
Definition html_form.cpp:455
DOM::HTMLInputElement::setSelectionStart
void setSelectionStart(long offset)
Move the beginning of the selection to the given offset in text This call has no effect if the type o...
Definition html_form.cpp:599
DOM::HTMLInputElement::accept
DOMString accept() const
A comma-separated list of content types that a server processing this form will handle correctly.
Definition html_form.cpp:359
DOM::HTMLInputElement::getSize
long getSize() const
Size information.
Definition html_form.cpp:490
DOM::HTMLInputElement::readOnly
bool readOnly() const
This control is read-only.
Definition html_form.cpp:466
DOM::HTMLInputElement::setAccept
void setAccept(const DOMString &)
see accept
Definition html_form.cpp:365
DOM::HTMLInputElement::blur
void blur()
Removes keyboard focus from this element.
Definition html_form.cpp:561
DOM::HTMLInputElement::setValue
void setValue(const DOMString &)
see value
Definition html_form.cpp:554
DOM::HTMLInputElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:433
DOM::HTMLInputElement::setReadOnly
void setReadOnly(bool)
see readOnly
Definition html_form.cpp:472
DOM::HTMLInputElement::defaultChecked
bool defaultChecked() const
When type has the value "Radio" or "Checkbox", stores the initial value of the checked attribute.
Definition html_form.cpp:342
DOM::HTMLInputElement::click
void click()
Simulate a mouse-click.
Definition html_form.cpp:579
DOM::HTMLInputElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_form.cpp:370
DOM::HTMLInputElement::setDefaultValue
void setDefaultValue(const DOMString &)
see defaultValue
Definition html_form.cpp:337
DOM::HTMLInputElement::defaultValue
DOMString defaultValue() const
Stores the initial control value (i.e., the initial value of value ).
Definition html_form.cpp:328
DOM::HTMLInputElement::alt
DOMString alt() const
Alternate text for user agents not rendering the normal content of this element.
Definition html_form.cpp:392
DOM::HTMLInputElement::useMap
DOMString useMap() const
Use client-side image map.
Definition html_form.cpp:537
DOM::HTMLInputElement::setIndeterminate
void setIndeterminate(bool)
see indeterminate
Definition html_form.cpp:421
DOM::HTMLInputElement::setSelectionEnd
void setSelectionEnd(long offset)
Move the end of the selection (and the cursor) to the given offset in text This call has no effect if...
Definition html_form.cpp:605
DOM::HTMLInputElement::size
DOMString size() const TDE_DEPRECATED
Definition html_form.cpp:479
DOM::HTMLInputElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition html_form.cpp:513
DOM::HTMLInputElement::align
DOMString align() const
Aligns this object (vertically or horizontally) with respect to its surrounding text.
Definition html_form.cpp:381
DOM::HTMLIsIndexElement::prompt
DOMString prompt() const
The prompt message.
Definition html_form.cpp:1293
DOM::HTMLIsIndexElement::setPrompt
void setPrompt(const DOMString &)
see prompt
Definition html_form.cpp:1299
DOM::HTMLIsIndexElement::form
HTMLFormElement form() const
Definition html_form.cpp:1288
DOM::HTMLLabelElement::setHtmlFor
void setHtmlFor(const DOMString &)
see htmlFor
Definition html_form.cpp:664
DOM::HTMLLabelElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_form.cpp:647
DOM::HTMLLabelElement::htmlFor
DOMString htmlFor() const
This attribute links this label with another form control by id attribute.
Definition html_form.cpp:658
DOM::HTMLLabelElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_form.cpp:653
DOM::HTMLLegendElement::setAlign
void setAlign(const DOMString &)
see align
Definition html_form.cpp:721
DOM::HTMLLegendElement::form
HTMLFormElement form() const
Definition html_form.cpp:699
DOM::HTMLLegendElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_form.cpp:710
DOM::HTMLLegendElement::align
DOMString align() const
Text alignment relative to FIELDSET .
Definition html_form.cpp:715
DOM::HTMLLegendElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_form.cpp:704
DOM::HTMLOptGroupElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:762
DOM::HTMLOptGroupElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:756
DOM::HTMLOptGroupElement::setLabel
void setLabel(const DOMString &)
see label
Definition html_form.cpp:774
DOM::HTMLOptGroupElement::label
DOMString label() const
Assigns a label to this option group.
Definition html_form.cpp:768
DOM::HTMLOptionElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:1214
DOM::HTMLOptionElement::setDefaultSelected
void setDefaultSelected(bool)
see defaultSelected
Definition html_form.cpp:1192
DOM::HTMLOptionElement::index
long index() const
The index of this OPTION in its parent SELECT .
Definition html_form.cpp:1203
DOM::HTMLOptionElement::setLabel
void setLabel(const DOMString &)
see label
Definition html_form.cpp:1231
DOM::HTMLOptionElement::setSelected
void setSelected(bool)
see selected
Definition html_form.cpp:1242
DOM::HTMLOptionElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:1220
DOM::HTMLOptionElement::form
HTMLFormElement form() const
Definition html_form.cpp:1181
DOM::HTMLOptionElement::value
DOMString value() const
The current form control value.
Definition html_form.cpp:1247
DOM::HTMLOptionElement::label
DOMString label() const
Option label for use in hierarchical menus.
Definition html_form.cpp:1225
DOM::HTMLOptionElement::setValue
void setValue(const DOMString &)
see value
Definition html_form.cpp:1253
DOM::HTMLOptionElement::defaultSelected
bool defaultSelected() const
Stores the initial value of the selected attribute.
Definition html_form.cpp:1186
DOM::HTMLOptionElement::selected
bool selected() const
Means that this option is initially selected.
Definition html_form.cpp:1236
DOM::HTMLOptionElement::setIndex
void setIndex(long)
see index
Definition html_form.cpp:1209
DOM::HTMLOptionElement::text
DOMString text() const
The text contained within the option element.
Definition html_form.cpp:1197
DOM::HTMLSelectElement::size
long size() const
Number of visible rows.
Definition html_form.cpp:890
DOM::HTMLSelectElement::multiple
bool multiple() const
If true, multiple OPTION elements may be selected in this SELECT .
Definition html_form.cpp:868
DOM::HTMLSelectElement::setValue
void setValue(const DOMString &)
see value
Definition html_form.cpp:833
DOM::HTMLSelectElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition html_form.cpp:911
DOM::HTMLSelectElement::blur
void blur()
Removes keyboard focus from this element.
Definition html_form.cpp:933
DOM::HTMLSelectElement::value
DOMString value() const
The current form control value.
Definition html_form.cpp:827
DOM::HTMLSelectElement::add
void add(const HTMLElement &element, const HTMLElement &before)
Add a new element to the collection of OPTION elements for this SELECT .
Definition html_form.cpp:917
DOM::HTMLSelectElement::type
DOMString type() const
The type of control created.
Definition html_form.cpp:809
DOM::HTMLSelectElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:856
DOM::HTMLSelectElement::options
HTMLCollection options() const
The collection of OPTION elements contained by this element.
Definition html_form.cpp:850
DOM::HTMLSelectElement::setSelectedIndex
void setSelectedIndex(long)
see selectedIndex
Definition html_form.cpp:821
DOM::HTMLSelectElement::length
long length() const
The number of options in this SELECT .
Definition html_form.cpp:839
DOM::HTMLSelectElement::name
DOMString name() const
Form control or object name when submitted with a form.
Definition html_form.cpp:879
DOM::HTMLSelectElement::selectedIndex
long selectedIndex() const
The ordinal index of the selected option.
Definition html_form.cpp:815
DOM::HTMLSelectElement::remove
void remove(long index)
Remove an element from the collection of OPTION elements for this SELECT .
Definition html_form.cpp:928
DOM::HTMLSelectElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition html_form.cpp:905
DOM::HTMLSelectElement::setName
void setName(const DOMString &)
see name
Definition html_form.cpp:885
DOM::HTMLSelectElement::setSize
void setSize(long)
see size
Definition html_form.cpp:896
DOM::HTMLSelectElement::form
HTMLFormElement form() const
Definition html_form.cpp:845
DOM::HTMLSelectElement::focus
void focus()
Gives keyboard focus to this element.
Definition html_form.cpp:939
DOM::HTMLSelectElement::setMultiple
void setMultiple(bool)
see multiple
Definition html_form.cpp:874
DOM::HTMLSelectElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:862
DOM::HTMLTextAreaElement::tabIndex
long tabIndex() const
Index that represents the element's position in the tabbing order.
Definition html_form.cpp:1065
DOM::HTMLTextAreaElement::setTabIndex
void setTabIndex(long)
see tabIndex
Definition html_form.cpp:1071
DOM::HTMLTextAreaElement::setSelectionStart
void setSelectionStart(long offset)
Move the beginning of the selection to the given offset in text NOTE: this method is not part of the ...
Definition html_form.cpp:1133
DOM::HTMLTextAreaElement::disabled
bool disabled() const
The control is unavailable in this context.
Definition html_form.cpp:1017
DOM::HTMLTextAreaElement::setDisabled
void setDisabled(bool)
see disabled
Definition html_form.cpp:1023
DOM::HTMLTextAreaElement::textLength
long textLength()
Returns the length of the text.
Definition html_form.cpp:1126
DOM::HTMLTextAreaElement::selectionEnd
long selectionEnd()
Returns the character offset of end of selection, or if none, the cursor position.
Definition html_form.cpp:1119
DOM::HTMLTextAreaElement::focus
void focus()
Gives keyboard focus to this element.
Definition html_form.cpp:1100
DOM::HTMLTextAreaElement::rows
long rows() const
Number of text rows.
Definition html_form.cpp:1050
DOM::HTMLTextAreaElement::select
void select()
Select the contents of the TEXTAREA .
Definition html_form.cpp:1106
DOM::HTMLTextAreaElement::setRows
void setRows(long)
see rows
Definition html_form.cpp:1056
DOM::HTMLTextAreaElement::setReadOnly
void setReadOnly(bool)
see readOnly
Definition html_form.cpp:1045
DOM::HTMLTextAreaElement::value
DOMString value() const
The current textual content of the multi-line text field.
Definition html_form.cpp:1083
DOM::HTMLTextAreaElement::setAccessKey
void setAccessKey(const DOMString &)
see accessKey
Definition html_form.cpp:997
DOM::HTMLTextAreaElement::type
DOMString type() const
The type of this form control.
Definition html_form.cpp:1077
DOM::HTMLTextAreaElement::accessKey
DOMString accessKey() const
A single character access key to give access to the form control.
Definition html_form.cpp:991
DOM::HTMLTextAreaElement::setValue
void setValue(const DOMString &)
see value
Definition html_form.cpp:1089
DOM::HTMLTextAreaElement::setDefaultValue
void setDefaultValue(const DOMString &)
see defaultValue
Definition html_form.cpp:981
DOM::HTMLTextAreaElement::form
HTMLFormElement form() const
Definition html_form.cpp:986
DOM::HTMLTextAreaElement::setSelectionRange
void setSelectionRange(long start, long end)
Selects the text from start to end, and positions the cursor after the selection.
Definition html_form.cpp:1145
DOM::HTMLTextAreaElement::readOnly
bool readOnly() const
This control is read-only.
Definition html_form.cpp:1039
DOM::HTMLTextAreaElement::setName
void setName(const DOMString &)
see name
Definition html_form.cpp:1034
DOM::HTMLTextAreaElement::blur
void blur()
Removes keyboard focus from this element.
Definition html_form.cpp:1094
DOM::HTMLTextAreaElement::defaultValue
DOMString defaultValue() const
Stores the initial control value (i.e., the initial value of value ).
Definition html_form.cpp:975
DOM::HTMLTextAreaElement::cols
long cols() const
Width of control (in characters).
Definition html_form.cpp:1002
DOM::HTMLTextAreaElement::setSelectionEnd
void setSelectionEnd(long offset)
Move the end of the selection (and the cursor) to the given offset in text NOTE: this method is not p...
Definition html_form.cpp:1139
DOM::HTMLTextAreaElement::setCols
void setCols(long)
see cols
Definition html_form.cpp:1008
DOM::HTMLTextAreaElement::selectionStart
long selectionStart()
Returns the character offset of beginning of selection, or if none, the cursor position.
Definition html_form.cpp:1112
DOM::HTMLTextAreaElement::name
DOMString name() const
Form control or object name when submitted with a form.
Definition html_form.cpp:1028
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition dom_node.h:275
DOM
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
Definition design.h:57

tdehtml

Skip menu "tdehtml"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdehtml

Skip menu "tdehtml"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdehtml by doxygen 1.15.0
This website is maintained by Timothy Pearson.