Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Functions
PrintingPromptService.h File Reference
#include "nsError.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define XP_WIN
#define kPrintingPromptServiceFactoryFuncName   "NS_NewPrintingPromptServiceFactory"
#define kPrintingPromptServiceInitFuncName   "InitPrintingPromptService"

Typedefs

typedef nsresult(__cdecl * MakeFactoryType )(nsIFactory **)
typedef nsresult(__cdecl * InitPrintingPromptServiceType )(HINSTANCE instance)

Functions

NS_EXPORT nsresult NS_NewPrintingPromptServiceFactory (nsIFactory **aFactory)
NS_EXPORT void InitPrintingPromptService (HINSTANCE instance)

Define Documentation

#define kPrintingPromptServiceFactoryFuncName   "NS_NewPrintingPromptServiceFactory"

Definition at line 46 of file PrintingPromptService.h.

#define kPrintingPromptServiceInitFuncName   "InitPrintingPromptService"

Definition at line 51 of file PrintingPromptService.h.

Definition at line 38 of file PrintingPromptService.h.


Typedef Documentation

typedef nsresult(__cdecl * InitPrintingPromptServiceType)(HINSTANCE instance)

Definition at line 50 of file PrintingPromptService.h.

typedef nsresult(__cdecl * MakeFactoryType)(nsIFactory **)

Definition at line 45 of file PrintingPromptService.h.


Function Documentation

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: