summaryrefslogtreecommitdiff
path: root/inc/LDOM_Text.hxx
blob: e1202ef6be2a7896f7e3694fc58bd04499a248cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// File:      LDOM_Text.hxx
// Created:   26.07.01 19:29:54
// Author:    Alexander GRIGORIEV
// Copyright: OpenCascade 2001


#ifndef LDOM_Text_HeaderFile
#define LDOM_Text_HeaderFile

#include <LDOM_CharacterData.hxx>

//  Class LDOM_Text
//

class LDOM_Text : public LDOM_CharacterData
{
 public:
  // ---------- PUBLIC METHODS ----------

  LDOM_Text () {}
  // Empty constructor

  LDOM_Text (const LDOM_Text& anOther) : LDOM_CharacterData (anOther) {}
  // Copy constructor

  LDOM_Text&            operator =      (const LDOM_NullPtr * theNull)
                { return (LDOM_Text&) LDOM_CharacterData::operator= (theNull); }
  // Nullify

  LDOM_Text&            operator =      (const LDOM_Text& theOther)
                { return (LDOM_Text&) LDOM_CharacterData::operator= (theOther);}
  // Assignment

 protected:
  friend class LDOM_Document;
  // ---------- PROTECTED METHODS ----------

  LDOM_Text                             (const LDOM_BasicText&          theText,
                                         const Handle(LDOM_MemManager)& theDoc)
                                : LDOM_CharacterData (theText, theDoc) {}
};

#endif