From ee5f7e783779d05ab85979ef8162058ec693b875 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 27 Aug 1999 21:40:13 +0000 Subject: [PATCH] Added in GetTextLength and CopyText methods for the MathML folks git-svn-id: svn://10.0.0.236/trunk@44910 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/public/nsITextContent.h | 10 ++++++++++ mozilla/layout/base/public/nsITextContent.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/mozilla/content/base/public/nsITextContent.h b/mozilla/content/base/public/nsITextContent.h index ae2bc6449e2..41fabc50d02 100644 --- a/mozilla/content/base/public/nsITextContent.h +++ b/mozilla/content/base/public/nsITextContent.h @@ -41,6 +41,16 @@ public: NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult, PRInt32& aNumFragmentsResult) = 0; + /** + * Get the length of the text content. + */ + NS_IMETHOD GetTextLength(PRInt32* aLengthResult) = 0; + + /** + * Make a copy of the text content in aResult. + */ + NS_IMETHOD CopyText(nsString& aResult) = 0; + /** * Set the text to the given value. If aNotify is PR_TRUE then * the document is notified of the content change. diff --git a/mozilla/layout/base/public/nsITextContent.h b/mozilla/layout/base/public/nsITextContent.h index ae2bc6449e2..41fabc50d02 100644 --- a/mozilla/layout/base/public/nsITextContent.h +++ b/mozilla/layout/base/public/nsITextContent.h @@ -41,6 +41,16 @@ public: NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult, PRInt32& aNumFragmentsResult) = 0; + /** + * Get the length of the text content. + */ + NS_IMETHOD GetTextLength(PRInt32* aLengthResult) = 0; + + /** + * Make a copy of the text content in aResult. + */ + NS_IMETHOD CopyText(nsString& aResult) = 0; + /** * Set the text to the given value. If aNotify is PR_TRUE then * the document is notified of the content change.