зеркало из https://github.com/mozilla/gecko-dev.git
Added in GetTextLength and CopyText methods for the MathML folks
This commit is contained in:
Родитель
7f586556a6
Коммит
b509ac661c
|
@ -41,6 +41,16 @@ public:
|
||||||
NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult,
|
NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult,
|
||||||
PRInt32& aNumFragmentsResult) = 0;
|
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
|
* Set the text to the given value. If aNotify is PR_TRUE then
|
||||||
* the document is notified of the content change.
|
* the document is notified of the content change.
|
||||||
|
|
|
@ -41,6 +41,16 @@ public:
|
||||||
NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult,
|
NS_IMETHOD GetText(const nsTextFragment*& aFragmentsResult,
|
||||||
PRInt32& aNumFragmentsResult) = 0;
|
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
|
* Set the text to the given value. If aNotify is PR_TRUE then
|
||||||
* the document is notified of the content change.
|
* the document is notified of the content change.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче