41 TGTextLine(
const TGTextLine&);
42 TGTextLine& operator=(
const TGTextLine&);
46 TGTextLine(TGTextLine *line);
47 TGTextLine(
const char *
string);
48 virtual ~TGTextLine();
51 ULong_t GetLineLength() {
return fLength; }
53 void DelText(ULong_t pos, ULong_t length);
54 void InsText(ULong_t pos,
const char *text);
55 char *GetText(ULong_t pos, ULong_t length);
56 char *GetText()
const {
return fString; }
57 char *GetWord(ULong_t pos);
59 void DelChar(ULong_t pos);
60 void InsChar(ULong_t pos,
char character);
61 char GetChar(ULong_t pos);
63 ClassDef(TGTextLine,0)
79 TGText(
const TGText&);
80 TGText& operator=(
const TGText&);
83 Bool_t SetCurrentRow(Long_t row);
89 TGText(
const char *
string);
93 Bool_t Load(
const char *fn, Long_t startpos = 0, Long_t length = -1);
94 Bool_t LoadBuffer(
const char *txtbuf);
95 Bool_t Save(
const char *fn);
96 Bool_t Append(
const char *fn);
97 Bool_t IsSaved()
const {
return fIsSaved; }
98 const char *GetFileName()
const {
return fFilename.Data(); }
100 Bool_t DelChar(TGLongPosition pos);
101 Bool_t InsChar(TGLongPosition pos,
char c);
102 char GetChar(TGLongPosition pos);
104 Bool_t DelText(TGLongPosition start, TGLongPosition end);
105 Bool_t InsText(TGLongPosition pos,
const char *buf);
106 Bool_t InsText(TGLongPosition ins_pos, TGText *src, TGLongPosition start_src, TGLongPosition end_src);
107 Bool_t AddText(TGText *text);
109 Bool_t DelLine(ULong_t pos);
110 char *GetLine(TGLongPosition pos, ULong_t length);
112 TGTextLine *GetCurrentLine()
const {
return fCurrent; }
113 Bool_t BreakLine(TGLongPosition pos);
114 Bool_t InsLine(ULong_t row,
const char *
string);
116 Long_t RowCount()
const {
return fRowCount; }
117 Long_t ColCount()
const {
return fColCount; }
119 Long_t GetLineLength(Long_t row);
120 Long_t GetLongestLine()
const {
return fLongestLine; }
122 void ReTab(Long_t row);
124 Bool_t Search(TGLongPosition *foundPos, TGLongPosition start,
const char *searchString,
125 Bool_t direction, Bool_t caseSensitive);
126 Bool_t Replace(TGLongPosition start,
const char *oldText,
const char *newText,
127 Bool_t direction, Bool_t caseSensitive);