Xerces-C++: DOMRange.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_DOMRANGE_HPP)

23#define XERCESC_INCLUDE_GUARD_DOMRANGE_HPP

24

26

28

31

37protected:

38

39

40

46

47private:

48

49

50

55

56public:

57

58

59

68

69

70

71

100 START_TO_START = 0,

101 START_TO_END = 1,

102 END_TO_END = 2,

103 END_TO_START = 3

105

107

108

109

110

113

114

115

125

135

145

155

165

176

177

178

179

203

227

245

263

281

299

300

301

302

314

332

348

367

382

399

413

443

470

482

494

508

510

511

512

513

525};

526

527

529

530#endif

#define CDOM_EXPORT

Definition XercesDefs.hpp:166

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

size_t XMLSize_t

Definition Xerces_autoconf_config.hpp:112

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object.

Definition DOMDocumentFragment.hpp:71

The DOMNode interface is the primary datatype for the entire Document Object Model.

Definition DOMNode.hpp:139

Definition DOMRange.hpp:36

virtual void setEndBefore(const DOMNode *refNode)=0

Sets the end position to be before a node.

CompareHow

Constants CompareHow.

Definition DOMRange.hpp:99

virtual const XMLCh * toString() const =0

Returns the contents of a Range as a string.

virtual XMLSize_t getStartOffset() const =0

Offset within the starting node of the Range.

virtual const DOMNode * getCommonAncestorContainer() const =0

The deepest common ancestor container of the Range's two boundary-points.

virtual DOMDocumentFragment * cloneContents() const =0

Duplicates the contents of a Range.

virtual void setStartAfter(const DOMNode *refNode)=0

Sets the start position to be after a node.

virtual void collapse(bool toStart)=0

Collapse a Range onto one of its boundary-points.

virtual bool getCollapsed() const =0

TRUE if the Range is collapsed.

virtual void selectNode(const DOMNode *refNode)=0

Select a node and its contents.

DOMRange()

Definition DOMRange.hpp:43

virtual short compareBoundaryPoints(CompareHow how, const DOMRange *sourceRange) const =0

Compare the boundary-points of two Ranges in a document.

virtual void surroundContents(DOMNode *newParent)=0

Reparents the contents of the Range to the given node and inserts the node at the position of the sta...

virtual void release()=0

Called to indicate that this Range is no longer in use and that the implementation may relinquish any...

virtual DOMDocumentFragment * extractContents()=0

Moves the contents of a Range from the containing document or document fragment to a new DOMDocumentF...

virtual void selectNodeContents(const DOMNode *refNode)=0

Select the contents within a node.

virtual void setStartBefore(const DOMNode *refNode)=0

Sets the start position to be before a node.

virtual void insertNode(DOMNode *newNode)=0

Inserts a node into the DOMDocument or DOMDocumentFragment at the start of the Range.

virtual DOMNode * getStartContainer() const =0

DOMNode within which the Range begins.

virtual void detach()=0

Called to indicate that the Range is no longer in use and that the implementation may relinquish any ...

virtual DOMNode * getEndContainer() const =0

DOMNode within which the Range ends.

virtual XMLSize_t getEndOffset() const =0

Offset within the ending node of the Range.

virtual DOMRange * cloneRange() const =0

Produces a new Range whose boundary-points are equal to the boundary-points of the Range.

virtual void setEndAfter(const DOMNode *refNode)=0

Sets the end of a Range to be after a node.

virtual void setStart(const DOMNode *refNode, XMLSize_t offset)=0

Sets the attributes describing the start of the Range.

virtual void deleteContents()=0

Removes the contents of a Range from the containing document or document fragment without returning a...

DOMRange(const DOMRange &)

Definition DOMRange.hpp:44

virtual ~DOMRange()

Destructor.

Definition DOMRange.hpp:66

virtual void setEnd(const DOMNode *refNode, XMLSize_t offset)=0

Sets the attributes describing the end of a Range.