• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
DOM Namespace Reference

Namespaces

namespace  XPath

Classes

class  AbstractView
class  Attr
class  CDATASection
class  CharacterData
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  CSSNamespaceRule
class  CSSPageRule
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  DocumentStyle
class  DocumentType
class  DOMException
class  DOMImplementation
class  DomShared
class  DOMString
class  Editor
class  Element
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  HTMLFormCollection
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  JSEditor
class  KeyboardEvent
class  LinkStyle
class  MediaList
class  MouseEvent
class  MutationEvent
class  NamedNodeMap
class  Node
class  NodeFilter
class  NodeIterator
class  NodeList
class  Notation
class  ProcessingInstruction
class  QualifiedName
class  Range
class  RangeException
class  Rect
class  RGBColor
class  StyleSheet
class  StyleSheetList
class  Text
class  TextEvent
class  TreeWalker
class  UIEvent
class  XPathException
class  XPathNamespaceImpl

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
}
enum  XPathExceptionCode { INVALID_EXPRESSION_ERR = 51 , TYPE_ERR = 52 }

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 *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 char *propertyValue)
static bool execStyleChange (KHTMLPart *part, int propertyID, const DOMString &propertyValue)
static bool execStyleChange (KHTMLPart *part, int propertyID, int propertyEnum)
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 &)
bool operator!= (const DOMString &a, const char *b)
bool operator!= (const DOMString &a, const DOMString &b)
bool operator!= (const DOMString &a, const QString &b)
QDebug operator<< (QDebug stream, const DOMString &string)
bool operator== (const DOMString &a, const char *b)
bool operator== (const DOMString &a, const DOMString &b)
bool operator== (const DOMString &a, const QString &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 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)
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

◆ CommandDict

typedef QHash<QString,const CommandImp*> DOM::CommandDict

Definition at line 60 of file jsediting.cpp.

◆ DOMTimeStamp

typedef unsigned long long DOM::DOMTimeStamp

A DOMTimeStamp represents a number of milliseconds.

Definition at line 1020 of file dom_node.h.

Enumeration Type Documentation

◆ EditorCommand

enum DOM::EditorCommand

List of all supported built-in editor commands.

Enumerator
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 

Definition at line 29 of file editor_command.h.

◆ XPathExceptionCode

enum DOM::XPathExceptionCode
Enumerator
INVALID_EXPRESSION_ERR 
TYPE_ERR 

Definition at line 51 of file dom3_xpath.h.

Function Documentation

◆ createCommandDictionary()

CommandDict DOM::createCommandDictionary ( )
static

Definition at line 602 of file jsediting.cpp.

◆ enabled()

bool DOM::enabled ( KHTMLPart * )
static

Definition at line 383 of file jsediting.cpp.

◆ enabledAnySelection()

bool DOM::enabledAnySelection ( KHTMLPart * part)
static

Definition at line 388 of file jsediting.cpp.

◆ enabledPaste()

bool DOM::enabledPaste ( KHTMLPart * part)
static

Definition at line 395 of file jsediting.cpp.

◆ enabledRangeSelection()

bool DOM::enabledRangeSelection ( KHTMLPart * part)
static

Definition at line 402 of file jsediting.cpp.

◆ enabledRedo()

bool DOM::enabledRedo ( KHTMLPart * part)
static

Definition at line 407 of file jsediting.cpp.

◆ enabledUndo()

bool DOM::enabledUndo ( KHTMLPart * part)
static

Definition at line 412 of file jsediting.cpp.

◆ execBackColor()

bool DOM::execBackColor ( KHTMLPart * part,
bool ,
const DOMString & value )
static

Definition at line 182 of file jsediting.cpp.

◆ execBold()

bool DOM::execBold ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 187 of file jsediting.cpp.

◆ execCopy()

bool DOM::execCopy ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 193 of file jsediting.cpp.

◆ execCut()

bool DOM::execCut ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 199 of file jsediting.cpp.

◆ execDelete()

