Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
plugin.cpp File Reference
#include <os2.h>
#include <assert.h>
#include "resource.h"
#include "plugin.h"
#include "helpers.h"
#include "guihlp.h"
#include "logger.h"
#include "guiprefs.h"
#include "os2utils.h"

Go to the source code of this file.

Defines

#define INCL_WIN

Functions

MRESULT EXPENTRY NP_LOADDS TesterDlgProc (HWND, ULONG, MPARAM, MPARAM)
CPluginBaseCreatePlugin (NPP instance, uint16 mode)
void DestroyPlugin (CPluginBase *pPlugin)

Variables

HMODULE hInst
CLoggerpLogger
static char szSection [] = SECTION_PREFERENCES
static char szYes [] = ENTRY_YES
static char szNo [] = ENTRY_NO

Define Documentation

Definition at line 38 of file plugin.cpp.


Function Documentation

CPluginBase* CreatePlugin ( NPP  instance,
uint16  mode 
)

Definition at line 337 of file plugin.cpp.

{
  CPlugin * pPlugin = new CPlugin(instance, mode);
  return (CPluginBase *)pPlugin;
}
void DestroyPlugin ( CPluginBase pPlugin)

Definition at line 343 of file plugin.cpp.

{
  if(pPlugin != NULL)
    delete (CPlugin *)pPlugin;
}
MRESULT EXPENTRY NP_LOADDS TesterDlgProc ( HWND  ,
ULONG  ,
MPARAM  ,
MPARAM   
)

Definition at line 170 of file dlgtstr.cpp.

{
  switch(msg)
  {
    case WM_INITDLG:
      onInitDialog(hWnd, 0, mp2);
      return (MRESULT) FALSE;
    case WM_COMMAND:
    case WM_CONTROL:
      onCommand(hWnd, SHORT1FROMMP(mp1), 0, SHORT2FROMMP(mp1));
      break;
    case WM_DESTROY:
      onDestroy(hWnd);
      break;

    default:
      return WinDefDlgProc(hWnd, msg, mp1, mp2);
  }
  return (MRESULT)TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

HMODULE hInst

Definition at line 65 of file main.cpp.

Definition at line 47 of file np_entry.cpp.

char szNo[] = ENTRY_NO [static]

Definition at line 80 of file plugin.cpp.

char szSection[] = SECTION_PREFERENCES [static]

Definition at line 78 of file plugin.cpp.

char szYes[] = ENTRY_YES [static]

Definition at line 79 of file plugin.cpp.