Paragraph: Added Clear() method to remove all TextChunks.

This commit is contained in:
Stephan Aßmus
2013-09-06 10:04:02 +02:00
parent fcc745e0e7
commit 822872d6c3
2 changed files with 8 additions and 0 deletions
@@ -125,6 +125,13 @@ Paragraph::Insert(int32 offset, const TextSpan& newSpan)
} }
void
Paragraph::Clear()
{
fTextSpans.Clear();
}
int32 int32
Paragraph::Length() const Paragraph::Length() const
{ {
@@ -32,6 +32,7 @@ public:
bool Append(const TextSpan& span); bool Append(const TextSpan& span);
bool Insert(int32 offset, const TextSpan& span); bool Insert(int32 offset, const TextSpan& span);
void Clear();
int32 Length() const; int32 Length() const;