bool DOM::execDelete ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 205 of file jsediting.cpp.

◆ execFontName()

bool DOM::execFontName ( KHTMLPart * part,
bool ,
const DOMString & value )
static

Definition at line 211 of file jsediting.cpp.

◆ execFontSize()

bool DOM::execFontSize ( KHTMLPart * part,
bool ,
const DOMString & value )
static

Definition at line 216 of file jsediting.cpp.

◆ execForeColor()

bool DOM::execForeColor ( KHTMLPart * part,
bool ,
const DOMString & value )
static

Definition at line 238 of file jsediting.cpp.

◆ execIndent()

bool DOM::execIndent ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 243 of file jsediting.cpp.

◆ execInsertNewline()

bool DOM::execInsertNewline ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 249 of file jsediting.cpp.

◆ execInsertOrderedList()

bool DOM::execInsertOrderedList ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 267 of file jsediting.cpp.

◆ execInsertParagraph()

bool DOM::execInsertParagraph ( KHTMLPart * ,
bool ,
const DOMString &  )
static

Definition at line 255 of file jsediting.cpp.

◆ execInsertText()

bool DOM::execInsertText ( KHTMLPart * part,
bool ,
const DOMString & value )
static

Definition at line 261 of file jsediting.cpp.

◆ execInsertUnorderedList()

bool DOM::execInsertUnorderedList ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 273 of file jsediting.cpp.

◆ execItalic()

bool DOM::execItalic ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 279 of file jsediting.cpp.

◆ execJustifyCenter()

bool DOM::execJustifyCenter ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 285 of file jsediting.cpp.

◆ execJustifyFull()

bool DOM::execJustifyFull ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 290 of file jsediting.cpp.

◆ execJustifyLeft()

bool DOM::execJustifyLeft ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 295 of file jsediting.cpp.

◆ execJustifyRight()

bool DOM::execJustifyRight ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 300 of file jsediting.cpp.

◆ execOutdent()

bool DOM::execOutdent ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 305 of file jsediting.cpp.

◆ execPaste()

bool DOM::execPaste ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 313 of file jsediting.cpp.

◆ execPrint()

bool DOM::execPrint ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 321 of file jsediting.cpp.

◆ execRedo()

bool DOM::execRedo ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 327 of file jsediting.cpp.

◆ execSelectAll()

bool DOM::execSelectAll ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 333 of file jsediting.cpp.

◆ execStrikeThrough()

bool DOM::execStrikeThrough ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 339 of file jsediting.cpp.

◆ execStyleChange() [1/3]

bool DOM::execStyleChange ( KHTMLPart * part,
int propertyID,
const char * propertyValue )
static

Definition at line 147 of file jsediting.cpp.

◆ execStyleChange() [2/3]

bool DOM::execStyleChange ( KHTMLPart * part,
int propertyID,
const DOMString & propertyValue )
static

Definition at line 127 of file jsediting.cpp.

◆ execStyleChange() [3/3]

bool DOM::execStyleChange ( KHTMLPart * part,
int propertyID,
int propertyEnum )
static

Definition at line 137 of file jsediting.cpp.

◆ execSubscript()

bool DOM::execSubscript ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 345 of file jsediting.cpp.

◆ execSuperscript()

bool DOM::execSuperscript ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 350 of file jsediting.cpp.

◆ execUnderline()

bool DOM::execUnderline ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 361 of file jsediting.cpp.

◆ execUndo()

bool DOM::execUndo ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 355 of file jsediting.cpp.

◆ execUnselect()

bool DOM::execUnselect ( KHTMLPart * part,
bool ,
const DOMString &  )
static

Definition at line 367 of file jsediting.cpp.

◆ operator!=() [1/3]

bool DOM::operator!= ( const DOMString & a,
const char * b )
inline

Definition at line 168 of file dom_string.h.

◆ operator!=() [2/3]

bool DOM::operator!= ( const DOMString & a,
const DOMString & b )
inline

