Add SelectAll

git-svn-id: svn://10.0.0.236/trunk@45608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com 1999-09-02 01:21:48 +00:00
parent 137ddb057c
commit 91bb1ea4e2

View File

@ -23,6 +23,7 @@
#include "nsIBrowserWindow.h"
#include "nsIWebShell.h"
#include "nsIClipboardCommands.h"
#include "pratom.h"
#include "prprf.h"
#include "nsIComponentManager.h"
@ -2448,6 +2449,18 @@ nsBrowserAppCore::Observe( nsISupports *aSubject,
return rv;
}
NS_IMETHODIMP
nsBrowserAppCore::SelectAll()
{
nsresult rv;
nsCOMPtr<nsIClipboardCommands> clip(do_QueryInterface(mContentAreaWebShell,&rv));
if ( NS_SUCCEEDED(rv) ) {
rv = clip->SelectAll();
}
return rv;
}
NS_IMETHODIMP
nsBrowserInstance::GetIsViewSource(PRBool *aBool) {
nsresult rv = NS_OK;