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

KHTML

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

Namespaces

 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 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 &)
 
bool operator!= (const DOMString &a, const DOMString &b)
 
bool operator!= (const DOMString &a, const QString &b)
 
bool operator!= (const DOMString &a, const char *b)
 
QDebug operator<< (QDebug stream, const DOMString &string)
 
bool operator== (const DOMString &a, const DOMString &b)
 
bool operator== (const DOMString &a, const QString &b)
 
bool operator== (const DOMString &a, const char *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 DOMString &b)
 
bool strcasecmp (const DOMString &a, const char *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 60 of file jsediting.cpp.

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

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.

enum DOM::XPathExceptionCode
Enumerator
INVALID_EXPRESSION_ERR 
TYPE_ERR 

Definition at line 51 of file dom3_xpath.h.

Function Documentation

static CommandDict DOM::createCommandDictionary ( )
static

Definition at line 602 of file jsediting.cpp.

static bool DOM::enabled ( KHTMLPart *  )
static

Definition at line 383 of file jsediting.cpp.

static bool DOM::enabledAnySelection ( KHTMLPart *  part)
static

Definition at line 388 of file jsediting.cpp.

static bool DOM::enabledPaste ( KHTMLPart *  part)
static

Definition at line 395 of file jsediting.cpp.

static bool DOM::enabledRangeSelection ( KHTMLPart *  part)
static

Definition at line 402 of file jsediting.cpp.

static bool DOM::enabledRedo ( KHTMLPart *  part)
static

Definition at line 407 of file jsediting.cpp.

static bool DOM::enabledUndo ( KHTMLPart *  part)
static

Definition at line 412 of file jsediting.cpp.

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

Definition at line 182 of file jsediting.cpp.

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

Definition at line 187 of file jsediting.cpp.

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

Definition at line 193 of file jsediting.cpp.

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

Definition at line 199 of file jsediting.cpp.

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

Definition at line 205 of file jsediting.cpp.

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

Definition at line 211 of file jsediting.cpp.

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

Definition at line 216 of file jsediting.cpp.

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

Definition at line 238 of file jsediting.cpp.

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

Definition at line 243 of file jsediting.cpp.

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

Definition at line 249 of file jsediting.cpp.

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

Definition at line 267 of file jsediting.cpp.

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

Definition at line 255 of file jsediting.cpp.

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

Definition at line 261 of file jsediting.cpp.

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

Definition at line 273 of file jsediting.cpp.

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

Definition at line 279 of file jsediting.cpp.

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

Definition at line 285 of file jsediting.cpp.

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

Definition at line 290 of file jsediting.cpp.

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

Definition at line 295 of file jsediting.cpp.

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

Definition at line 300 of file jsediting.cpp.

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

Definition at line 305 of file jsediting.cpp.

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

Definition at line 313 of file jsediting.cpp.

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

Definition at line 321 of file jsediting.cpp.

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

Definition at line 327 of file jsediting.cpp.

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

Definition at line 333 of file jsediting.cpp.

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

Definition at line 339 of file jsediting.cpp.

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

Definition at line 127 of file jsediting.cpp.

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

Definition at line 137 of file jsediting.cpp.

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

Definition at line 147 of file jsediting.cpp.

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

Definition at line 345 of file jsediting.cpp.

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

Definition at line 350 of file jsediting.cpp.

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

Definition at line 361 of file jsediting.cpp.

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

Definition at line 355 of file jsediting.cpp.

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

Definition at line 367 of file jsediting.cpp.

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

Definition at line 150 of file dom_string.h.

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

Definition at line 151 of file dom_string.h.

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

Definition at line 152 of file dom_string.h.

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

Definition at line 143 of file dom_string.h.

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

Definition at line 365 of file dom_string.cpp.

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

Definition at line 370 of file dom_string.cpp.

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

Definition at line 381 of file dom_string.cpp.

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

Definition at line 162 of file jsediting.cpp.

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

Definition at line 439 of file jsediting.cpp.

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

Definition at line 444 of file jsediting.cpp.

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

Definition at line 434 of file jsediting.cpp.

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

Definition at line 449 of file jsediting.cpp.

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

Definition at line 152 of file jsediting.cpp.

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

Definition at line 454 of file jsediting.cpp.

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

Definition at line 459 of file jsediting.cpp.

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

Definition at line 464 of file jsediting.cpp.

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

Definition at line 295 of file dom_string.cpp.

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

Definition at line 300 of file dom_string.cpp.

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

Definition at line 153 of file dom_string.h.

static DOMString DOM::valueBackColor ( KHTMLPart *  part)
static

Definition at line 479 of file jsediting.cpp.

static DOMString DOM::valueFontName ( KHTMLPart *  part)
static

Definition at line 484 of file jsediting.cpp.

static DOMString DOM::valueFontSize ( KHTMLPart *  part)
static

Definition at line 489 of file jsediting.cpp.

static DOMString DOM::valueForeColor ( KHTMLPart *  part)
static

Definition at line 494 of file jsediting.cpp.

static DOMString DOM::valueNull ( KHTMLPart *  )
static

Definition at line 474 of file jsediting.cpp.

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

Definition at line 172 of file jsediting.cpp.

Variable Documentation

const EditorCommandInfo DOM::commands[]
static

Definition at line 504 of file jsediting.cpp.

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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:23 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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