Integration of OCCT 6.5.0 from SVN
[occt.git] / src / LDOM / LDOM_Text.hxx
1 // File:      LDOM_Text.hxx
2 // Created:   26.07.01 19:29:54
3 // Author:    Alexander GRIGORIEV
4 // Copyright: OpenCascade 2001
5
6
7 #ifndef LDOM_Text_HeaderFile
8 #define LDOM_Text_HeaderFile
9
10 #include <LDOM_CharacterData.hxx>
11
12 //  Class LDOM_Text
13 //
14
15 class LDOM_Text : public LDOM_CharacterData
16 {
17  public:
18   // ---------- PUBLIC METHODS ----------
19
20   LDOM_Text () {}
21   // Empty constructor
22
23   LDOM_Text (const LDOM_Text& anOther) : LDOM_CharacterData (anOther) {}
24   // Copy constructor
25
26   LDOM_Text&            operator =      (const LDOM_NullPtr * theNull)
27                 { return (LDOM_Text&) LDOM_CharacterData::operator= (theNull); }
28   // Nullify
29
30   LDOM_Text&            operator =      (const LDOM_Text& theOther)
31                 { return (LDOM_Text&) LDOM_CharacterData::operator= (theOther);}
32   // Assignment
33
34  protected:
35   friend class LDOM_Document;
36   // ---------- PROTECTED METHODS ----------
37
38   LDOM_Text                             (const LDOM_BasicText&          theText,
39                                          const Handle(LDOM_MemManager)& theDoc)
40                                 : LDOM_CharacterData (theText, theDoc) {}
41 };
42
43 #endif