KHTML
Go to the documentation of this file.
30 #ifndef _dom2_range_h_
31 #define _dom2_range_h_
38 class DocumentFragment;
53 { code = other.
code;
return *
this; }
61 BAD_BOUNDARYPOINTS_ERR = 1,
62 INVALID_NODE_TYPE_ERR = 2,
63 _EXCEPTION_OFFSET = 2000,
72 static DOMString codeAsString(
int rangeCode);
75 static bool isRangeExceptionCode(
int exceptioncode);
81 friend class DocumentImpl;
83 friend class RangeImpl;
88 Range(
const Node startContainer,
const long startOffset,
const Node endContainer,
const long endOffset);
98 Node startContainer()
const;
104 long startOffset()
const;
110 Node endContainer()
const;
116 long endOffset()
const;
122 bool collapsed()
const;
130 Node commonAncestorContainer();
153 void setStart (
const Node &refNode,
long offset );
173 void setEnd (
const Node &refNode,
long offset );
189 void setStartBefore (
const Node &refNode );
205 void setStartAfter (
const Node &refNode );
221 void setEndBefore (
const Node &refNode );
237 void setEndAfter (
const Node &refNode );
248 void collapse (
bool toStart );
264 void selectNode (
const Node &refNode );
279 void selectNodeContents (
const Node &refNode );
304 short compareBoundaryPoints ( CompareHow how,
const Range &sourceRange );
317 bool boundaryPointsValid ( );
332 void deleteContents ( );
390 void insertNode (
const Node &newNode );
424 void surroundContents (
const Node &newParent );
433 Range cloneRange ( );
466 bool isDetached()
const;
472 RangeImpl *handle()
const;
478 void throwException(
int exceptioncode)
const;
This library provides a full-featured HTML parser and widget.
The Document interface represents the entire HTML or XML document.
RangeException(const RangeException &other)
DocumentFragment is a "lightweight" or "minimal" Document object.
RangeExceptionCode
An integer indicating the type of error generated.
This class implements the basic string we use in the DOM.
virtual ~RangeException()
The Node interface is the primary datatype for the entire Document Object Model.
RangeException(unsigned short _code)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.