Added additional methods to clipboard interfaces

This commit is contained in:
rods%netscape.com 1999-03-23 21:25:12 +00:00
Родитель 99edb79fd2
Коммит 0e414be672
2 изменённых файлов: 36 добавлений и 0 удалений

Просмотреть файл

@ -44,6 +44,16 @@ class nsIClipboard : public nsISupports {
NS_IMETHOD SetTransferable(nsITransferable * aTransferable, nsIClipboardOwner * anOwner) = 0;
/**
* Gets the transferable object from the clipboard,
* it is used to get and set the data from the native clipboard
*
* @param aTransferable The transferable
* @result NS_Ok if no errors
*/
NS_IMETHOD GetTransferable(nsITransferable ** aTransferable) = 0;
/**
* Gets the data from the clipboard and put it into the transferable object
*
@ -70,6 +80,25 @@ class nsIClipboard : public nsISupports {
NS_IMETHOD IsDataFlavorSupported(nsIDataFlavor * aDataFlavor) = 0;
/**
* This empties the clipboard and notifies the clipboard owner
* This empties the "logical" clipboard it does not clear the native clipboard
*
* @result NS_OkK if successfull
*/
NS_IMETHOD EmptyClipboard() = 0;
/**
* Some platforms support deferred notification for putting data on the clipboard
* This method forces the data onto the clipboard in its various formats
* This may be used if the application going away.
*
* @result NS_OkK if successfull
*/
NS_IMETHOD ForceDataToClipboard() = 0;
};
#endif

Просмотреть файл

@ -90,6 +90,13 @@ class nsITransferable : public nsISupports {
*/
NS_IMETHOD AddDataFlavor(const nsString & aMimeType, const nsString & aHumanPresentableName) = 0;
/**
* Returns whether the data is large
*
* @return NS_OK is data set is larg, NS_ERROR_FAILURE if data set is small
*/
NS_IMETHOD IsLargeDataSet() = 0;
};
#endif