DOM

DOM Namespace Reference

Classes

class  AbstractView
 
class  Attr
 
class  CDATASection
 
class  CharacterData
 
class  ClassNodeListImpl
 
class  Comment
 
class  Counter
 
class  CSS2Azimuth
 
class  CSS2BackgroundPosition
 
class  CSS2BorderSpacing
 
class  CSS2CounterIncrement
 
class  CSS2CounterReset
 
class  CSS2Cursor
 
class  CSS2FontFaceSrc
 
class  CSS2FontFaceWidths
 
class  CSS2PageSize
 
class  CSS2PlayDuring
 
class  CSS2Properties
 
class  CSS2TextShadow
 
class  CSSCharsetRule
 
class  CSSException
 
class  CSSFontFaceRule
 
class  CSSImportRule
 
class  CSSMediaRule
 
class  CSSPrimitiveValue
 
class  CSSRule
 
class  CSSRuleList
 
class  CSSStyleDeclaration
 
class  CSSStyleRule
 
class  CSSStyleSheet
 
class  CSSUnknownRule
 
class  CSSValue
 
class  CSSValueList
 
class  CustomNodeFilter
 
class  Document
 
class  DocumentFragment
 
class  DocumentImpl
 
class  DocumentType
 
class  DOMException
 
class  DOMImplementation
 
class  DOMString
 
class  Editor
 
class  Element
 
class  ElementMappingCache
 
class  Entity
 
class  EntityReference
 
class  Event
 
class  EventException
 
class  EventListener
 
class  HTMLAnchorElement
 
class  HTMLAppletElement
 
class  HTMLAreaElement
 
class  HTMLBaseElement
 
class  HTMLBaseFontElement
 
class  HTMLBlockquoteElement
 
class  HTMLBodyElement
 
class  HTMLBRElement
 
class  HTMLButtonElement
 
class  HTMLCollection
 
class  HTMLDirectoryElement
 
class  HTMLDivElement
 
class  HTMLDListElement
 
class  HTMLDocument
 
class  HTMLElement
 
class  HTMLFieldSetElement
 
class  HTMLFontElement
 
class  HTMLFormElement
 
class  HTMLFrameElement
 
class  HTMLFrameSetElement
 
class  HTMLHeadElement
 
class  HTMLHeadingElement
 
class  HTMLHRElement
 
class  HTMLHtmlElement
 
class  HTMLIFrameElement
 
class  HTMLImageElement
 
class  HTMLInputElement
 
class  HTMLIsIndexElement
 
class  HTMLLabelElement
 
class  HTMLLayerElement
 
class  HTMLLegendElement
 
class  HTMLLIElement
 
class  HTMLLinkElement
 
class  HTMLMapElement
 
class  HTMLMenuElement
 
class  HTMLMetaElement
 
class  HTMLModElement
 
class  HTMLObjectElement
 
class  HTMLOListElement
 
class  HTMLOptGroupElement
 
class  HTMLOptionElement
 
class  HTMLParagraphElement
 
class  HTMLParamElement
 
class  HTMLPreElement
 
class  HTMLQuoteElement
 
class  HTMLScriptElement
 
class  HTMLSelectElement
 
class  HTMLStyleElement
 
class  HTMLTableCaptionElement
 
class  HTMLTableCellElement
 
class  HTMLTableColElement
 
class  HTMLTableElement
 
class  HTMLTableRowElement
 
class  HTMLTableSectionElement
 
class  HTMLTextAreaElement
 
class  HTMLTitleElement
 
class  HTMLUListElement
 
class  KeyboardEvent
 
class  MediaList
 
class  MouseEvent
 
class  MutationEvent
 
class  NamedNodeMap
 
class  NameNodeListImpl
 
class  Node
 
class  NodeFilter
 
class  NodeIterator
 
class  NodeList
 
class  Notation
 
class  ProcessingInstruction
 
class  Rect
 
class  RGBColor
 
class  StyleSheet
 
class  StyleSheetList
 
class  TagNodeListImpl
 
class  Text
 
class  TextEvent
 
class  TreeWalker
 
class  UIEvent
 

Typedefs

typedef QHash< QString, const CommandImp * > CommandDict
 
typedef unsigned long long DOMTimeStamp
 
typedef unsigned long long DOMTimeStamp
 
typedef WTF::HashMap< const ElementImpl *, ElementRareDataImpl * > ElementRareDataMap
 
typedef khtml::IDString< EventImpl > EventName
 
typedef khtml::IDString< khtml::LocalNameFactory > LocalName
 
typedef khtml::IDString< khtml::NamespaceFactory > NamespaceName
 
typedef khtml::IDString< khtml::PrefixFactory > PrefixName
 

Enumerations

enum  {
  FontStyleNormalBit = 0, FontStyleItalicBit, FontVariantNormalBit, FontVariantSmallCapsBit,
  FontWeight100Bit, FontWeight200Bit, FontWeight300Bit, FontWeight400Bit,
  FontWeight500Bit, FontWeight600Bit, FontWeight700Bit, FontWeight800Bit,
  FontWeight900Bit, FontTraitsMaskWidth
}
 
enum  CaseSensitivity { CaseSensitive, CaseInsensitive }
 
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
}
 
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
}
 
enum  FontTraitsMask {
  FontStyleNormalMask = 1 << FontStyleNormalBit, FontStyleItalicMask = 1 << FontStyleItalicBit, FontStyleMask = FontStyleNormalMask | FontStyleItalicMask, FontVariantNormalMask = 1 << FontVariantNormalBit,
  FontVariantSmallCapsMask = 1 << FontVariantSmallCapsBit, FontVariantMask = FontVariantNormalMask | FontVariantSmallCapsMask, FontWeight100Mask = 1 << FontWeight100Bit, FontWeight200Mask = 1 << FontWeight200Bit,
  FontWeight300Mask = 1 << FontWeight300Bit, FontWeight400Mask = 1 << FontWeight400Bit, FontWeight500Mask = 1 << FontWeight500Bit, FontWeight600Mask = 1 << FontWeight600Bit,
  FontWeight700Mask = 1 << FontWeight700Bit, FontWeight800Mask = 1 << FontWeight800Bit, FontWeight900Mask = 1 << FontWeight900Bit, FontWeightMask = FontWeight100Mask | FontWeight200Mask | FontWeight300Mask | FontWeight400Mask | FontWeight500Mask | FontWeight600Mask | FontWeight700Mask | FontWeight800Mask | FontWeight900Mask
}
 
enum  tagStatus { OPTIONAL, REQUIRED, FORBIDDEN }
 
enum  XPathExceptionCode { INVALID_EXPRESSION_ERR = 51, TYPE_ERR = 52 }
 

Functions

void addForbidden (int tagId, ushort *forbiddenTags)
 
bool checkChild (ushort tagID, ushort childID, bool strict=false)
 
bool checkIsScopeBoundary (ushort tagID)
 
bool checkQualifiedName (const DOMString &qualifiedName, const DOMString &namespaceURI, int *colonPos, bool nameCanBeNull, bool nameCanBeEmpty, int *pExceptioncode)
 
static bool compareFontFaces (CSSFontFace *first, CSSFontFace *second)
 
static CommandDict createCommandDictionary ()
 
static DOMString domString (const ParseString &ps)
 
static Position & emptyPosition ()
 
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)
 
tagStatus endTagRequirement (quint32 tagId)
 
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 *part, bool, const DOMString &)
 
static bool execInsertNewline (KHTMLPart *part, bool, const DOMString &)
 
static bool execInsertOrderedList (KHTMLPart *part, bool, const DOMString &)
 
static bool execInsertParagraph (KHTMLPart *, bool, const DOMString &)
 
static bool execInsertText (KHTMLPart *part, bool, const DOMString &value)
 
static bool execInsertUnorderedList (KHTMLPart *part, bool, const DOMString &)
 
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 *part, 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 execStrikeThrough (KHTMLPart *part, bool, const DOMString &)
 
static bool execStyleChange (KHTMLPart *part, int propertyID, const DOMString &propertyValue)
 
static bool execStyleChange (KHTMLPart *part, int propertyID, int propertyEnum)
 
static bool execStyleChange (KHTMLPart *part, int propertyID, const char *propertyValue)
 
static bool execSubscript (KHTMLPart *part, bool, const DOMString &)
 
static bool execSuperscript (KHTMLPart *part, bool, const DOMString &)
 
static bool execUnderline (KHTMLPart *part, bool, const DOMString &)
 
static bool execUndo (KHTMLPart *part, bool, const DOMString &)
 
static bool execUnselect (KHTMLPart *part, bool, const DOMString &)
 
static bool firstRunAt (RenderObject *renderNode, int y, NodeImpl *&startNode, long &startOffset)
 
QString getPrintableName (int id)
 
KHTML_NO_EXPORT int getPropertyID (const char *tagStr, int len)
 
KHTML_NO_EXPORT int getValueID (const char *tagStr, int len)
 
bool inSameRootNavigableElement (NodeImpl *n1, NodeImpl *n2)
 
static bool isClassWhitespace (const QChar &c)
 
static bool lastRunAt (RenderObject *renderNode, int y, NodeImpl *&endNode, long &endOffset)
 
quint16 localNamePart (quint32 id)
 
quint32 makeId (quint16 n, quint16 l)
 
quint16 namespacePart (quint32 id)
 
static NodeImpl * nextRenderedEditable (NodeImpl *node)
 
bool operator!= (const Position &a, const Position &b)
 
bool operator!= (const DOMString &a, const DOMString &b)
 
bool operator!= (const DOMString &a, const QString &b)
 
bool operator!= (const DOMString &a, const char *b)
 
bool operator!= (const Selection &a, const Selection &b)
 
QDebug operator<< (QDebug stream, const DOMString &string)
 
QDebug operator<< (QDebug stream, const Position &position)
 
QDebug operator<< (QDebug stream, const Selection &selection)
 
bool operator== (const Position &a, const Position &b)
 
KHTML_EXPORT bool operator== (const DOMString &a, const DOMString &b)
 
KHTML_EXPORT bool operator== (const DOMString &a, const QString &b)
 
KHTML_EXPORT bool operator== (const DOMString &a, const char *b)
 
bool operator== (const Selection &a, const Selection &b)
 
static NodeImpl * previousRenderedEditable (NodeImpl *node)
 
void printEnclosingBlockTree (NodeImpl *node)
 
void printRootEditableTree (NodeImpl *node)
 
static void printSubTree (NodeImpl *node, int indent=0)
 
unsigned int qHash (const DOMString &key)
 
static QString qString (const ParseString &ps)
 
static ElementRareDataImpl * rareDataFromMap (const ElementImpl *element)
 
static ElementRareDataMap & rareDataMap ()
 
void removeForbidden (int tagId, ushort *forbiddenTags)
 
NodeImpl * rootNavigableElement (NodeImpl *node)
 
static bool selectionStartHasStyle (KHTMLPart *part, int propertyID, const char *desiredValue)
 
void splitPrefixLocalName (DOMStringImpl *qualifiedName, DOMString &prefix, DOMString &localName, int colonPos=-2)
 
void splitPrefixLocalName (const DOMString &qualifiedName, PrefixName &prefix, LocalName &localName, bool htmlCompat=false, int colonPos=-2)
 
static bool startAndEndLineNodesIncludingNode (NodeImpl *node, int offset, Selection &selection)
 
static Editor::TriState stateBold (KHTMLPart *part)
 
static Editor::TriState stateItalic (KHTMLPart *part)
 
static Editor::TriState stateNone (KHTMLPart *)
 
static Editor::TriState stateStrike (KHTMLPart *part)
 
static Editor::TriState stateStyle (KHTMLPart *part, int propertyID, const char *desiredValue)
 
static Editor::TriState stateSubscript (KHTMLPart *part)
 
static Editor::TriState stateSuperscript (KHTMLPart *part)
 
static Editor::TriState stateUnderline (KHTMLPart *part)
 
KHTML_EXPORT bool strcasecmp (const DOMString &a, const DOMString &b)
 
KHTML_EXPORT bool strcasecmp (const DOMString &a, const char *b)
 
bool strcasecmp (const DOMStringImpl *a, const DOMStringImpl *b)
 
bool strcmp (const DOMString &a, const DOMString &b)
 
bool strcmp (const DOMStringImpl *a, const DOMStringImpl *b)
 
unsigned short tagPriority (quint32 tagId)
 
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

const quint16 anyLocalName = 0xffff
 
const quint16 anyNamespace = 0xffff
 
const quint32 anyQName = makeId(anyNamespace, anyLocalName)
 
static const EditorCommandInfo commands []
 
static FontTraitsMask desiredTraitsMaskForComparison
 
LocalName emptyLocalName
 
const quint32 emptyNamespace = 1
 
NamespaceName emptyNamespaceName
 
const quint16 emptyPrefix = 0
 
PrefixName emptyPrefixName
 
const tagStatus endTagArray []
 
static const int sMaxUndoSteps = 1000
 
const quint32 svgNamespace = 2
 
const unsigned short KHTML_NO_EXPORT tagPriorityArray []
 
const quint32 xhtmlNamespace = 0
 
const quint32 xlinkNamespace = 3
 
const quint32 xmlNamespace = 5
 
const quint32 xmlnsNamespace = 4
 
const quint16 xmlnsPrefix = 2
 
const quint16 xmlPrefix = 1
 

Detailed Description

This library provides a full-featured HTML parser and widget.

Now these are the various ID types we used.

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.

. They are here to avoid circular dependenies in headers

Typedef Documentation

typedef unsigned long long DOM::DOMTimeStamp

A DOMTimeStamp represents a number of milliseconds.

Definition at line 1037 of file dom_node.h.

Enumeration Type Documentation

List of all supported built-in editor commands.

Definition at line 30 of file editor_command.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jul 1 2020 22:44:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.