KHTML
dom2_range.cpp
Go to the documentation of this file.
77Range::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));
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
Definition: dom_exception.h:59
DocumentFragment is a "lightweight" or "minimal" Document object.
Definition: dom_doc.h:1042
The Document interface represents the entire HTML or XML document.
Definition: dom_doc.h:246
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:271
Definition: dom2_range.h:47
static bool isRangeExceptionCode(int exceptioncode)
Definition: dom2_range.cpp:37
Definition: dom2_range.h:80
Range cloneRange()
Produces a new range whose end-points are equal to the end-points of the range.
Definition: dom2_range.cpp:342
bool isDetached() const
not part of the DOM true if the range is detached
Definition: dom2_range.cpp:397
void setEnd(const Node &refNode, long offset)
Sets the attributes describing the end of a range.
Definition: dom2_range.cpp:190
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
DocumentFragment extractContents()
Moves the contents of a range from the containing document or document fragment to a new DocumentFrag...
Definition: dom2_range.cpp:300
Node commonAncestorContainer()
Gets the common ancestor container of the range's two end-points.
Definition: dom2_range.cpp:169
void setStartBefore(const Node &refNode)
Sets the start position to be before a node.
Definition: dom2_range.cpp:200
void deleteContents()
Removes the contents of a range from the containing document or document fragment without returning a...
Definition: dom2_range.cpp:290
void setEndBefore(const Node &refNode)
Sets the end position to be before a node.
Definition: dom2_range.cpp:221
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
void setEndAfter(const Node &refNode)
Sets the end of a range to be after a node.
Definition: dom2_range.cpp:231
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
void collapse(bool toStart)
Collapse a range onto one of its end-points.
Definition: dom2_range.cpp:241
void setStart(const Node &refNode, long offset)
Sets the attributes describing the start of the range.
Definition: dom2_range.cpp:180
void setStartAfter(const Node &refNode)
Sets the start position to be after a node.
Definition: dom2_range.cpp:211
short compareBoundaryPoints(CompareHow how, const Range &sourceRange)
Compare the end-points of two ranges in a document.
Definition: dom2_range.cpp:271
DocumentFragment createContextualFragment(const DOMString &html)
Definition: dom2_range.cpp:375
void selectNodeContents(const Node &refNode)
Select the contents within a node.
Definition: dom2_range.cpp:261
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.