source: NonGTP/Xerces/xerces/include/xercesc/dom/DOMDocumentRange.hpp @ 358

Revision 358, 3.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1#ifndef DOMDocumentRange_HEADER_GUARD_
2#define DOMDocumentRange_HEADER_GUARD_
3
4/*
5 * Copyright 2002,2004 The Apache Software Foundation.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/*
21 * $Id: DOMDocumentRange.hpp,v 1.7 2004/09/08 13:55:39 peiyongz Exp $
22*/
23
24#include <xercesc/util/XercesDefs.hpp>
25
26XERCES_CPP_NAMESPACE_BEGIN
27
28
29class DOMRange;
30
31
32/**
33 * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
34 * @since DOM Level 2
35 */
36class CDOM_EXPORT DOMDocumentRange {
37
38protected:
39    // -----------------------------------------------------------------------
40    //  Hidden constructors
41    // -----------------------------------------------------------------------
42    /** @name Hidden constructors */
43    //@{   
44    DOMDocumentRange() {};
45    //@}
46
47private:
48    // -----------------------------------------------------------------------
49    // Unimplemented constructors and operators
50    // -----------------------------------------------------------------------
51    /** @name Unimplemented constructors and operators */
52    //@{
53    DOMDocumentRange(const DOMDocumentRange &);
54    DOMDocumentRange & operator = (const DOMDocumentRange &);
55    //@}
56
57public:
58    // -----------------------------------------------------------------------
59    //  All constructors are hidden, just the destructor is available
60    // -----------------------------------------------------------------------
61    /** @name Destructor */
62    //@{
63    /**
64     * Destructor
65     *
66     */
67    virtual ~DOMDocumentRange() {};
68    //@}
69
70    // -----------------------------------------------------------------------
71    //  Virtual DOMDocumentRange interface
72    // -----------------------------------------------------------------------
73    /** @name Functions introduced in DOM Level 2 */
74    //@{
75    /**
76          * To create the range  consisting of boundary-points and offset of the
77     * selected contents
78     *
79     * @return The initial state of the Range such that both the boundary-points
80     * are positioned at the beginning of the corresponding DOMDOcument, before
81     * any content. The range returned can only be used to select content
82     * associated with this document, or with documentFragments and Attrs for
83     * which this document is the ownerdocument
84     * @since DOM Level 2
85          */
86    virtual DOMRange    *createRange() = 0;
87
88    //@}
89};
90
91
92XERCES_CPP_NAMESPACE_END
93
94#endif
Note: See TracBrowser for help on using the repository browser.