Definition at line 166 of file dom_string.h.

◆ operator!=() [3/3]

bool DOM::operator!= ( const DOMString & a,
const QString & b )
inline

Definition at line 167 of file dom_string.h.

◆ operator<<()

QDebug DOM::operator<< ( QDebug stream,
const DOMString & string )
inline

Definition at line 159 of file dom_string.h.

◆ operator==() [1/3]

bool DOM::operator== ( const DOMString & a,
const char * b )

Definition at line 434 of file dom_string.cpp.

◆ operator==() [2/3]

bool DOM::operator== ( const DOMString & a,
const DOMString & b )

Definition at line 418 of file dom_string.cpp.

◆ operator==() [3/3]

bool DOM::operator== ( const DOMString & a,
const QString & b )

Definition at line 423 of file dom_string.cpp.

◆ selectionStartHasStyle()

bool DOM::selectionStartHasStyle ( KHTMLPart * part,
int propertyID,
const char * desiredValue )
static

Definition at line 162 of file jsediting.cpp.

◆ stateBold()

Editor::TriState DOM::stateBold ( KHTMLPart * part)
static

Definition at line 439 of file jsediting.cpp.

◆ stateItalic()

Editor::TriState DOM::stateItalic ( KHTMLPart * part)
static

Definition at line 444 of file jsediting.cpp.

◆ stateNone()

Editor::TriState DOM::stateNone ( KHTMLPart * )
static

Definition at line 434 of file jsediting.cpp.

◆ stateStrike()

Editor::TriState DOM::stateStrike ( KHTMLPart * part)
static

Definition at line 449 of file jsediting.cpp.

◆ stateStyle()

Editor::TriState DOM::stateStyle ( KHTMLPart * part,
int propertyID,
const char * desiredValue )
static

Definition at line 152 of file jsediting.cpp.

◆ stateSubscript()

Editor::TriState DOM::stateSubscript ( KHTMLPart * part)
static

Definition at line 454 of file jsediting.cpp.

◆ stateSuperscript()

Editor::TriState DOM::stateSuperscript ( KHTMLPart * part)
static

Definition at line 459 of file jsediting.cpp.

◆ stateUnderline()

Editor::TriState DOM::stateUnderline ( KHTMLPart * part)
static

Definition at line 464 of file jsediting.cpp.

◆ strcasecmp() [1/2]

bool DOM::strcasecmp ( const DOMString & a,
const char * b )

Definition at line 353 of file dom_string.cpp.

◆ strcasecmp() [2/2]

bool DOM::strcasecmp ( const DOMString & a,
const DOMString & b )

Definition at line 348 of file dom_string.cpp.

◆ strcmp()

bool DOM::strcmp ( const DOMString & a,
const DOMString & b )
inline

Definition at line 169 of file dom_string.h.

◆ valueBackColor()

DOMString DOM::valueBackColor ( KHTMLPart * part)
static

Definition at line 479 of file jsediting.cpp.

◆ valueFontName()

DOMString DOM::valueFontName ( KHTMLPart * part)
static

Definition at line 484 of file jsediting.cpp.

◆ valueFontSize()

DOMString DOM::valueFontSize ( KHTMLPart * part)
static

Definition at line 489 of file jsediting.cpp.

◆ valueForeColor()

DOMString DOM::valueForeColor ( KHTMLPart * part)
static

Definition at line 494 of file jsediting.cpp.

◆ valueNull()

DOMString DOM::valueNull ( KHTMLPart * )
static

Definition at line 474 of file jsediting.cpp.

◆ valueStyle()

DOMString DOM::valueStyle ( KHTMLPart * part,
int propertyID )
static

Definition at line 172 of file jsediting.cpp.

Variable Documentation

◆ commands

const EditorCommandInfo DOM::commands[]
static

Definition at line 504 of file jsediting.cpp.

◆ sMaxUndoSteps

const int DOM::sMaxUndoSteps = 1000
static

Definition at line 68 of file editor.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal