Support for nsPresShell::DoCopy()

git-svn-id: svn://10.0.0.236/trunk@26680 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcafee%netscape.com
1999-04-07 04:10:04 +00:00
parent 5fd42621da
commit 3ef4585453

View File

@@ -84,7 +84,10 @@
// For Copy
#include "nsIDOMSelection.h"
#ifndef NEW_CLIPBOARD_SUPPORT
#include "nsISelectionMgr.h"
#endif
// XXX For font setting below
#include "nsFont.h"
@@ -1976,9 +1979,14 @@ nsBrowserWindow::DoCopy()
{
nsIPresShell* shell = GetPresShell();
if (nsnull != shell) {
#ifndef NEW_CLIPBOARD_SUPPORT
nsISelectionMgr* selectionMgr;
if (NS_SUCCEEDED(mAppShell->GetSelectionMgr(&selectionMgr)))
shell->DoCopy(selectionMgr);
#else
shell->DoCopy();
#endif
NS_RELEASE(shell);
}
}