KHTML
DOM Namespace Reference
This library provides a full-featured HTML parser and widget. More...
Classes | |
class | AbstractView |
Introduced in DOM Level 2. More... | |
class | Attr |
The Attr interface represents an attribute in an Element object. More... | |
class | CDATASection |
CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. More... | |
class | CharacterData |
The CharacterData interface extends Node with a set of attributes and methods for accessing character data in the DOM. More... | |
class | Comment |
This represents the content of a comment, i.e., all the characters between the starting ' <!-- ' and ending ' --> '. More... | |
class | Counter |
The Counter interface is used to represent any counter or counters function value. More... | |
class | CSS2Azimuth |
The CSS2Azimuth interface represents the azimuth CSS Level 2 property. More... | |
class | CSS2BackgroundPosition |
The CSS2BackgroundPosition interface represents the background-position CSS Level 2 property. More... | |
class | CSS2BorderSpacing |
The CSS2BorderSpacing interface represents the border-spacing CSS Level 2 property. More... | |
class | CSS2CounterIncrement |
The CSS2CounterIncrement interface represents a imple value for the counter-increment CSS Level 2 property. More... | |
class | CSS2CounterReset |
The CSS2CounterReset interface represents a simple value for the counter-reset CSS Level 2 property. More... | |
class | CSS2Cursor |
The CSS2Cursor interface represents the cursor CSS Level 2 property. More... | |
class | CSS2FontFaceSrc |
The CSS2Cursor interface represents the src CSS Level 2 descriptor. More... | |
class | CSS2FontFaceWidths |
The CSS2Cursor interface represents a simple value for the widths CSS Level 2 descriptor. More... | |
class | CSS2PageSize |
The CSS2Cursor interface represents the size CSS Level 2 descriptor. More... | |
class | CSS2PlayDuring |
The CSS2PlayDuring interface represents the play-during CSS Level 2 property. More... | |
class | CSS2Properties |
The CSS2Properties interface represents a convenience mechanism for retrieving and setting properties within a CSSStyleDeclaration . More... | |
class | CSS2TextShadow |
The CSS2TextShadow interface represents a simple value for the text-shadow CSS Level 2 property. More... | |
class | CSSCharsetRule |
The CSSCharsetRule interface a @charset rule in a CSS style sheet. More... | |
class | CSSException |
This exception is raised when a specific CSS operation is impossible to perform. More... | |
class | CSSFontFaceRule |
The CSSFontFaceRule interface represents a @font-face rule in a CSS style sheet. More... | |
class | CSSImportRule |
The CSSImportRule interface represents a @import rule within a CSS style sheet. More... | |
class | CSSMediaRule |
The CSSMediaRule interface represents a @media rule in a CSS style sheet. More... | |
class | CSSPageRule |
class | CSSPrimitiveValue |
The CSSPrimitiveValue interface represents a single CSS value . More... | |
class | CSSRule |
The CSSRule interface is the abstract base interface for any type of CSS statement . More... | |
class | CSSRuleList |
The CSSRuleList interface provides the abstraction of an ordered collection of CSS rules. More... | |
class | CSSStyleDeclaration |
The CSSStyleDeclaration interface represents a single CSS declaration block . More... | |
class | CSSStyleRule |
The CSSStyleRule interface represents a single rule set in a CSS style sheet. More... | |
class | CSSStyleSheet |
The CSSStyleSheet interface is a concrete interface used to represent a CSS style sheet i.e. More... | |
class | CSSUnknownRule |
The CSSUnkownRule interface represents an at-rule not supported by this user agent. More... | |
class | CSSValue |
The CSSValue interface represents a simple or a complexe value. More... | |
class | CSSValueList |
The CSSValueList interface provides the absraction of an ordered collection of CSS values. More... | |
class | CustomNodeFilter |
CustomNodeFilter can be used to define your own NodeFilter for use with NodeIterators and TreeWalkers. More... | |
class | Document |
The Document interface represents the entire HTML or XML document. More... | |
class | DocumentFragment |
DocumentFragment is a "lightweight" or "minimal" Document object. More... | |
class | DocumentStyle |
class | DocumentType |
Each Document has a doctype attribute whose value is either null or a DocumentType object. More... | |
class | DOMException |
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). More... | |
class | DOMImplementation |
The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model. More... | |
class | DomShared |
class | DOMString |
This class implements the basic string we use in the DOM. More... | |
class | Editor |
This class resembles the editing API when the associated khtml document is editable (in design mode), or contains editable elements. More... | |
class | Element |
By far the vast majority of objects (apart from text) that authors encounter when traversing a document are Element nodes. More... | |
class | Entity |
This interface represents an entity, either parsed or unparsed, in an XML document. More... | |
class | EntityReference |
EntityReference objects may be inserted into the structure model when an entity reference is in the source document, or when the user wishes to insert an entity reference. More... | |
class | Event |
Introduced in DOM Level 2. More... | |
class | EventException |
Introduced in DOM Level 2:. More... | |
class | EventListener |
Introduced in DOM Level 2. More... | |
class | HTMLAnchorElement |
The anchor element. More... | |
class | HTMLAppletElement |
An embedded Java applet. More... | |
class | HTMLAreaElement |
Client-side image map area definition. More... | |
class | HTMLBaseElement |
Document base URI. More... | |
class | HTMLBaseFontElement |
Base font. More... | |
class | HTMLBlockquoteElement |
??? See the BLOCKQUOTE element definition in HTML 4.0. More... | |
class | HTMLBodyElement |
The HTML document body. More... | |
class | HTMLBRElement |
Force a line break. More... | |
class | HTMLButtonElement |
Push button. More... | |
class | HTMLCollection |
An HTMLCollection is a list of nodes. More... | |
class | HTMLDirectoryElement |
Directory list. More... | |
class | HTMLDivElement |
Generic block container. More... | |
class | HTMLDListElement |
Definition list. More... | |
class | HTMLDocument |
An HTMLDocument is the root of the HTML hierarchy and holds the entire content. More... | |
class | HTMLElement |
All HTML element interfaces derive from this class. More... | |
class | HTMLFieldSetElement |
Organizes form controls into logical groups. More... | |
class | HTMLFontElement |
Local change to font. More... | |
class | HTMLFormCollection |
class | HTMLFormElement |
The FORM element encompasses behavior similar to a collection and an element. More... | |
class | HTMLFrameElement |
Create a frame. More... | |
class | HTMLFrameSetElement |
Create a grid of frames. More... | |
class | HTMLHeadElement |
Document head information. More... | |
class | HTMLHeadingElement |
For the H1 to H6 elements. More... | |
class | HTMLHRElement |
Create a horizontal rule. More... | |
class | HTMLHtmlElement |
Root of an HTML document. More... | |
class | HTMLIFrameElement |
Inline subwindows. More... | |
class | HTMLImageElement |
Embedded image. More... | |
class | HTMLInputElement |
Form control. More... | |
class | HTMLIsIndexElement |
This element is used for single-line text input. More... | |
class | HTMLLabelElement |
Form field label text. More... | |
class | HTMLLayerElement |
Layer container for Netscape 4.x compatibility. More... | |
class | HTMLLegendElement |
Provides a caption for a FIELDSET grouping. More... | |
class | HTMLLIElement |
List item. More... | |
class | HTMLLinkElement |
The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa). More... | |
class | HTMLMapElement |
Client-side image map. More... | |
class | HTMLMenuElement |
Menu list. More... | |
class | HTMLMetaElement |
This contains generic meta-information about the document. More... | |
class | HTMLModElement |
Notice of modification to part of a document. More... | |
class | HTMLObjectElement |
Generic embedded object. More... | |
class | HTMLOListElement |
Ordered list. More... | |
class | HTMLOptGroupElement |
Group options together in logical subdivisions. More... | |
class | HTMLOptionElement |
A selectable choice. More... | |
class | HTMLParagraphElement |
Paragraphs. More... | |
class | HTMLParamElement |
Parameters fed to the OBJECT element. More... | |
class | HTMLPreElement |
Preformatted text. More... | |
class | HTMLQuoteElement |
For the Q and BLOCKQUOTE elements. More... | |
class | HTMLScriptElement |
Script statements. More... | |
class | HTMLSelectElement |
The select element allows the selection of an option. More... | |
class | HTMLStyleElement |
Style information. More... | |
class | HTMLTableCaptionElement |
Table caption See the CAPTION element definition in HTML 4.0. More... | |
class | HTMLTableCellElement |
The object used to represent the TH and TD elements. More... | |
class | HTMLTableColElement |
Regroups the COL and COLGROUP elements. More... | |
class | HTMLTableElement |
The create* and delete* methods on the table allow authors to construct and modify tables. More... | |
class | HTMLTableRowElement |
A row in a table. More... | |
class | HTMLTableSectionElement |
The THEAD , TFOOT , and TBODY elements. More... | |
class | HTMLTextAreaElement |
Multi-line text field. More... | |
class | HTMLTitleElement |
The document title. More... | |
class | HTMLUListElement |
Unordered list. More... | |
class | JSEditor |
class | KeyboardEvent |
Introduced in DOM Level 3. More... | |
class | LinkStyle |
class | MediaList |
The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. More... | |
class | MouseEvent |
Introduced in DOM Level 2. More... | |
class | MutationEvent |
Introduced in DOM Level 2. More... | |
class | NamedNodeMap |
Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. More... | |
class | Node |
The Node interface is the primary datatype for the entire Document Object Model. More... | |
class | NodeFilter |
Filters are objects that know how to "filter out" nodes. More... | |
class | NodeIterator |
NodeIterators are used to step through a set of nodes, e.g. More... | |
class | NodeList |
The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. More... | |
class | Notation |
This interface represents a notation declared in the DTD. More... | |
class | ProcessingInstruction |
The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document. More... | |
class | QualifiedName |
class | Range |
class | RangeException |
class | Rect |
The Rect interface is used to represent any rect value. More... | |
class | RGBColor |
The RGBColor interface is used to represent any RGB color value. More... | |
class | StyleSheet |
The StyleSheet interface is the abstract base interface for any type of style sheet. More... | |
class | StyleSheetList |
The StyleSheetList interface provides the abstraction of an ordered collection of style sheets. More... | |
class | Text |
The Text interface represents the textual content (termed character data in XML) of an Element or Attr . More... | |
class | TextEvent |
Introduced in DOM Level 3. More... | |
class | TreeWalker |
TreeWalker objects are used to navigate a document tree or subtree using the view of the document defined by its whatToShow flags and any filters that are defined for the TreeWalker . More... | |
class | UIEvent |
Introduced in DOM Level 2. More... | |
Typedefs | |
typedef QHash< QString, const CommandImp * > | CommandDict |
typedef unsigned long long | DOMTimeStamp |
Enumerations | |
enum | EditorCommand { BackColorCommand, BoldCommand, CopyCommand, CutCommand, DeleteCommand, FontNameCommand, FontSizeCommand, ForeColorCommand, IndentCommand, InsertNewlineCommand, InsertParagraphCommand, InsertTextCommand, ItalicCommand, JustifyCenterCommand, JustifyFullCommand, JustifyLeftCommand, JustifyNoneCommand, JustifyRightCommand, OutdentCommand, PasteCommand, PrintCommand, RedoCommand, SelectAllCommand, SubscriptCommand, SuperscriptCommand, UndoCommand, UnselectCommand } |
Functions | |
static CommandDict | createCommandDictionary () |
static bool | enabled (KHTMLPart *) |
static bool | enabledAnySelection (KHTMLPart *part) |
static bool | enabledPaste (KHTMLPart *part) |
static bool | enabledRangeSelection (KHTMLPart *part) |
static bool | enabledRedo (KHTMLPart *part) |
static bool | enabledUndo (KHTMLPart *part) |
static bool | execBackColor (KHTMLPart *part, bool, const DOMString &value) |
static bool | execBold (KHTMLPart *part, bool, const DOMString &) |
static bool | execCopy (KHTMLPart *part, bool, const DOMString &) |
static bool | execCut (KHTMLPart *part, bool, const DOMString &) |
static bool | execDelete (KHTMLPart *part, bool, const DOMString &) |
static bool | execFontName (KHTMLPart *part, bool, const DOMString &value) |
static bool | execFontSize (KHTMLPart *part, bool, const DOMString &value) |
static bool | execForeColor (KHTMLPart *part, bool, const DOMString &value) |
static bool | execIndent (KHTMLPart *, bool, const DOMString &) |
static bool | execInsertNewline (KHTMLPart *part, bool, const DOMString &) |
static bool | execInsertParagraph (KHTMLPart *, bool, const DOMString &) |
static bool | execInsertText (KHTMLPart *part, bool, const DOMString &value) |
static bool | execItalic (KHTMLPart *part, bool, const DOMString &) |
static bool | execJustifyCenter (KHTMLPart *part, bool, const DOMString &) |
static bool | execJustifyFull (KHTMLPart *part, bool, const DOMString &) |
static bool | execJustifyLeft (KHTMLPart *part, bool, const DOMString &) |
static bool | execJustifyRight (KHTMLPart *part, bool, const DOMString &) |
static bool | execOutdent (KHTMLPart *, bool, const DOMString &) |
static bool | execPaste (KHTMLPart *part, bool, const DOMString &) |
static bool | execPrint (KHTMLPart *part, bool, const DOMString &) |
static bool | execRedo (KHTMLPart *part, bool, const DOMString &) |
static bool | execSelectAll (KHTMLPart *part, bool, const DOMString &) |
static bool | execStyleChange (KHTMLPart *part, int propertyID, const char *propertyValue) |
static bool | execStyleChange (KHTMLPart *part, int propertyID, int propertyEnum) |
static bool | execStyleChange (KHTMLPart *part, int propertyID, const DOMString &propertyValue) |
static bool | execSubscript (KHTMLPart *part, bool, const DOMString &) |
static bool | execSuperscript (KHTMLPart *part, bool, const DOMString &) |
static bool | execUndo (KHTMLPart *part, bool, const DOMString &) |
static bool | execUnselect (KHTMLPart *part, bool, const DOMString &) |
bool | operator!= (const DOMString &a, const char *b) |
bool | operator!= (const DOMString &a, const QString &b) |
bool | operator!= (const DOMString &a, const DOMString &b) |
QDebug | operator<< (QDebug stream, const DOMString &string) |
bool | operator== (const DOMString &a, const char *b) |
bool | operator== (const DOMString &a, const QString &b) |
bool | operator== (const DOMString &a, const DOMString &b) |
static bool | selectionStartHasStyle (KHTMLPart *part, int propertyID, const char *desiredValue) |
static Editor::TriState | stateBold (KHTMLPart *part) |
static Editor::TriState | stateItalic (KHTMLPart *part) |
static Editor::TriState | stateNone (KHTMLPart *) |
static Editor::TriState | stateStyle (KHTMLPart *part, int propertyID, const char *desiredValue) |
static Editor::TriState | stateSubscript (KHTMLPart *part) |
static Editor::TriState | stateSuperscript (KHTMLPart *part) |
bool | strcasecmp (const DOMString &a, const char *b) |
bool | strcasecmp (const DOMString &a, const DOMString &b) |
bool | strcmp (const DOMString &a, const DOMString &b) |
static DOMString | valueBackColor (KHTMLPart *part) |
static DOMString | valueFontName (KHTMLPart *part) |
static DOMString | valueFontSize (KHTMLPart *part) |
static DOMString | valueForeColor (KHTMLPart *part) |
static DOMString | valueNull (KHTMLPart *) |
static DOMString | valueStyle (KHTMLPart *part, int propertyID) |
Variables | |
static const EditorCommandInfo | commands [] |
static const int | sMaxUndoSteps = 1000 |
Detailed Description
This library provides a full-featured HTML parser and widget.
It is used for rendering in all KDE applications which allow HTML viewing, including the Konqueror browser/file manager, KMail, and the KDE Help system.
This library provides support for HTML4/XHTML, embedded Java applets, cascading style sheets (CSS2), and JavaScript.
If you want to add to your application a widget that only needs simple text browsing, you can also use the KTextBrowser widget in kdeui.
KHTMLPart : The main part/widget for using khtml.
DOM : The dom implementation used in khtml. The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core functionality, and the HTMLDOM HTML DOM, which deals with the extensions needed for HTML.
Typedef Documentation
typedef QHash<QString,const CommandImp*> DOM::CommandDict |
Definition at line 57 of file jsediting.cpp.
typedef unsigned long long DOM::DOMTimeStamp |
A DOMTimeStamp represents a number of milliseconds.
Definition at line 1014 of file dom_node.h.
Enumeration Type Documentation
enum DOM::EditorCommand |
List of all supported built-in editor commands.
- Enumerator:
Definition at line 29 of file editor_command.h.
Function Documentation
static CommandDict DOM::createCommandDictionary | ( | ) | [static] |
Definition at line 561 of file jsediting.cpp.
Definition at line 356 of file jsediting.cpp.
Definition at line 361 of file jsediting.cpp.
Definition at line 368 of file jsediting.cpp.
Definition at line 375 of file jsediting.cpp.
Definition at line 380 of file jsediting.cpp.
Definition at line 385 of file jsediting.cpp.
Definition at line 179 of file jsediting.cpp.
Definition at line 184 of file jsediting.cpp.
Definition at line 190 of file jsediting.cpp.
Definition at line 196 of file jsediting.cpp.
Definition at line 202 of file jsediting.cpp.
Definition at line 208 of file jsediting.cpp.
Definition at line 213 of file jsediting.cpp.
Definition at line 235 of file jsediting.cpp.
Definition at line 240 of file jsediting.cpp.
Definition at line 246 of file jsediting.cpp.
Definition at line 252 of file jsediting.cpp.
Definition at line 258 of file jsediting.cpp.
Definition at line 264 of file jsediting.cpp.
Definition at line 270 of file jsediting.cpp.
Definition at line 275 of file jsediting.cpp.
Definition at line 280 of file jsediting.cpp.
Definition at line 285 of file jsediting.cpp.
Definition at line 290 of file jsediting.cpp.
Definition at line 298 of file jsediting.cpp.
Definition at line 306 of file jsediting.cpp.
Definition at line 312 of file jsediting.cpp.
Definition at line 318 of file jsediting.cpp.
static bool DOM::execStyleChange | ( | KHTMLPart * | part, | |
int | propertyID, | |||
const char * | propertyValue | |||
) | [static] |
Definition at line 144 of file jsediting.cpp.
Definition at line 134 of file jsediting.cpp.
static bool DOM::execStyleChange | ( | KHTMLPart * | part, | |
int | propertyID, | |||
const DOMString & | propertyValue | |||
) | [static] |
Definition at line 124 of file jsediting.cpp.
Definition at line 324 of file jsediting.cpp.
Definition at line 329 of file jsediting.cpp.
Definition at line 334 of file jsediting.cpp.
Definition at line 340 of file jsediting.cpp.
bool DOM::operator!= | ( | const DOMString & | a, | |
const char * | b | |||
) | [inline] |
Definition at line 148 of file dom_string.h.
Definition at line 147 of file dom_string.h.
bool DOM::operator!= | ( | const DOMString & | a, | |
const DOMString & | b | |||
) | [inline] |
Definition at line 146 of file dom_string.h.
QDebug DOM::operator<< | ( | QDebug | stream, | |
const DOMString & | string | |||
) | [inline] |
Definition at line 139 of file dom_string.h.
Definition at line 373 of file dom_string.cpp.
Definition at line 362 of file dom_string.cpp.
Definition at line 357 of file dom_string.cpp.
static bool DOM::selectionStartHasStyle | ( | KHTMLPart * | part, | |
int | propertyID, | |||
const char * | desiredValue | |||
) | [static] |
Definition at line 159 of file jsediting.cpp.
static Editor::TriState DOM::stateBold | ( | KHTMLPart * | part | ) | [static] |
Definition at line 412 of file jsediting.cpp.
static Editor::TriState DOM::stateItalic | ( | KHTMLPart * | part | ) | [static] |
Definition at line 417 of file jsediting.cpp.
static Editor::TriState DOM::stateNone | ( | KHTMLPart * | ) | [static] |
Definition at line 407 of file jsediting.cpp.
static Editor::TriState DOM::stateStyle | ( | KHTMLPart * | part, | |
int | propertyID, | |||
const char * | desiredValue | |||
) | [static] |
Definition at line 149 of file jsediting.cpp.
static Editor::TriState DOM::stateSubscript | ( | KHTMLPart * | part | ) | [static] |
Definition at line 422 of file jsediting.cpp.
static Editor::TriState DOM::stateSuperscript | ( | KHTMLPart * | part | ) | [static] |
Definition at line 427 of file jsediting.cpp.
Definition at line 296 of file dom_string.cpp.
Definition at line 291 of file dom_string.cpp.
bool DOM::strcmp | ( | const DOMString & | a, | |
const DOMString & | b | |||
) | [inline] |
Definition at line 149 of file dom_string.h.
Definition at line 442 of file jsediting.cpp.
Definition at line 447 of file jsediting.cpp.
Definition at line 452 of file jsediting.cpp.
Definition at line 457 of file jsediting.cpp.
Definition at line 437 of file jsediting.cpp.
Definition at line 169 of file jsediting.cpp.
Variable Documentation
const EditorCommandInfo DOM::commands[] [static] |
Definition at line 467 of file jsediting.cpp.
const int DOM::sMaxUndoSteps = 1000 [static] |
Definition at line 57 of file editor.cpp.