author=ashuk
Bug=50282,44330,53397 r=a=edburns git-svn-id: svn://10.0.0.236/trunk@82252 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
#include "nsIURI.h"
|
||||
#include "nsIDocShellTreeItem.h"
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIFindComponent.h"
|
||||
#include "nsISearchContext.h"
|
||||
#include "nsIContentViewerEdit.h"
|
||||
|
||||
#include "ns_util.h"
|
||||
|
||||
@@ -751,5 +754,65 @@ wsDeallocateInitContextEvent::handleEvent ()
|
||||
} // handleEvent()
|
||||
|
||||
|
||||
|
||||
void *
|
||||
wsFindEvent::handleEvent ()
|
||||
{
|
||||
void *result = nsnull;
|
||||
|
||||
if (mFindComponent && mSearchContext) {
|
||||
PRBool found = PR_TRUE;
|
||||
nsresult rv = mFindComponent->FindNext(mSearchContext, &found);
|
||||
result = (void *) rv;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
wsFindEvent::wsFindEvent(nsIFindComponent * findcomponent, nsISearchContext * srchcontext) :
|
||||
nsActionEvent(),
|
||||
mFindComponent(findcomponent),
|
||||
mSearchContext(srchcontext)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void *
|
||||
wsSelectAllEvent::handleEvent ()
|
||||
{
|
||||
void *result = nsnull;
|
||||
|
||||
if (mContentViewerEdit) {
|
||||
nsresult rv = mContentViewerEdit->SelectAll();
|
||||
result = (void *) rv;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
wsSelectAllEvent::wsSelectAllEvent(nsIContentViewerEdit * contentViewerEdit) :
|
||||
nsActionEvent(),
|
||||
mContentViewerEdit(contentViewerEdit)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void *
|
||||
wsCopySelectionEvent::handleEvent ()
|
||||
{
|
||||
void *result = nsnull;
|
||||
|
||||
if (mContentViewerEdit) {
|
||||
nsresult rv = mContentViewerEdit->CopySelection();
|
||||
result = (void *) rv;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
wsCopySelectionEvent::wsCopySelectionEvent(nsIContentViewerEdit * contentViewerEdit) :
|
||||
nsActionEvent(),
|
||||
mContentViewerEdit(contentViewerEdit)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user