KHTML
dom2_range.cpp
Go to the documentation of this file.
77 Range::Range(const Node startContainer, const long startOffset, const Node endContainer, const long endOffset)
88 impl = new RangeImpl(startContainer.handle()->docPtr(),startContainer.handle(),startOffset,endContainer.handle(),endOffset);
421 if (exceptioncode >= RangeException::_EXCEPTION_OFFSET && exceptioncode <= RangeException::_EXCEPTION_MAX)
422 throw RangeException(static_cast<RangeException::RangeExceptionCode>(exceptioncode-RangeException::_EXCEPTION_OFFSET));
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:270
long startOffset() const
Offset within the starting node of the range.
Definition: dom2_range.cpp:124
short compareBoundaryPoints(CompareHow how, const Range &sourceRange)
Compare the end-points of two ranges in a document.
Definition: dom2_range.cpp:271
void setEndAfter(const Node &refNode)
Sets the end of a range to be after a node.
Definition: dom2_range.cpp:231
void setEndBefore(const Node &refNode)
Sets the end position to be before a node.
Definition: dom2_range.cpp:221
void insertNode(const Node &newNode)
Inserts a node into the document or document fragment at the start of the range.
Definition: dom2_range.cpp:322
DocumentFragment is a "lightweight" or "minimal" Document object.
Definition: dom_doc.h:1041
static bool isRangeExceptionCode(int exceptioncode)
Definition: dom2_range.cpp:37
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
Definition: dom_exception.h:58
void selectNodeContents(const Node &refNode)
Select the contents within a node.
Definition: dom2_range.cpp:261
bool isDetached() const
not part of the DOM true if the range is detached
Definition: dom2_range.cpp:397
Range cloneRange()
Produces a new range whose end-points are equal to the end-points of the range.
Definition: dom2_range.cpp:342
DocumentFragment extractContents()
Moves the contents of a range from the containing document or document fragment to a new DocumentFrag...
Definition: dom2_range.cpp:300
void setStartBefore(const Node &refNode)
Sets the start position to be before a node.
Definition: dom2_range.cpp:200
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:245
void detach()
Called to indicate that the range is no longer in use and that the implementation may relinquish any ...
Definition: dom2_range.cpp:387
Node commonAncestorContainer()
Gets the common ancestor container of the range's two end-points.
Definition: dom2_range.cpp:169
void surroundContents(const Node &newParent)
Reparents the contents of the range to the given node and inserts the node at the position of the sta...
Definition: dom2_range.cpp:332
void setStart(const Node &refNode, long offset)
Sets the attributes describing the start of the range.
Definition: dom2_range.cpp:180
void setEnd(const Node &refNode, long offset)
Sets the attributes describing the end of a range.
Definition: dom2_range.cpp:190
void setStartAfter(const Node &refNode)
Sets the start position to be after a node.
Definition: dom2_range.cpp:211
void collapse(bool toStart)
Collapse a range onto one of its end-points.
Definition: dom2_range.cpp:241
Definition: dom2_range.h:79
void deleteContents()
Removes the contents of a range from the containing document or document fragment without returning a...
Definition: dom2_range.cpp:290
Definition: dom2_range.h:47
DocumentFragment createContextualFragment(const DOMString &html)
Definition: dom2_range.cpp:375
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.