Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
PrintingPromptService.cpp File Reference
#include "stdafx.h"
#include "Dialogs.h"
#include "PrintingPromptService.h"
#include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIDOMWindow.h"
#include "nsIEmbeddingSiteWindow.h"
#include "nsIFactory.h"
#include "nsIPrintingPromptService.h"
#include "nsIServiceManager.h"
#include "nsIWebBrowserChrome.h"
#include "nsIWindowWatcher.h"
#include "nsIWebProgressListener.h"
#include "nsPrintProgressParams.h"
#include "nsPrintDialogUtil.h"
#include "PrintProgressDialog.h"
#include "nsIEventQueueService.h"
#include "plevent.h"

Go to the source code of this file.

Classes

class  ResourceState
class  CPrintingPromptService
class  CPrintingPromptServiceFactory

Functions

static void PR_CALLBACK HandlePLEvent (PLEvent *aEvent)
static void PR_CALLBACK DestroyPLEvent (PLEvent *aEvent)
void InitPrintingPromptService (HINSTANCE instance)
nsresult NS_NewPrintingPromptServiceFactory (nsIFactory **aFactory)

Variables

static HINSTANCE gInstance

Function Documentation

void PR_CALLBACK DestroyPLEvent ( PLEvent aEvent) [static]

Definition at line 291 of file PrintingPromptService.cpp.

{
  CPrintingPromptService *printingPromptService = (CPrintingPromptService*)PL_GetEventOwner(aEvent);
  NS_IF_RELEASE(printingPromptService);

  delete aEvent;
}

Here is the call graph for this function:

void PR_CALLBACK HandlePLEvent ( PLEvent aEvent) [static]

Definition at line 280 of file PrintingPromptService.cpp.

{
  CPrintingPromptService *printingPromptService = (CPrintingPromptService*)PL_GetEventOwner(aEvent);

  NS_ASSERTION(printingPromptService, "The event owner is null.");
  if (printingPromptService) {
    printingPromptService->NotifyObserver();
  }
}

Here is the call graph for this function:

Definition at line 409 of file PrintingPromptService.cpp.

                                                   {

  gInstance = instance;
}

Definition at line 414 of file PrintingPromptService.cpp.

{
  NS_ENSURE_ARG_POINTER(aFactory);
  *aFactory = nsnull;
  
  CPrintingPromptServiceFactory *result = new CPrintingPromptServiceFactory;
  if (!result)
    return NS_ERROR_OUT_OF_MEMORY;
    
  NS_ADDREF(result);
  *aFactory = result;
  
  return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

HINSTANCE gInstance [static]

Definition at line 60 of file PrintingPromptService.cpp.